: attacher.MountDevice failed to create newCsiDriverClient: driver name rook-ceph.rbd.csi.ceph.com not found in the list of registered CSI drivers

730 views
Skip to first unread message

jameskh...@gmail.com

unread,
Oct 12, 2019, 2:01:24 PM10/12/19
to rook-dev
I am trying to work through the examples and use the examples checked into git hub everything seems to work until I try to create the wordpress, mysql, or nginx deployments/pods. I am receiving the following error. I don't understand how to resolve the issue. Please let me know if there is any additional information that you need to help me.

Events:
  Type     Reason                  Age                From                     Message
  ----     ------                  ----               ----                     -------
  Normal   Scheduled               <unknown>          default-scheduler        Successfully assigned default/csirbd-demo-pod to node5.local
  Normal   SuccessfulAttachVolume  34s                attachdetach-controller  AttachVolume.Attach succeeded for volume "pvc-ec81ae55-cde3-4e78-a12f-c27099db0dea"
  Warning  FailedMount             10s (x6 over 26s)  kubelet, node5.local     MountVolume.MountDevice failed for volume "pvc-ec81ae55-cde3-4e78-a12f-c27099db0dea" : kubernetes.io/csi: attacher.MountDevice failed to create newCsiDriverClient: driver name rook-ceph.rbd.csi.ceph.com not found in the list of registered CSI drivers


 kubectl version
Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.2", GitCommit:"f6278300bebbb750328ac16ee6dd3aa7d3549568", GitTreeState:"archive", BuildDate:"2019-08-16T14:14:51Z", GoVersion:"go1.12.7", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.1", GitCommit:"d647ddbd755faf07169599a625faf302ffc34458", GitTreeState:"clean", BuildDate:"2019-10-02T16:51:36Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}



Thank You,

James

Alexander Trost

unread,
Oct 12, 2019, 4:26:45 PM10/12/19
to jameskh...@gmail.com, rook-dev
Have you checked that kubelet is using the same CSI driver directory as the Ceph CSI driver?

If kubelet is using a different path than `/var/lib/kubelet` that might already explain the issue and / or if the kubelet doesn't share the `/var/lib/kubelet` with the host where the Ceph CSI driver containers are running and mounting the `hostPath` (to path see above docs) would put there CSI driver sockets.
If the kubelet doesn't share the whole `/var/lib/kubelet` with the host, that is a kinda "weird" setup then (unless there is a good reason to do so ;-) ).

Kind regards
Alexander Trost

--
You received this message because you are subscribed to the Google Groups "rook-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rook-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rook-dev/65d1d6a9-db79-4ca3-87a7-ef440f89b0a4%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages