On running mysql test job for the CSI plugin seeing an error on the csi hook, job is unable to start. Any ideas what causes this error?
failed to setup alloc: pre-run hook “csi_hook” failed: rpc error: code = InvalidArgument desc = Device path not provided
Nomad version 1.0.4
nomad volume status
Container Storage Interface
ID Name Plugin ID Schedulable Access Mode
mysql mysql aws-ebs0 true single-node-write
nomad plugin status
Container Storage Interface
ID Provider Controllers Healthy/Expected Nodes Healthy/Expected
aws-ebs0 ebs.csi.aws.com 1/1 6/6
nomad plugin status aws-ebs0
ID = aws-ebs0
Provider = ebs.csi.aws.com
Version = v0.10.0
Controllers Healthy = 1
Controllers Expected = 1
Nodes Healthy = 6
Nodes Expected = 6
Allocations
ID Node ID Task Group Version Desired Status Created Modified
8f3a4ef8 d0db8e71 nodes 0 run running 17h44m ago 17h44m ago
24194094 e61b5ec4 controller 0 run running 17h44m ago 17h44m ago
e568be37 e61b5ec4 nodes 0 run running 17h44m ago 17h44m ago
c5029653 e6a4987d nodes 0 run running 17h44m ago 17h44m ago
593fa020 182b8e7f nodes 0 run running 17h44m ago 17h44m ago
3808a9d3 9c0c772d nodes 0 run running 17h44m ago 17h44m ago
20f1535a a24a0b58 nodes 0 run running 17h44m ago 17h44m ago
Another thing I noticed is that the EBS plugin is requiring that PublishContext[DevicePathKey] exists, while nomad does not do any validation on PublishContext that I can see.
@jessequinn yes, the issue for us was extra additional AWS permission were needed for the EBS driver during creation stage. If you are managing permissions with tag filters, make sure those tags are getting added on creation. Otherwise, you might next to dive into cloud trail. The error is surely misleading.