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-enterprise at main 316a8e1c78d123a36e861d9850343dd570b3a679
Issue
When performing allocation placement computation, the quota iterator can incorrectly report that a placement breaks the quota limit. This happens intermittently and despite confirmed resource available within the quota to correctly accommodate all planned allocations.
Reproduction steps
Run vagrant up within the root directory of the cloned Nomad repository.
The following configuration files are used to run one Nomad server and three Nomad clients on the single Vagrant machine. The files can be placed in other locations, but subsequent commands will need to be updated to reflect this.
Apply the quota saved to disk using nomad quota apply <file>. Link this to the default namespace using nomad namespace apply -quota default-quota default.
This job fills 2 Nomad clients, which is a prerequisite of this bug. The job uses constraints to ensure it fully fills two clients and leaves a third empty. Save this file, and trigger a registration using the nomad job run <jobspec> command.
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
nomad-enterprise at main
316a8e1c78d123a36e861d9850343dd570b3a679
Issue
When performing allocation placement computation, the quota iterator can incorrectly report that a placement breaks the quota limit. This happens intermittently and despite confirmed resource available within the quota to correctly accommodate all planned allocations.
Reproduction steps
Run
vagrant up
within the root directory of the cloned Nomad repository.The following configuration files are used to run one Nomad server and three Nomad clients on the single Vagrant machine. The files can be placed in other locations, but subsequent commands will need to be updated to reflect this.
/tmp/server1.hcl
/tmp/client1.hcl
/tmp/client2.hcl
/tmp/client3.hcl
Start each of the following agent processes in a separate SSH terminal running on the Vagrant machine.
The following quota spec should be created and linked with the default namespace.
quota spec
Apply the quota saved to disk using
nomad quota apply <file>
. Link this to the default namespace usingnomad namespace apply -quota default-quota default
.This job fills 2 Nomad clients, which is a prerequisite of this bug. The job uses constraints to ensure it fully fills two clients and leaves a third empty. Save this file, and trigger a registration using the
nomad job run <jobspec>
command.filler.nomad
The job only needs to be planned, in order to see the bug. The plan may need to be run several times before it is hit.
nomad job plan <file>
.quota.nomad
Expected Result
The plan should complete successfully every time it is triggered.
Actual Result
The plan will fail with the following example output:
The text was updated successfully, but these errors were encountered: