-
Notifications
You must be signed in to change notification settings - Fork 2k
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
CSI volumes links on the job page lead to a 404 #9249
Comments
Hi @apollo13! I was able to confirm this behavior on the task group page (ex. http://localhost:4646/ui/jobs/example/cache) for both 0.12.5 and the current I was also able to confirm this behavior on the individual allocation page (ex. http://localhost:4646/ui/allocations/09965ad4-a4b8-261b-6b01-03dcb77b473e ), in which case the screenshot for that section looks like this: |
Ok, so I've narrowed down what's happening here. Here's my volume registration: id = "test-volume0"
type = "csi"
external_id = "EXTERNAL_ID"
plugin_id = "hostpath-plugin0"
access_mode = "single-node-writer"
attachment_mode = "file-system" And the relevant part of the jobspec: job "example" {
group "cache" {
volume "myvolume" {
type = "csi"
source = "test-volume0"
}
task "redis" {
volume_mount {
volume = "myvolume"
destination = "${NOMAD_ALLOC_DIR}/test"
}
}
}
} But when I hit the allocations API that's populating this data:
So the API is returning I definitely tested this out a bunch... using a volume name in the task group that was a valid prefix for the real volume name! (ex. |
See also: #9297, which suggests the issue is somewhere in the API and not the UI. I'll self-assign this issue and follow-up if it turns out to coincidentally be a problem in both the CLI and the UI by accident, and I can't manage to do the tiny UI PR myself. |
Fixed in #9355 and this will ship in 1.0 |
Lovely, thanks! |
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. |
Nomad version
0.12.5
Issue
I managed to mount a CSI volume and it shows up properly under the job volume requirements in the UI:
Now the link in the first column leads to: https://nomad.infra.domain/ui/csi/volumes/test while I think it should lead to https://nomad.infra.domain/ui/csi/volumes/wiki
The first name (test) is the named as specified in the job file:
but the CSI name is the name from the
source
column.Reproduction steps
Create a job using a volume that has a different name than it's source
Job file (if appropriate)
The text was updated successfully, but these errors were encountered: