-
Notifications
You must be signed in to change notification settings - Fork 286
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
leave-on-terminate not working on host shutdown #104
Comments
Any thoughts on this issue? |
Nope. If you could try running Consul on the host without a container and see if it behaves the same that would tell you if it's a Docker Consul issue or a Consul issue. |
Ran consul on a standard AWS Linux VM using upstart . Consul leaves cluster fine on terminate. So this looks to be a docker issue specifically. As you can see from my comments above the consul agent inside the docker container does say it sends the "EventMemberLeave" command but for some reason it never makes it to the cluster. |
Anything else you would like me to try? |
Hmm, okay well perhaps it's a Docker issue. Poke around open issues over there and see if you find anything. |
Any updates on this? I'm getting the same issue and it's annoying :/ |
Bump. |
Hi,
Im using this docker image on multiple AWS EC2 instances. I'm using the following consul.json file to pass the parameters to the container.
Docker run command below;
If i do a "docker stop {CONTAINER_ID}" it sends the following and successfully removes the consul agent before termination.
However, if i do a linux shutdown on the host machine the same information is logged but it doesn't remove the consul agent from the cluster.
Not sure what could be causing this, maybe the network interface has been shutdown and the leave request doesn't get through to the cluster?
Any thoughts?
Cheers,
Jon
The text was updated successfully, but these errors were encountered: