You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A failed deployment, started with "nomad job run", that gets rolled back due to a failure with the update exits with return code 0. This is an error imho, as the initial intention of the command failed.
Sample output:
$ nomad run -var version=1 server-staging.nomad
==> 2021-08-02T18:57:12+02:00: Monitoring evaluation "d26d2bf1"
2021-08-02T18:57:12+02:00: Evaluation triggered by job "jobspec-staging"
2021-08-02T18:57:12+02:00: Evaluation within deployment: "c0b8a749"
2021-08-02T18:57:12+02:00: Allocation "2edcde23" created: node "c152d901", group "jobspec"
2021-08-02T18:57:12+02:00: Evaluation status changed: "pending" -> "complete"
==> 2021-08-02T18:57:12+02:00: Evaluation "d26d2bf1" finished with status "complete"
==> 2021-08-02T18:57:12+02:00: Monitoring deployment "c0b8a749"
⠦ Deployment "c0b8a749" failed
2021-08-02T19:02:12+02:00
ID = c0b8a749
Job ID = jobspec-staging
Job Version = 23
Status = failed
Description = Failed due to progress deadline - rolling back to job version 22
Deployed
Task Group Auto Revert Desired Placed Healthy Unhealthy Progress
Deadline
jobspec true 1 3 0 3
2021-08-02T19:02:12+02:00
⠙ Deployment "769e7273" successful
2021-08-02T19:02:47+02:00
ID = 769e7273
Job ID = jobspec-staging
Job Version = 24
Status = successful
Description = Deployment completed successfully
Deployed
Task Group Auto Revert Desired Placed Healthy Unhealthy Progress
Deadline
jobspec true 1 1 1 0
2021-08-02T19:07:45+02:00
$ echo $?
0
Reproduction steps
Configure the job-wide update stanza with "auto_revert = true":
The initial update failed, the cli should exit with an rc != 0 to enable automation systems (like jenkins) to react without parsing the output or requesting further status.
Actual Result
The "nomad" cli exits with rc=0. I guess this is the case because the rollback succeded.
The text was updated successfully, but these errors were encountered:
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.
Nomad version, OS version
Nomad v1.1.2 (60638a0)
Centos 7.9
Issue
A failed deployment, started with "nomad job run", that gets rolled back due to a failure with the update exits with return code 0. This is an error imho, as the initial intention of the command failed.
Sample output:
Reproduction steps
Configure the job-wide update stanza with "auto_revert = true":
Expected Result
The initial update failed, the cli should exit with an rc != 0 to enable automation systems (like jenkins) to react without parsing the output or requesting further status.
Actual Result
The "nomad" cli exits with rc=0. I guess this is the case because the rollback succeded.
The text was updated successfully, but these errors were encountered: