-
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
Script checks fails to update TTL #6836
Comments
Hi @jorgemarey and thanks for reporting this! This may be related to what's going on in #6637 but we'll look into it. |
Hi @tgross. I don't know if this is related. That issue occurs when performing the validation of the job file and this happens when the agent (client) is running the allocation and trying to update the TTL on consul. |
Hey @jorgemarey, just wanted to let you know I've started on the fix for this. Your patch has the right idea, but we need to move where we're doing the taskEnv interpolation to account for job updates. Once I've got that (and tests!) I'll ping you on the pull request as a heads up. |
I've opened #6916 with the fix. |
I'm still having the same issue as the original poster, running Nomad v0.10.5 |
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
v0.10.2
Issue
Script checks fail to update in Consul.
For what I could investigate. This is due to service name interpolation not being done in the script check hook.
As service name is not interpolated in that hook, the checkID generated by the hash function is different to the one registered in consul.
Reproduction steps
Nomad Client logs
I made the following change to make it work in our environment.
The text was updated successfully, but these errors were encountered: