Failed to provision volume with StorageClass "rook-cephfs": rpc error: code = Aborted desc = an operation with the given Volume ID pvc- already exists

8/6/2021

I am deploying application with helm chart. I am facing an issue with StorageClass rook-ceph whenever I deploy a chart my pods are in pending state because pvc are not getting created. Logs for pvc are

Warning  ProvisioningFailed    96s (x13 over 20m)    rook-ceph.cephfs.csi.ceph.com_csi-cephfsplugin-provisioner-775dcbbc86-nt8tr_170456b2-6876-4a49-9077-05cd2395cfed  failed to provision volume with StorageClass "rook-cephfs": rpc error: code = Aborted desc = an operation with the given Volume ID pvc-f65acb47-f145-449e-ba1c-e8a61efa67b0 already exists
-- sayali_bhavsar
kubernetes
kubernetes-helm
kubernetes-rook
rook-storage

2 Answers

10/20/2021

I had this error, and what solved it for me was deleting the csi-cephfsplugin-provisioner and csi-rbdplugin-provisioner pods, and let the replicaset recreate them. Once I did that, all of my PVCs created PVs and bound as expected. I may have only needed to kill the csi-rbdplugin-provisioner pods, so try that first.

-- Fred Drake
Source: StackOverflow

11/18/2021

try to restart MDS service, if you can copy the data of pvc to a new one, it should work also

-- Khalil Meg
Source: StackOverflow