-
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
Nomad prestart task breaks "alloc restart" #9841
Comments
Expected behaviour, alloc restart the prestart task and then the main task. hmmm, just to play a bit of an alternative advocate here - this would cause a lot of unnecessary computation in our environments. For example, if we have a container template change and the container is restarted, we definitely dont want to run our prestarts again - those, in our case, are for full start/stop scenarios and if an allocation moves to a different node. |
I've verified this behavior on the current If we run the job that @johnzhanghua provided, we get an error when we ask for a restart:
But the interesting thing is that it looks like the main task does restart. For a prestart task with
|
Hey @ianmdrennan, I just had a chat with my colleague @jazzyfresh on this. There's a subtle difference in behavior we want capture here between:
If you run We're going to be working up some documentation improvements alongside the implementation for this bug fix, which should outline the matrix of behaviors to expect. |
In my case if |
same issue with me |
Hi all 👋 The work to enable this has been complete and release in Nomad v1.3.4. You can use the new |
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
Nomad v0.12.0 (8f7fbc8)
Operating system and Environment details
CentOs 7.5 VM env on Virtualbox 6.1
Issue
Nomad alloc restart not working with
prestart
lifecycle taskExpected behaviour, alloc restart the
prestart
task and then themain
task.Reproduction steps
nomad alloc restart
Job file (if appropriate)
The text was updated successfully, but these errors were encountered: