-
Notifications
You must be signed in to change notification settings - Fork 260
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
wrong umask in nfs-controller pod #187
Comments
not sure what do you mean, I think you could submit a PR and then review, thanks. |
Ok, I try to explain it a bit more first, not sure if it is a real bug or not. csi-driver-nfs/pkg/nfs/controllerserver.go Lines 103 to 105 in b53f765
this code should create volume with access rights 0777. Unless umask is set. It seems that rke1/2 containers have umask set to 0022 which means that persistent volumes are created with rights 0755 instead of 0777. I guess it is a bug and nfsplugin should set umask to 0000 by itself. What do you think? |
I tried workaround with -mount-permissions, but no luck either:
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Have you tried it with "--mount-permissions=0777"? I think it did not work for me with a single dash at the beginning. But I'm not sure if that has to be at the driver or controller. I have it currently for both, as the first I tried was not the right one. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
should be fixed by this PR(#238) in v3.0.0 release |
…indows-versions Remove Windows versions 1909 and 2004 which have reached EOL
It seems that current nfs-controller pod has umask 0022 which leads to PV created with access rights 0755. Is this desired? I guess not according to source codes:
if err = os.Mkdir(internalVolumePath, 0777); err != nil && !os.IsExist(err) {
should it be fixed to either allow set umask or set umask forcibly to 0000?
The text was updated successfully, but these errors were encountered: