Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong report about the status of cluster. Show actual status instead of allocation history #20032

Closed
EugenKon opened this issue Feb 23, 2024 · 5 comments
Labels

Comments

@EugenKon
Copy link

EugenKon commented Feb 23, 2024

Nomad version

1.6.1

Operating system and Environment details

uname -a
Linux 26b4b4cae2ee 6.2.0-1018-aws #18~22.04.1-Ubuntu SMP Wed Jan 10 22:54:16 UTC 2024 x86_64 GNU/Linux

Issue

/ui/jobs/portal@default/services
image

Reproduction steps

Configure task to fail, after few attempts to start reconfigure it back and start with correct configuration.

Expected Result

Only current status should be reported.

Actual Result

It seems Nomad-UI interface shows the history for given allocation.

@mikenomitch
Copy link
Contributor

Hey @EugenKon, good news, if you upgrade to 1.6 or later, we've actually solved this already on the Job page. If you check out the release blog here you can see a preview of the changes: https://www.hashicorp.com/blog/nomad-1-6-adds-node-pools-ux-updates-and-more

You'll notice that this is not yet the case for the Job Index, which still unfortunately shows the historical information. The good news here is that we're working on updating that currently. So I think either a 1.7.X or 1.8.0 will have that updated Job Index with the latest values. If you want to follow along, this backend issue is the work to enable the frontend change for that.

Closing out the issue as done.

@EugenKon
Copy link
Author

@mikenomitch Seems the issue still is not resolved. I upgraded to 1.7.5 and see this:
image

kes@Eugens-MacBook-Pro eugen $ brew upgrade nomad
==> Downloading https://formulae.brew.sh/api/formula.jws.json
###################################################################################################### 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
###################################################################################################### 100.0%
Warning: Treating nomad as a formula. For the cask, use homebrew/cask/nomad
==> Upgrading 1 outdated package:
hashicorp/tap/nomad 1.6.1 -> 1.7.5
==> Fetching hashicorp/tap/nomad
==> Downloading https://releases.hashicorp.com/nomad/1.7.5/nomad_1.7.5_darwin_amd64.zip
###################################################################################################### 100.0%
==> Upgrading hashicorp/tap/nomad
  1.6.1 -> 1.7.5

Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Settings.

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 15.1.

==> Caveats
To start hashicorp/tap/nomad now and restart at login:
  brew services start hashicorp/tap/nomad
Or, if you don't want/need a background service you can just run:
  /usr/local/opt/nomad/bin/nomad agent -dev
==> Summary
🍺  /usr/local/Cellar/nomad/1.7.5: 5 files, 107.2MB, built in 2 seconds
==> Running `brew cleanup nomad`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /usr/local/Cellar/nomad/1.6.1... (5 files, 99.7MB)
kes@Eugens-MacBook-Pro eugen $ nomad --version
Nomad v1.7.5
BuildDate 2024-02-13T15:10:13Z
Revision 5f5d4646198d09b8f4f6cb90fb5d50b53fa328b8
kes@Eugens-MacBook-Pro eugen $ nomad status portal
ID            = portal
Name          = portal
Submit Date   = 2024-02-26T19:04:18-05:00
Type          = service
Priority      = 50
Datacenters   = dc1
Namespace     = default
Node Pool     = default
Status        = running
Periodic      = false
Parameterized = false

Summary
Task Group   Queued  Starting  Running  Failed  Complete  Lost  Unknown
postgres-db  0       0         1        0       0         0     0
redis-db     0       0         1        0       0         0     0
services     0       0         1        1       0         0     0

Latest Deployment
ID          = 15d85b11
Status      = successful
Description = Deployment completed successfully

Deployed
Task Group   Desired  Placed  Healthy  Unhealthy  Progress Deadline
postgres-db  1        1       1        0          2024-02-27T00:15:37Z
redis-db     1        1       1        0          2024-02-27T00:15:22Z
services     1        2       1        1          2024-02-27T00:16:55Z

Allocations
ID        Node ID   Task Group   Version  Desired  Status   Created    Modified
a41ca9ab  252f2b67  services     0        run      running  7m44s ago  6m56s ago
018f67bd  252f2b67  redis-db     0        run      running  9m34s ago  8m29s ago
5d2db9c9  252f2b67  postgres-db  0        run      running  9m34s ago  8m13s ago
7966bc35  252f2b67  services     0        stop     failed   9m34s ago  7m44s ago

@EugenKon
Copy link
Author

@philrenaud FYI

@philrenaud
Copy link
Contributor

Hi @EugenKon , thanks for this report. Task Group pages will get updated "Historical -> Current" treatment alongside the Jobs Index page and Periodic/Parameterized parent jobs pages in a coming release. I've added an issue to track this going forward.

Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Development

No branches or pull requests

3 participants