# Ceph-csi allocation error

**URL:** <https://discuss.hashicorp.com/t/ceph-csi-allocation-error/52792>\
**Category:** Nomad\
**Tags:** csi\
**Created:** [April 17, 2023, 1:39pm UTC](https://discuss.hashicorp.com/t/ceph-csi-allocation-error/52792 "2023-04-17T13:39:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rgruyters](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/rgruyters/32/33327_2.png) [@rgruyters](https://discuss.hashicorp.com/u/rgruyters)\
**Post date:** [April 17, 2023, 1:39pm UTC](https://discuss.hashicorp.com/t/ceph-csi-allocation-error/52792/1 "2023-04-17T13:39:23Z")

</div>

When restarting the Nomad agent on a node where a Ceph volume is mounted I noticed that the job which uses a ceph volume doesn’t get restarted.

```auto
failed to setup alloc: pre-run hook "csi_hook" failed: node plugin returned an internal error, check the plugin allocation logs for more information: rpc error: code = Internal desc = rbd image nomad-volumes/csi-vol-756e6ab6-cd72-11ed-907b-0242ac110004 is still being used

```

What is the “proper” way to get this solved. Also what steps do we need to do when using CSI driver(s) within Nomad cluster (e.g.) when updating the node.

FYI, we are running Nomad version 1.5.2 with Consul 1.15.2

---

<div class="post-metadata">

**Author:** ![hector.medina.cabane](https://avatars.discourse-cdn.com/v4/letter/h/94ad74/32.png) [@hector.medina.cabane](https://discuss.hashicorp.com/u/hector.medina.cabane)\
**Post date:** [April 19, 2023, 1:28pm UTC](https://discuss.hashicorp.com/t/ceph-csi-allocation-error/52792/2 "2023-04-19T13:28:17Z")

</div>

I’m also interested in Ceph-csi settings, although it’s not clear in docs. I haven’t found any tutorial for testing myself either. They just say ‘if it works in k8s it will work in nomad’. That’s it.

Could you share your settings or some steps to reproduce the error?

Thanks!

---

<div class="post-metadata">

**Author:** ![rgruyters](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/rgruyters/32/33327_2.png) [@rgruyters](https://discuss.hashicorp.com/u/rgruyters)\
**Post date:** [April 19, 2023, 6:59pm UTC](https://discuss.hashicorp.com/t/ceph-csi-allocation-error/52792/3 "2023-04-19T18:59:49Z")

</div>

I have used the [Block Devices and Nomad](https://docs.ceph.com/en/latest/rbd/rbd-nomad/) documentation.
