-
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
Panic on job plan with Nomad 1.6.0 #18007
Comments
hcl file:
|
Hi @gmichalec-pandora 👋 Thanks for the report and apologies for the bug. I have not being able to reproduce this yet, would be able to check a few things for me:
|
all of the servers in this region have been upgraded to 1.6.0. We have servers in other regions running various older nomads (we keep running into various issues preventing us from doing a fleetwide upgrade).
FWIW, we also get an error in the web UI in the 1.6.0 region when we try to select any other region: Here's the command output:
Thanks for looking into this |
Thanks for the extra info @gmichalec-pandora. I tried to reproduce the panic in a multi-region environment but still no luck....Could you describe the steps you took to reach this state? More specifically:
|
|
The 1.6.0 leader logs also show lots of these:
|
Thanks! Those are somewhat expected because the newer versions of Nomad are trying to retrieve data that doesn't exist in older versions of Nomad (such as ACL auth methods and node pools). We were able to identify the issue. We have some logic to upgrade namespaces on updated here: nomad/nomad/state/state_store.go Lines 6700 to 6706 in f529124
But this only gets applied to recent transactions. Older Raft logs are compacted and restored from the snapshot, and we're missing a similar handling here: nomad/nomad/state/state_store_restore.go Lines 206 to 212 in f529124
We should have a fix for it shortly. Thanks again for the detailed report. |
Just noting here that the fix has been released on Nomad 1.6.1. Thank you again for the report! |
Thank you! we upgraded to 1.6.1 and everything looks good now! |
Nomad version
1.6.0
Operating system and Environment details
Debian Buster
Issue
When running a nomad plan, we get the following error message from the CLI:
When we inspect the server logs, we see this:
The text was updated successfully, but these errors were encountered: