Skip to content
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

auto_revert tries to revert to non-existant versions after job purge #3052

Closed
clinta opened this issue Aug 18, 2017 · 2 comments · Fixed by #3056
Closed

auto_revert tries to revert to non-existant versions after job purge #3052

clinta opened this issue Aug 18, 2017 · 2 comments · Fixed by #3056

Comments

@clinta
Copy link
Contributor

clinta commented Aug 18, 2017

If you have a question, prepend your issue with [question] or preferably use the nomad mailing list.

If filing a bug please include the following:

Nomad version

v0.6.0

Operating system and Environment details

Ubuntu 16.04

Issue

Create a job with auto_revert set to true. Run several different deployments with this job. In my case the latest successful deployment was job version 195. Then delete this job with nomad stop -purge. Run this job again with a successful deployment, which is deployment 0. Push a deployment that will fail which will be deployment 1. When the deployment fails nomad deployment list will show Failed due to unhealthy allocations - rolling back to job version 195. Nomad should try to roll back to version 0, but something is not being reset with nomad stop -purge.

dadgar added a commit that referenced this issue Aug 18, 2017
This PR fixes an issue in which the job versions weren't properly
cleaned when removing a job.

Fixes #3052
@dadgar
Copy link
Contributor

dadgar commented Aug 18, 2017

@clinta Thanks for reporting! Fun bug! Fix was changing a variable from job -> j... :(

Should be fixed in 0.6.1

@github-actions
Copy link

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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants