-
Notifications
You must be signed in to change notification settings - Fork 587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MountPropagation=false
by default breaks CSI plugins for Kubernetes v1.10+
#765
Comments
Currently, we've set |
I believe this is the reason StorageOS doesn't work with the current Rancher. I hope to try Rancher and StorageOS once this is fixed, as the helm charts(ex. WordPress) with PVC with subPath are not working for me with Local Host Path. |
Tested using 0.1.9-rc6. All mounts are defaulting to |
@moelsayed At least the feature mount propagation is enabled, the bidirectional mount works right? |
Hi, I also received some reports that our CSI plugin for DigitalOcean doesn't work: digitalocean/csi-digitalocean#41 After some research I found that the mounts are all mounted
As you see the mounts are propagated as I installed rancher via this command:
So, based on: #729 adding the following to config.yaml fixes the issue:
Propagation is also fixed and I can now see the correct value (
Having said that, what is the recommended way of using this feature now? I also see this is fixed here: https://github.com/rancher/types/pull/499/files, if that is the case, what's the latest Rancher version we can recommend to our CSI plugin users? Thanks |
The Kubernetes standard way of deploying CSI plugins includes a driver pod on each host, which will need to mount the device and propagate back to the host in order to be used by the user pod.
MountProgation=false
breaks CSI plugins. And it will do so silently since there is no way CSI plugin can know that the mount cannot be propagated back to the host (somehow the request forMountPropagationBidirectional
wasn't denied by the Kubernetes API server). So the user pod will receive an empty directory for the volume which appears to be not suspicous at all at first glance. But the data would be lost once the pod was destroyed since it's not at persistent storage at all.I believe that's one of the reasons that
MountProgation=true
is the default value for Kubernetes v1.10, which also enabled CSI by default.@ibuildthecloud @galal-hussein
The text was updated successfully, but these errors were encountered: