-
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
Missing consul keys: no hint in alloc-status #2578
Comments
Yep definitely on the roadmap! |
I just got hit by this today. I was like UGH why is my job stuck in pending.... This is the relevant logs from the nomad agent node running the job... so it's not even out on the agent to say anything.
|
Yeah it seems that it's only logged with debug loglevel. |
This PR does the following: * Adds a mechanism to emit events in the TaskRunner * Vendors a new version of Consul-Template that allows extraction of missing dependencies * Adds logic to our consul_template.go to determine missing events and emit them in a batched fashion. * Refactors the consul_template code to split the run method and take in a config struct rather than many parameters. Fixes #2578
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 reference consul kv keys from the template stanza, nomad will notice if they don't exist yet and the task is pending until the key is there.
This is fine, but alloc-status should inform the user about this fact.
Nomad version
Output from
nomad version
Nomad v0.5.6
Operating system and Environment details
Ubuntu 16.04
Issue
nomad alloc-status should give a hint if nomad is waiting for missing information in consul
Reproduction steps
template stanza with the following template:
Nomad Server logs (if appropriate)
The text was updated successfully, but these errors were encountered: