Trident fails to mount PVC due to CSI driver is not found in registered list
Applies to
- Astra Trident 21.07.2
- Kubernetes 1.20.6
Issue
- Unable to mount PVC by
csi.trident.netapp.io not found in the list of registered CSI drivers
- kubelet reports the following error:
MountVolume.MountDevice failed for volume "pvc-XXX" : kubernetes.io/csi: attacher.MountDevice failed to create newCsiDriverClient: driver name csi.trident.netapp.io not found in the list of registered CSI drivers
- Status of trident-csi pod is not
Running
and it is not ready
# kubectl get pod -n trident
NAME READY STATUS RESTARTS AGE
pod/trident-csi-XXXXX 0/2 Completed 4 64d
pod/trident-csi-XXXXX 0/2 Completed 6 117d
pod/trident-csi-XXXXX 0/2 Completed 6 117d
pod/trident-csi-XXXXXXXXXXXXXXXX 6/6 Running 6 33d
pod/trident-operator-XXXXXXXXXXXXXXXX 1/1 Running 4 117d
- CSI driver-registrar log shows
Lost connection
to CSI endpoint,unix:///plugin/csi.sock
E0809 <TIMESTAMP> 13504 connection.go:131] Lost connection to unix:///plugin/csi.sock.