hashicorp / hashicorp/nomad

Job variables page in the Nomad UI uses the job name instead of its ID

Open
#20,148 2 comments 0 reactions 0 assignees View on GitHub
stage/needs-investigation theme/ui type/bug
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

### Nomad version
1.7.5

### Operating system and Environment details
Debian 12

### Issue
If you set a `name=foobar` in the job spec, the job won't be able to look up variables under `nomad/jobs/foobar` with error: `Missing: nomad.var.block(nomad/jobs/foobar@default.global)`

### Reproduction steps
Create sample variables under the `nomad/jobs/foobar` path, then run this job:

```hcl
variable "env" {
type = string
default = "foobar"
}

job "docs" {
datacenters = ["dc1"]
name = var.env

group "example" {
network {
port "http" {
static = "5678"
}
}
task "server" {
driver = "docker"

template {
data = <
image

### Job file (if appropriate)

### Nomad Server logs (if appropriate)

### Nomad Client logs (if appropriate)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.