You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The nomad alloc status -verbose :id command queries the CSI volumes associated with the allocation. But the query sent to the server uses the name of the volume from group.volume and not the volume source (which is the volume ID). This result in an error message:
Error retrieving volume info for "test": Unexpected response code: 404 (volume not found)
This is similar to #9249 which suggests that maybe the problem is in the API and not the UI. (Or that we copied the same behavior.)
Example jobspec:
# a job that mounts an EBS volume and writes its job ID as a filejob"use-ebs-volume" {
datacenters=["dc1", "dc2"]
constraint {
attribute="${attr.kernel.name}"value="linux"
}
group"group" {
volume"test" {
type="csi"source="ebs-vol0"
}
task"task" {
driver="docker"config {
image="busybox:1"command="/bin/sh"args=["-c", "echo 'ok' > ${NOMAD_TASK_DIR}/test/${NOMAD_ALLOC_ID}; sleep 3600"]
}
volume_mount {
volume="test"destination="${NOMAD_TASK_DIR}/test"read_only=false
}
resources {
cpu=500memory=128
}
}
}
}
$ nomad alloc status -verbose 83b
ID = 83b3638b-9d48-8325-3242-bb57ecf9cbd3
Eval ID = 5e68473b-d641-86d7-5a3c-76270d07a98c
Name = use-ebs-volume.group[0]
Node ID = 838c671c-4fc2-8101-7fa6-912af5eb41df
Node Name = ip-172-31-13-5
Job ID = use-ebs-volume
Job Version = 0
Client Status = running
Client Description = Tasks are running
Desired Status = run
Desired Description = <none>
Created = 2020-11-09T14:35:18-05:00
Modified = 2020-11-09T14:35:33-05:00
Deployment ID = c8d0cdf3-0c3f-c867-8eb8-08467e92dc13
Deployment Health = healthy
Evaluated Nodes = 2
Filtered Nodes = 0
Exhausted Nodes = 0
Allocation Time = 207.268µs
Failures = 0
Task "task" is "running"
Task Resources
CPU Memory Disk Addresses
0/500 MHz 76 KiB/128 MiB 300 MiB
Error retrieving volume info for "test": Unexpected response code: 404 (volume not found)
Task Events:
Started At = 2020-11-09T19:35:23Z
Finished At = N/A
Total Restarts = 0
Last Restart = N/A
Recent Events:
Time Type Description
2020-11-09T14:35:23-05:00 Started Task started by client
2020-11-09T14:35:22-05:00 Driver Downloading image
2020-11-09T14:35:21-05:00 Task Setup Building Task Directory
2020-11-09T14:35:18-05:00 Received Task received by client
Placement Metrics
* No nodes are available in datacenter "dc2"
Node binpack job-anti-affinity node-affinity node-reschedule-penalty final score
102faa3a-6a23-6a0c-6ec9-9d95711fef00 0.453 0 0 0 0.453
838c671c-4fc2-8101-7fa6-912af5eb41df 0.453 0 0 0 0.453
The text was updated successfully, but these errors were encountered:
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.
The
nomad alloc status -verbose :id
command queries the CSI volumes associated with the allocation. But the query sent to the server uses the name of the volume fromgroup.volume
and not the volume source (which is the volume ID). This result in an error message:This is similar to #9249 which suggests that maybe the problem is in the API and not the UI. (Or that we copied the same behavior.)
Example jobspec:
Volume spec:
Results:
The text was updated successfully, but these errors were encountered: