hashicorp / hashicorp/nomad

Nomad UI Bug: CPU Total Displays as 0 When Task Resources Use cores

Open
#24,691 4 comments 0 reactions 1 assignee Claimed by @philrenaud View on GitHub
hcc/jira theme/ui type/bug
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

### Nomad version
`1.9.4-dev`

### Operating system and Environment details
Linux
### Issue
When a task's resources block specifies CPU using cores, the allocation monitoring UI incorrectly displays "0 Total" CPU under the Resources tab.

### Reproduction steps

image

#### Expected Result

#### Actual Result

### Job file (if appropriate)

```
job "cpu-test" {
datacenters = ["dc1"]
type = "service"

group "test" {
count = 1

task "cpu-burn" {
driver = "docker"

config {
image = "alpine:latest"
command = "/bin/sh"
args = [
"-c",
"for i in $(seq 1 6); do dd if=/dev/zero of=/dev/null & done; sleep 3600"
]
}

resources {
cores = 6
memory = 256
}
}
}
}
```

### 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.