Skip to content
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

[QUESTION]: NFS based mountpoint inside PODs always defaults to root:root #1204

Closed
anandhg02 opened this issue Mar 26, 2024 · 7 comments
Closed
Assignees
Labels
type/question Ask a question. This is the default label associated with a question issue.

Comments

@anandhg02
Copy link

NFS based mountpoint inside PODs always defaults to root:root, as fsGroup securityContext does not apply to NFS mounts. But POD needs non-root access. This looks to be a known issue for NFS and the workaround is to use initCointainer to use chown command to set the required owner:group . It would be helpful if a reference be added in the CSM documentation about this.

Reference:
Why does my app fail when a non-root user owns the NFS file storage mount path? | IBM Cloud Docs

@anandhg02 anandhg02 added the type/question Ask a question. This is the default label associated with a question issue. label Mar 26, 2024
@adarsh-dell
Copy link
Contributor

adarsh-dell commented Apr 10, 2024

Hi @anandhg02 ,
If I'm correct, we have mentioned this issue in the known issues section of the drivers' release notes for whoever was facing it. A workaround is also provided. Is this what you're looking for, or is there something else you need assistance with?
image
image

@adarsh-dell adarsh-dell self-assigned this Apr 10, 2024
@anandhg02
Copy link
Author

Hello Adarsh, Yes I found this later from the Release Notes section. What I intend to says was, can this be documented in a proper location may be under CSI Driver > Features and also explain the workaround as well, just my suggestion.

@gallacher gallacher reopened this Apr 10, 2024
@gallacher
Copy link
Contributor

@anandhg02, this aligns with troubleshooting. Would it be helpful if this was added to the Troubleshooting section? https://dell.github.io/csm-docs/docs/csidriver/troubleshooting/powerscale/.

@gallacher gallacher reopened this Apr 10, 2024
@anandhg02
Copy link
Author

Agree, yes it can be part of Troubleshooting. But as this issue (fsGroup not working as expected) is common for any NFS based provisioning the Resolution or Workaround can be added under other storage arrays as well like PowerStore, Unity XT.

@gallacher
Copy link
Contributor

@anandhg02 I've created a pull request (dell/csm-docs#1063). Please have a look when you have a moment to see if this addresses things. Thank you.

@anandhg02
Copy link
Author

Thanks a lot @gallacher

@gallacher
Copy link
Contributor

You're very welcome @anandhg02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question Ask a question. This is the default label associated with a question issue.
Projects
None yet
Development

No branches or pull requests

3 participants