-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Comments
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. |
@mikenomitch Seems the issue still is not resolved. I upgraded to 1.7.5 and see this: 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 |
@philrenaud FYI |
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. |
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
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.
The text was updated successfully, but these errors were encountered: