-
Notifications
You must be signed in to change notification settings - Fork 104
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
BUG: volume mounted as root:root despite options are set otherwise #132
Comments
Also as I see the directory permission mask option takes no effect since your ls shows the directory permission is 766 but in your options set to 777 |
I recreated everything (maybe there was an old storageclass still hanging around) but still get the root/root bug the output of
Another issue pointed me to this line in the code k8s-csi-s3/pkg/mounter/geesefs.go Lines 97 to 101 in 80dcfa4
where it is indeed overwriting the uid and gid args. |
@pasztorl can you take another look? this really looks like a bug to me. |
Unless I'm misinterpreting something, On top of that, seems that this only worked to be by also passing // [..]
volumeAttributes:
capacity: 5Gi
mounter: geesefs
options: "--memory-limit 1000 --dir-mode 0777 --file-mode 0666 --uid 1000 --setuid 1000 --gid 1000 --setgid 1000 --enable-perms" |
Hello,
If I understood it correctly, then the geesefs csi s3 volume is mounted as root:root because the yandex csi driver is doing it so (and not because another kubernetes controller does this somehow generically for volumes).
But I set
--memory-limit 1000 --dir-mode 0777 --file-mode 0644 --setuid 1000 --setgid 1000
for the options, so why is it still mounted as root?I get permission denied EACCES errors respectively.
I am using static PV which looks like this:
It is mounted, but the permissions are wrong. Looking at the output of
mount
I actually see that the groupid is wrongly configureddoing a
ls -l
showsThe text was updated successfully, but these errors were encountered: