CSI driver-smb mount the directory and immediately unmount despite no errors. #880
-
Hello, I can't get csi smb driver to work properly in managed k8s cluster running on CentOS Linux 7 (KERNEL VERSION 3.10.0-1160.92.1.el7.x86_64). StorageClass:
StatefulSet:
State of pod:
After pod in up state, PVC was created automatically and Bound:
But directory is not mounted in pod:
kubectl logs csi-smb-controller-69f9ccfbb6-mpsnc -c smb -n kube-systemI1205 12:49:19.617813 1 utils.go:83] GRPC response: {}
I1205 12:49:56.471186 1 utils.go:76] GRPC call: /csi.v1.Controller/CreateVolume
I1205 12:49:56.471202 1 utils.go:77] GRPC request: {"capacity_range":{"required_bytes":10737418240},"name":"pvc-8c9943b6-bdcc-4f10-bdf9-6bcc614857d3","parameters":{"csi.storage.k8s.io/pv/name":"pvc-8c9943b6-bdcc-4f10-bdf9-6bcc614857d3","csi.storage.k8s.io/pvc/name":"persistent-storage-statefulset-smb-0","csi.storage.k8s.io/pvc/namespace":"default","source":"//10.0.0.10/Backup"},"secrets":"***stripped***","volume_capabilities":[{"AccessType":{"Mount":{"mount_flags":["seal","vers=3.0","nosuid","noexec","dir_mode=0777","file_mode=0777","uid=1001","gid=1001","noperm","mfsymlinks","cache=strict","noserverino"]}},"access_mode":{"mode":7}}]}
I1205 12:49:56.471327 1 controllerserver.go:314] internally mounting //10.0.0.10/Backup at /tmp/pvc-8c9943b6-bdcc-4f10-bdf9-6bcc614857d3
I1205 12:49:56.471413 1 nodeserver.go:209] NodeStageVolume: targetPath(/tmp/pvc-8c9943b6-bdcc-4f10-bdf9-6bcc614857d3) volumeID(10.0.0.10/Backup#pvc-8c9943b6-bdcc-4f10-bdf9-6bcc614857d3##) context(map[source://10.0.0.10/Backup]) mountflags([seal vers=3.0 nosuid noexec dir_mode=0777 file_mode=0777 uid=1001 gid=1001 noperm mfsymlinks cache=strict noserverino]) mountOptions([seal vers=3.0 nosuid noexec dir_mode=0777 file_mode=0777 uid=1001 gid=1001 noperm mfsymlinks cache=strict noserverino])
I1205 12:49:56.471620 1 mount_linux.go:218] Mounting cmd (mount) with arguments (-t cifs -o seal,vers=3.0,nosuid,noexec,dir_mode=0777,file_mode=0777,uid=1001,gid=1001,noperm,mfsymlinks,cache=strict,noserverino,<masked> //10.0.0.10/Backup /tmp/pvc-8c9943b6-bdcc-4f10-bdf9-6bcc614857d3)
I1205 12:49:56.565836 1 nodeserver.go:241] volume(10.0.0.10/Backup#pvc-8c9943b6-bdcc-4f10-bdf9-6bcc614857d3##) mount "//10.0.0.10/Backup" on "/tmp/pvc-8c9943b6-bdcc-4f10-bdf9-6bcc614857d3" succeeded
I1205 12:49:56.593727 1 controllerserver.go:332] internally unmounting /tmp/pvc-8c9943b6-bdcc-4f10-bdf9-6bcc614857d3
I1205 12:49:56.593749 1 nodeserver.go:264] NodeUnstageVolume: CleanupMountPoint on /tmp/pvc-8c9943b6-bdcc-4f10-bdf9-6bcc614857d3 with volume 10.0.0.10/Backup#pvc-8c9943b6-bdcc-4f10-bdf9-6bcc614857d3##
I1205 12:49:56.605737 1 mount_helper_common.go:93] unmounting "/tmp/pvc-8c9943b6-bdcc-4f10-bdf9-6bcc614857d3" (corruptedMount: false, mounterCanSkipMountPointChecks: true)
I1205 12:49:56.605761 1 mount_linux.go:360] Unmounting /tmp/pvc-8c9943b6-bdcc-4f10-bdf9-6bcc614857d3
I1205 12:49:56.632903 1 mount_helper_common.go:150] Deleting path "/tmp/pvc-8c9943b6-bdcc-4f10-bdf9-6bcc614857d3"
I1205 12:49:56.632991 1 nodeserver.go:273] NodeUnstageVolume: unmount volume 10.0.0.10/Backup#pvc-8c9943b6-bdcc-4f10-bdf9-6bcc614857d3## on /tmp/pvc-8c9943b6-bdcc-4f10-bdf9-6bcc614857d3 successfully
I1205 12:49:56.633005 1 utils.go:83] GRPC response: {"volume":{"volume_context":{"csi.storage.k8s.io/pv/name":"pvc-8c9943b6-bdcc-4f10-bdf9-6bcc614857d3","csi.storage.k8s.io/pvc/name":"persistent-storage-statefulset-smb-0","csi.storage.k8s.io/pvc/namespace":"default","source":"//10.0.0.10/Backup","subdir":"pvc-8c9943b6-bdcc-4f10-bdf9-6bcc614857d3"},"volume_id":"10.0.0.10/Backup#pvc-8c9943b6-bdcc-4f10-bdf9-6bcc614857d3##"}} Login and password is correct, and i can connect to smb from the debug pod on node:
Also i can mount smb directory on node 192.168.242.78 where pod is created after apply statefulset:
Username, password and domain have been changed for security purposes. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
@lanzmlt what is your kubelet path? if it's not |
Beta Was this translation helpful? Give feedback.
-
@andyzhangx i can't run smb-controller on control plane node, because i have a managed k8s. In my case kubelet plugins located in:
So, unfortunately, these tips not my case and can't help me. |
Beta Was this translation helpful? Give feedback.
-
I have this problem too with MicroK8s - home lab. |
Beta Was this translation helpful? Give feedback.
have you
--set linux.kubelet="/mnt/paas/kubernetes/kubelet"
in the driver install?