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
If you mark a disconnected client for drain, it will set the DesiredTransition.Migrate field to true for all allocations on that client. This results in those allocations being treated as migrations by the allocReconciler.
Reproduction steps
Create a job that ensures allocations are spread across multiple clients.
Once the jobs are running, simulate a network drop on one of the clients.
While that client is disconnected, run nomad node drain -enable -yes :id for the disconnected node id.
Delete the job with nomad job stop -purge
Rerun the job and observe the deployment output
The Desired count will be off by the number of allocs on the disconnected clients. This is a symptom of the alloc being marked as Migrate.
This issue was resolved by changing the order of filtering in filterByTainted so that the DesiredStatus stop for a reconnecting alloc is detected before filtering for migrations. This is working as desired on main as of early yesterday morning.
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
1.3.0-beta
Operating system and Environment details
1 Server
2 Clients
Issue
If you mark a disconnected client for drain, it will set the
DesiredTransition.Migrate
field to true for all allocations on that client. This results in those allocations being treated as migrations by theallocReconciler
.Reproduction steps
nomad node drain -enable -yes :id
for the disconnected node id.nomad job stop -purge
Migrate
.Expected Result
The allocation should not be marked for migration since migrations require connectivity to the node.
Actual Result
Allocations are marked as
Migrate
.Job file (if appropriate)
The text was updated successfully, but these errors were encountered: