diff --git a/deploy/rbd/kubernetes/csi-rbdplugin.yaml b/deploy/rbd/kubernetes/csi-rbdplugin.yaml index 264104ac7..721565873 100644 --- a/deploy/rbd/kubernetes/csi-rbdplugin.yaml +++ b/deploy/rbd/kubernetes/csi-rbdplugin.yaml @@ -72,6 +72,9 @@ spec: - name: pods-mount-dir mountPath: /var/lib/kubelet/pods mountPropagation: "Bidirectional" + - name: plugin-mount-dir + mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi/volumeDevices/ + mountPropagation: "Bidirectional" - mountPath: /dev name: host-dev - mountPath: /rootfs diff --git a/pkg/rbd/nodeserver.go b/pkg/rbd/nodeserver.go index 3cea36dc7..9ea5138e4 100644 --- a/pkg/rbd/nodeserver.go +++ b/pkg/rbd/nodeserver.go @@ -55,7 +55,7 @@ func (ns *nodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePublis } else { // Get volName from targetPath if !strings.HasSuffix(targetPath, "/mount") { - return nil, fmt.Errorf("rnd: malformed the value of target path: %s", targetPath) + return nil, fmt.Errorf("rbd: malformed the value of target path: %s", targetPath) } s := strings.Split(strings.TrimSuffix(targetPath, "/mount"), "/") volName = s[len(s)-1]