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
nomad run redis.nomad
==> 2022-04-26T17:27:52+05:30: Monitoring evaluation "c737ef0a"
2022-04-26T17:27:52+05:30: Evaluation triggered by job "redis"
==> 2022-04-26T17:27:53+05:30: Monitoring evaluation "c737ef0a"
2022-04-26T17:27:53+05:30: Evaluation within deployment: "18674959"
2022-04-26T17:27:53+05:30: Evaluation status changed: "pending" -> "complete"
==> 2022-04-26T17:27:53+05:30: Evaluation "c737ef0a" finished with status "complete" but failed to place all allocations:
2022-04-26T17:27:53+05:30: Task Group "cache" (failed to place 1 allocation):
* No nodes were eligible for evaluation
* No nodes are available in datacenter "localhashi"
2022-04-26T17:27:53+05:30: Evaluation "3514787b" waiting for additional capacity to place remainder
==> 2022-04-26T17:27:53+05:30: Monitoring deployment "18674959"
Observe that deployment is pending
nomad deployment status 186
ID = 18674959
Job ID = redis
Job Version = 0
Status = running
Description = Deployment is running
Deployed
Task Group Desired Placed Healthy Unhealthy Progress Deadline
cache 1 0 0 0 N/A
nomad job status redis
ID = redis
Name = redis
Submit Date = 2022-04-26T17:27:51+05:30
Type = service
Priority = 50
Datacenters = localhashi
Namespace = default
Status = pending
Periodic = false
Parameterized = false
Summary
Task Group Queued Starting Running Failed Complete Lost
cache 1 0 0 0 0 0
Placement Failure
Task Group "cache":
* No nodes were eligible for evaluation
* No nodes are available in datacenter "localhashi"
Latest Deployment
ID = 18674959
Status = running
Description = Deployment is running
Deployed
Task Group Desired Placed Healthy Unhealthy Progress Deadline
cache 1 0 0 0 N/A
Allocations
No allocations placed
Nomad version
Operating system and Environment details
Issue
When a cluster has no eligible node, the deployment fails - as it should.
However, if the node became ready during the progress of deployment, it still errors out with an exit code of
2
.Reproduction steps
Expected Result
Non zero exit code since the deployment eventually was success.
Actual Result
Exit code of 2, as documented here: https://www.nomadproject.io/docs/commands/job/run
Job file (if appropriate)
The text was updated successfully, but these errors were encountered: