-
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 stop exits before allocations have exited #1225
Comments
@grobinson-blockchain That's how the docker driver works. First, it sends the
|
@diptanu it's just that the documentation says otherwise (https://www.nomadproject.io/docs/commands/stop.html):
|
@grobinson-blockchain Sorry about that, we will update the docs. What actually happens here is that Nomad creates an evaluation when the stop api is called, and waits until the scheduler processes the evaluation. Once the evaluation is processed and the allocation's desired status has been updated the stop returns. |
As far as the "experiences a port collision because the old container is still running" that seems like a bug? If the port was allocated as part of the nomad task. I guess it is possible that it was not. That bug though seems related to #1191 |
@a86c6f7964 yes, the port allocation was from a previous allocation of the same Nomad job. I'm simply updating the docker image to run a later build. |
@grobinson-blockchain Thank you! |
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.3.2
Operating system and Environment details
Issue
I'm experiencing issues where
nomad stop
exits before the docker container has exited. This means that when we runnomad run
the nomad client experiences a port collision because the old container is still running. This appears to be related to containers that cannot or do not exit from SIGTERM and require a subsequent SIGKILL after the Nomad exit timeout (as shown in the logs below).Nomad Client logs (if appropriate)
The text was updated successfully, but these errors were encountered: