-
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
Poststop lifecycle hook prevents deloyment status going healthy #9361
Comments
Same here. Also on beta3 with different jobs. |
Thank you for the report. I've reproduced this and we are looking into it. |
@drewbailey nice ... if there's something to test just ping me. I'm always willing to tinker around. Well... at least if it fits on arm64 :D |
* investigating where to ignore poststop task in alloc health tracker * ignore poststop when setting latest start time for allocation * clean up logic * lifecycle: isolate mocks for poststop deployment test * lifecycle: update comments in tracker Co-authored-by: Jasmine Dahilig <[email protected]>
* investigating where to ignore poststop task in alloc health tracker * ignore poststop when setting latest start time for allocation * clean up logic * lifecycle: isolate mocks for poststop deployment test * lifecycle: update comments in tracker Co-authored-by: Jasmine Dahilig <[email protected]>
Hi, Thanks! |
I'm seeing this too on Nomad 1.1.6. We need poststart non-sidecar tasks to complete the deployment steps for us, so this is basically a showstopper |
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 v1.0.0-beta3 (fcb32ef)
Operating system and Environment details
Nomad with docker 19.03.8
Issue
Nomad task group with poststop lifecycle hook and consul service registration does not transition to a healthy deployment status. After a long timeout the allocation transitions to unhealthy in nomad. The deployment itself spends a long time in the running state, and eventually transitions to failed. All the while, the consul health check is showing healthy.
Removing the poststart lifecycle hook makes the allocation transition immediately to healthy status.
Reproduction steps
Job file
Deployment status
The text was updated successfully, but these errors were encountered: