csi-driver-smb: could not mount SMB share in 1.20
Due to my own mistake, I updated cluster to 1.20.0 version (luckily it’s not production)
Now I can’t mount SMB share and face such issue:
Warning FailedMount 106s (x11 over 7m57s) kubelet MountVolume.NewMounter initialization failed for volume "pvc-1231231" : kubernetes.io/csi: expected valid fsGroupPolicy, received nil value or empty string
I tried to add those lines to DaemonSet/CSIDriver:
fsGroupChangePolicy: None fsGroupPolicy: None
Didn’t work out either.
So, any quick fix solutions before next release of driver?
Environment:
- CSI Driver version: 0.5.0
- Kubernetes version (use
kubectl version): 1.20.0 - OS (e.g. from /etc/os-release): Ubuntu 20.04.1 LTS
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 20 (5 by maintainers)
Commits related to this issue
- Merge pull request #176 from pohly/go-1.17.3 prow.sh: bump Go to 1.17.3 — committed to andyzhangx/csi-driver-smb by k8s-ci-robot 3 years ago
I added
--feature-gates=CSIVolumeFSGroupPolicy=falseto the end ofExecStart=in/etc/systemd/system/kubelet.service.d/10-kubeadm.confIt seems the problem was caused by incompatibility of the versions kubelet v1.20 and apiservers v1.19. After all apiservers upgraded, everything if working perfectly.
Did it work for you to disable the CSIVolumeFSGroupPolicy with the --feature-gates? How do you set this on the kubelet with kubectl?
Thanks, Marc