Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EvalStatus on placement failure #24824

Open
devashishraj opened this issue Jan 9, 2025 · 0 comments
Open

EvalStatus on placement failure #24824

devashishraj opened this issue Jan 9, 2025 · 0 comments
Labels

Comments

@devashishraj
Copy link

devashishraj commented Jan 9, 2025

Nomad version

Output from nomad version
1.9.4

Operating system and Environment details

Clang: 16.0.0 build 1600
Git: 2.47.1 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.2-arm64
CLT: 16.2.0.0.1.1733547573
Xcode: 16.0
Rosetta 2: false

Issue

On a placement failure status returned is "complete" in evaluation structure.
There's no error the only thing one can use to detect this is 'trigger-by' field where i have will have to compare to string "job-deregister"

i understand since evaluation is complete(concluded job cannot be placed) so status is complete , but there i don't see a simple way to find out if job got placed

Reproduction steps

added a sample job file

Expected Result

expecting EvalStatus to be blocked or cancelled

Actual Result

Job file (if appropriate)

job "docs" {
  datacenters = ["hz1"]

  group "example" {
    network {
      port "http" {
        static = 5678
      }
    }

    task "server" {
      driver = "docker"
      constraint {
        attribute = "${meta.my_custom_value}"
        operator  = ">"
        value     = "3"
      }
      config {
        image = "hashicorp/http-echo"
        ports = ["http"]
        args = [
          "-listen",
          ":5678",
          "-text",
          "hello world"
        ]
      }
      
    }
  }
}

Nomad Server logs (if appropriate)

Nomad Client logs (if appropriate)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant