mountpoint-s3-csi-driver: Pod "Sometimes" cannot mount PVC in CSI version 1.4.0
Hello Team,
I am trying to test CSI driver 1.4.0 in K8s 1.27. But I found “Some Times” the Pod cannot mount the PVC and the CSI driver Pod reports below error:
I0331 13:53:37.687569 1 node.go:65] NodePublishVolume: req: volume_id:"s3-csi-driver-volume" target_path:"/var/lib/kubelet/pods/adaac085-e689-49f8-b9f5-d0467907d875/volumes/kubernetes.io~csi/comfyui-outputs-pv/mount" volume_capability:<mount:<mount_flags:"allow-delete" mount_flags:"region us-east-2" > access_mode:<mode:MULTI_NODE_MULTI_WRITER > > volume_context:<key:"bucketName" value:"comfyui-outputs-835894076989-us-east-2" >
I0331 13:53:37.687634 1 node.go:112] NodePublishVolume: mounting comfyui-outputs-835894076989-us-east-2 at /var/lib/kubelet/pods/adaac085-e689-49f8-b9f5-d0467907d875/volumes/kubernetes.io~csi/comfyui-outputs-pv/mount with options [--allow-delete --region=us-east-2]
E0331 13:53:37.687730 1 driver.go:96] GRPC error: rpc error: code = Internal desc = Could not mount "comfyui-outputs-835894076989-us-east-2" at "/var/lib/kubelet/pods/adaac085-e689-49f8-b9f5-d0467907d875/volumes/kubernetes.io~csi/comfyui-outputs-pv/mount": Could not check if "/var/lib/kubelet/pods/adaac085-e689-49f8-b9f5-d0467907d875/volumes/kubernetes.io~csi/comfyui-outputs-pv/mount" is a mount point: stat /var/lib/kubelet/pods/adaac085-e689-49f8-b9f5-d0467907d875/volumes/kubernetes.io~csi/comfyui-outputs-pv/mount: no such file or directory, Failed to read /host/proc/mounts: open /host/proc/mounts: invalid argument
And even in the case of normal mounting, the CSI driver Pod still posting such of the above logs. Seems like the CSI driver keep tring to mount the same PVC to the sam Pod and failed. Not sure whether there is anything is misconfig.
Those problems only happend with “Karpenter” scale up worker nodes with new deployment/pod in EKS v1.27. All mount operations are normal for static k8s worker nodes.
Workaround:
- delete the s3-csi-xxxxx Pod running on the Karpenter worker node
- using S3 CSi driver 1.0.0
Looking forward to your support, thanks.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 30 (16 by maintainers)
Commits related to this issue
- Fix cannot mount PVC in driver (#174) (#229) — committed to awslabs/mountpoint-s3-csi-driver by Shellmode 2 years ago
- Add retry to reading `/proc/mounts` (#234) * Fix cannot mount PVC in driver (#174) (#229) * Add logs to retry on reading `/proc/mounts` * Update logging message on retry Co-authored-by: Dani... — committed to awslabs/mountpoint-s3-csi-driver by unexge 2 years ago
We plan to make a new release this or next week and the fix will be included in that release.
Thank you for your response. I just upgraded from version 1.6.0 to 1.7.0. I will need some time to observe the system for any reoccurrence of the issue. If the problem persists, I will collect and share the necessary logs as per your provided guidelines.
Can confirm this happened on version 1.6.0, on some Karpenter managed nodes. Restarting the s3-csi pods did solve it but it would good to find the root cause of this (Especially if it happens when some a cluster scales nodes). I can’t be 100% sure but so far it seems to have happened on newly provisioned nodes.
Retry read
/host/proc/mountswill success, submitted the pull requests, please kindly review.It is necessary to keep investigating the root cause, but this issue currently affects many Karpenter (and possibly other) users. To prevent users from having to manually restart
s3-csi-node-xxxevery time, it is better to solve the issue by retrying the read in the code.Same here with 1.60 too and same workaround restarting the s3 pod after GPU EC2 machine was created using karpenter.
I’m facing the same on version 1.4.0