-
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: failed to setup alloc: pre-run hook "csi_hook" #7568
Comments
Hi @benoitmenard! Thanks for trying out CSI! The error you're getting is bubbling up from the CSI node plugin, so if you can get the allocation logs for that plugin via (One of the things I've found is that it's hard to get the internal plugin errors up into the Nomad logs. I've got #7424 open to improve that observability story.) |
Thanks for your help,
And the job to this:
It works :) |
Thanks for the update on that @benoitmenard, and glad to see you've got things working. It looks like in #7326 we made it so that if the external ID is set, we'd use it as the ID of the volume when we talk to plugins. So the first way you had it should have worked. @langmartin or I will see if we can reproduce the behavior and pull some logs from the EBS plugin to double-check. |
I was able to confirm that using the IDs as you've did here originally should have worked. Looking at the server logs, it looks like you ran into a flaky bug around unmounting on the node. So the ID change was just coincidence... it happened to have worked the second time.
That should be fixed by the client-side changes in #7596 which I'm working on getting merged in now. For now I'm going to close this as effectively a dupe of #7180. But thanks so much for giving CSI a try... I'm really excited to have people try it out! |
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. |
Good evening,
During this crisis .. I spent some time to try the new CSI feature :)
Nomad version
Nomad v0.11.0-beta1 (a7a7d12)
Operating system and Environment details
Linux ip-172-31-1-210 4.19.0-8-cloud-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64 GNU/Linux
Nomad volume
Issue
I follow this to setup the EBS CSI: https://learn.hashicorp.com/nomad/stateful-workloads/csi-volumes#deploy-the-ebs-plugin
Reproduction steps
Nothing special, juste run and the issue appear.
At the very begining of the deployment, I can see in the AWS console that the EBS volume is attached, then detached few seconds later.
I had also the same issue with scaleway, so I don't know what is wrong ? Maybe I should the CSI at the host level ?
Job file (if appropriate)
Nomad Client logs (if appropriate)
failed to setup alloc: pre-run hook "csi_hook" failed: rpc error: code = Internal desc = Failed to find device path /dev/xvdba. nvme path "/dev/disk/by-id/nvme-Amazon_Elastic_Block_Store_block1" not found
Nomad Server logs (if appropriate)
out.log
Thanks a lot for your time,
The text was updated successfully, but these errors were encountered: