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

When executing parameterized job with namespace applied in ui, “Not Found” #11121

Closed
Great-Stone opened this issue Sep 2, 2021 · 2 comments · Fixed by #11141
Closed

When executing parameterized job with namespace applied in ui, “Not Found” #11121

Great-Stone opened this issue Sep 2, 2021 · 2 comments · Fixed by #11141
Assignees
Labels
stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/ui type/bug

Comments

@Great-Stone
Copy link

Nomad version

Nomad v1.1.4+ent (fbad2c4)

Operating system and Environment details

Ubuntu 18.04.5 LTS

Issue

I checked the update to be able to run parameterized jobs in the UI. It works fine in the default namespace, but when you create a custom namespace and run the job in the ui, the “Not Found” page is displayed. When I select all namespaces(*) in the UI and select the corresponding job I can see a list.

Reproduction steps

I used the following example:
https://github.com/hashicorp/nomad-autoscaler-demos/tree/main/vagrant/dynamic-app-sizing

  • Create a "scale" namespace and start a parameterized job.
  • When dispatching from UI, "Not Found" page is displayed
  • If you select the namespace as all(*) in the Job UI and select the job, the contents are displayed.
  • Job created with default namespace is normal

Expected Result

When a parameterized job to which the namespace is applied is dispatched from the UI, the job UI to be performed should appear normally.

Actual Result

"Not Found" Page

Job file (if appropriate)

job "das-load-test" {
  datacenters = ["hashistack"]
  namespace = "scale"
  type        = "batch"

  parameterized {
    payload       = "optional"
    meta_optional = ["requests", "clients"]
  }

  group "redis-benchmark" {
    task "redis-benchmark" {
      driver = "docker"

      config {
        image   = "redis:6.0"
        command = "redis-benchmark"

        args = [
          "-h",
          "${HOST}",
          "-p",
          "${PORT}",
          "-n",
          "${REQUESTS}",
          "-c",
          "${CLIENTS}",
        ]
      }

      template {
        destination = "secrets/env.txt"
        env         = true

        data = <<EOF
{{ with service "redis-lb" }}{{ with index . 0 -}}
HOST={{.Address}}
PORT={{.Port}}
{{- end }}{{ end }}
REQUESTS={{ or (env "NOMAD_META_requests") "100000" }}
CLIENTS={{  or (env "NOMAD_META_clients") "50" }}
EOF
      }

      resources {
        cpu    = 100
        memory = 128
      }
    }
  }
}
@lgfa29 lgfa29 added stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/ui labels Sep 2, 2021
@lgfa29 lgfa29 self-assigned this Sep 2, 2021
@lgfa29
Copy link
Contributor

lgfa29 commented Sep 3, 2021

Thank you @Great-Stone.

I have a PR with a fix that will be available in the next release.

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/ui type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants