driver name rbd.csi.ceph.com not found in the list of registered CSI drivers ?
Hi, I try to connect my new ceph cluster (octopus) with my kubernetes system. Therefor I followed the setup guide form the official documentation: https://docs.ceph.com/en/octopus/rbd/rbd-kubernetes/ The csi-rbdplugin-provisioner is running successful on all my kubernetes worker nodes (as far as I can see). Now I try to deploy the nginx example : --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: ceph-pvc spec: accessModes: - ReadWriteOnce volumeMode: Filesystem resources: requests: storage: 1Gi storageClassName: ceph --- apiVersion: v1 kind: Pod metadata: name: csi-rbd-demo-pod spec: containers: - name: web-server image: nginx volumeMounts: - name: mypvc mountPath: /var/lib/www/html volumes: - name: mypvc persistentVolumeClaim: claimName: ceph-pvc readOnly: false A Persitence volume is created $ kubectl get pv .... pvc-5c64ed45-adde-4fe7-9b38-9d4c7a8f7d34 1Gi RWO Delete Bound default/ceph-pvc ceph 7m15s and also the persitence volume claim: $ kubectl get pvc NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE ceph-pvc Bound pvc-5c64ed45-adde-4fe7-9b38-9d4c7a8f7d34 1Gi RWO ceph 8m14s But the POD is not deployed, because of the following error message: MountVolume.MountDevice failed for volume "pvc-5c64ed45-adde-4fe7-9b38-9d4c7a8f7d34" : kubernetes.io/csi: attacher.MountDevice failed to create newCsiDriverClient: driver name rbd.csi.ceph.com not found in the list of registered CSI drivers Can someone help me to understand the meaning of this error message? Did I need to install something else ? Maybe a ceph-fs-plugin...? Thanks for any help === Ralph --
Hi, I found the reason for the problem. I did not assign the DaemonSet to the correct namespace. I am running all components in the namespace 'ceph-system'. After I fixed my DaemonSet configuration the plugin pods are running on my worker nodes and the error message is gone. --- kind: DaemonSet apiVersion: apps/v1 metadata: name: csi-rbdplugin namespace: ceph-system ...... === Ralph On 11.06.21 13:51, Ralph Soika wrote:
Hi,
I try to connect my new ceph cluster (octopus) with my kubernetes system. Therefor I followed the setup guide form the official documentation:
https://docs.ceph.com/en/octopus/rbd/rbd-kubernetes/
The csi-rbdplugin-provisioner is running successful on all my kubernetes worker nodes (as far as I can see).
Now I try to deploy the nginx example :
--- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: ceph-pvc spec: accessModes: - ReadWriteOnce volumeMode: Filesystem resources: requests: storage: 1Gi storageClassName: ceph --- apiVersion: v1 kind: Pod metadata: name: csi-rbd-demo-pod spec: containers: - name: web-server image: nginx volumeMounts: - name: mypvc mountPath: /var/lib/www/html volumes: - name: mypvc persistentVolumeClaim: claimName: ceph-pvc readOnly: false
A Persitence volume is created
$ kubectl get pv .... pvc-5c64ed45-adde-4fe7-9b38-9d4c7a8f7d34 1Gi RWO Delete Bound default/ceph-pvc ceph 7m15s
and also the persitence volume claim:
$ kubectl get pvc NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE ceph-pvc Bound pvc-5c64ed45-adde-4fe7-9b38-9d4c7a8f7d34 1Gi RWO ceph 8m14s
But the POD is not deployed, because of the following error message:
MountVolume.MountDevice failed for volume "pvc-5c64ed45-adde-4fe7-9b38-9d4c7a8f7d34" : kubernetes.io/csi: attacher.MountDevice failed to create newCsiDriverClient: driver name rbd.csi.ceph.com not found in the list of registered CSI drivers
Can someone help me to understand the meaning of this error message? Did I need to install something else ? Maybe a ceph-fs-plugin...?
Thanks for any help
=== Ralph
-- *Imixs Software Solutions GmbH* *Web:* www.imixs.com <http://www.imixs.com> *Phone:* +49 (0)89-452136 16 *Timezone:* Europe/Berlin - CET/CEST *Office:* Agnes-Pockels-Bogen 1, 80992 München Registergericht: Amtsgericht Muenchen, HRB 136045 Geschaeftsführer: Gaby Heinle u. Ralph Soika *Imixs* is an open source company, read more: www.imixs.org <http://www.imixs.org>
participants (1)
-
Ralph Soika