Open mr-karan opened 11 months ago
Hi @mr-karan! This has been a bit of a persistent and hard to track down issue for a while. https://github.com/hashicorp/nomad/issues/13455 is related, and https://github.com/hashicorp/nomad/issues/12366 https://github.com/hashicorp/nomad/issues/12748 https://github.com/hashicorp/nomad/issues/12016 may be as well.
I'm not going to mark this as a duplicate but I'll try to nudge fixing this one along in roadmapping.
Nomad version
1.6.1
Operating system and Environment details
AWS EC2, Ubuntu 22.04
Issue
When deploying a
system
type job with a specific constraint filter, the job appears to be placed correctly on all targeted nodes. However, the CLI and UI indicate a placement failure. This behavior is inconsistent and misleading, as the job is actually being applied as expected.This issue leads to confusion and potential misinterpretation of the job's deployment status. It also affects automation workflows that rely on CLI exit codes.
Reproduction steps
system
type job with a constraint filter.Expected Result
The expectation for a
system
type job with a constraint filter is to have it placed on all nodes that meet the constraint criteria without any errors or misleading failure messages.Actual Result
The job gets placed on the appropriate nodes, but the CLI and UI report a placement failure, which is not accurate.
Job file (if appropriate)
Simplified example:
The
meta.ec2_nomad_client
exists in all client nodes, but they have different values. We use this tag to determine which job gets placed in which node.