-
Notifications
You must be signed in to change notification settings - Fork 126
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
Deployment status success even if there are no healthy allocations in nomad #227
Comments
@yellowmegaman thanks for raising this and the detail. I believe I know what is going on here and can explain a couple of points and answer a few questions.
An immediate workaround for yourself is to add an update stanza which will allow this job to make use of Nomad deployments which will improve your experience overall. For Levant going forward I think it would be worth adding an additional watch period, configurable but with a sane default which will ensure restarting tasks in this manner a reported correctly. I would appreciate any feedback you have into this. |
@jrasell thanks for quick reply!
My attempt with update:
Added update:
Running levant:
My main goal was to replace my monstrous 62-line bash script with something close to AI to prove deployment successful =) This script is basically a loop looking for desired=healthy allocations of service in nomad api. About Thanks again) |
Just tried it again with latest version, added nonexistent script healthcheck to default example.nomad job, levant did everything nice and correct. Thumbs up and thank you ) |
Hi there! I think i'm doing something terribly wrong here, but:
Relevant Nomad job specification file
Output of
levant version
:Output of
consul version
:Output of
nomad version
:Additional environment details:
Debian, consul, nomad, docker 18.06.0-ce
Debug log outputs from Levant:
Nomad allocation info:
https://gist.github.com/yellowmegaman/3ebea496c67ee5d512f8e7a6658afcab
Consul healthcheck:
![image](https://user-images.githubusercontent.com/3943191/44424302-5cc42700-a591-11e8-9f9a-813242d124a3.png)
So i've used nomad init to create default redis template, removed almost all features and blocks, changed datacenter name and added healthcheck with non-existent binary.
After running deployment with levant i was expecting it to wait for all stuff to settle down, healthchecks including, since i saw
Advanced Job Status Checking: Particulary for system and batch jobs, Levant will ensure the job, evaluations and allocations all reach the desired state providing feedback at every stage.
in the docs.And one more thing, i was really surprised to know that it looks like nomad
deployments
are not in use when deploying with levant, is that correct?Thanks in advance, hope i just misread something.
The text was updated successfully, but these errors were encountered: