Kubernetes会记录包含Trident卷的卷删除错误的垃圾邮件
适用场景
适用于 Kubernetes/Openshift 的 Trident
问题描述
/var/log/messages
Kubernetes节点出现以下错误:kubelet[33077]: E1119 09:25:14.131509 33077 reconciler.go:193] operationExecutor.UnmountVolume failed (controllerAttachDetachEnabled true) for volume "<PV>" (UniqueName: "kubernetes.io/csi/csi.trident.netapp.io^pvc-<PVC_UUID>") pod "<POD_UUID>" (UID: "<POD_UUID>") : UnmountVolume.NewUnmounter ... : kubernetes.io/csi: unmounter failed to load volume data file [/var/lib/kubelet/pods/<POD_UUID>/volumes/kubernetes.io~csi/pvc-<PVC_UUID>/mount]: kubernetes.io/csi: failed to open volume data file ...: open /var/lib/kubelet/pods/<POD_UUID>/volumes/kubernetes.io~csi/pvc-<PVC_UUID>/vol_data.json: no such file or directory
和:
time="2020-12-02T13:41:04Z" level=error msg="GRPC error: rpc error: code = NotFound desc = volume not mounted" requestID=34ed7c20-1dca-487d-944d-6fa10eb02b3d requestSource=CSI
time="2020-12-02T13:41:04Z" level=error msg="GRPC error: rpc error: code = NotFound desc = volume not mounted" requestID=2b5ad90e-d45b-49df-9142-b0eb93465805 requestSource=CSI
time="2020-12-02T13:41:04Z" level=error msg="GRPC error: rpc error: code = NotFound desc = volume not mounted" requestID=4e94babe-380d-4a34-939b-5104f8652ada requestSource=CSI