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

permission denied issue on glusterfs 6.4 #711

Closed
woodlgz opened this issue Aug 15, 2019 · 8 comments
Closed

permission denied issue on glusterfs 6.4 #711

woodlgz opened this issue Aug 15, 2019 · 8 comments
Labels

Comments

@woodlgz
Copy link

woodlgz commented Aug 15, 2019

I am running glusterfs 6.4 in my environment.

For every first time users enter a glusterfs directory and 'ls -la' the files ,after which trying to access any of them, a permission denied error is prompt.

The phenonmenon looks exactly alike to what was described in https://bugzilla.redhat.com/show_bug.cgi?id=1668286。

And I noticed that this issue was fixed at master branch with commit 6bf9637

I worked around this problem by temporarily turning off readdirp. Permission denied problem is gone.

I suggest there should be a fix at branch release 6.0 as well.

@mohit84
Copy link
Contributor

mohit84 commented Aug 15, 2019

Patch to backport the same in the release-6
https://review.gluster.org/#/c/glusterfs/+/23233/

@amarts
Copy link
Member

amarts commented Oct 15, 2019

Noticed that this was not merged as it was blocked on regression.

@woodlgz thanks for reporting. Will make sure this is merged into next release.
@harigowtham please track it.

@harigowtham
Copy link
Member

The patch has been merged into release-6. It should be a part of 6.6 which is supposed to be released on 30th Oct. The tracker ug for 6.6: https://bugzilla.redhat.com/show_bug.cgi?id=1762237

@alanorth
Copy link

FYI this affects 5.10 as well. My users and I have been noticing sporadic "permission denied" errors for a few months on release-5. For what it's worth, the one-line reproducer in the bug report works very well to illustrate the issue. If I mount the Gluster volume with -o use-readdirp=no there is no permission denied. Can the fix be backported to release-5 as well?

alanorth added a commit to ilri/rmg-ansible-public that referenced this issue Oct 27, 2019
This works around sporadic "permission denied" errors. The issue is
fixed in GlusterFS master and 6.5, but not 5.x yet.

See: gluster/glusterfs#711
See: https://bugzilla.redhat.com/show_bug.cgi?id=1668286
@alanorth
Copy link

Update: after a suggestion on the gluster-users mailing list I cherry-picked this fix from master and submitted it to Gerrit for inclusion in the next 5.x release.

@harigowtham
Copy link
Member

Hi Alan,
Thanks for the patch. You need to update your patch's commit message with a "Fixes: bz#<release 5 bug id>"

I have cloned the bug for release-5 the bug id is 1767305. Please do update, so we can take it in.

@amarts amarts closed this as completed Jan 14, 2020
@cdkunsong
Copy link

I also encountered permission problems in version 6.4. During the process of copying files, I tracked the code and found that when frame->root->uid =0, he can succeed, Debug:frame_is_user uid=0 fuid=0
But sometimes it is another value uid=0 fuid=102, it will fail
What is the possible cause ?

@pranithk
Copy link
Member

pranithk commented May 6, 2021

I also encountered permission problems in version 6.4. During the process of copying files, I tracked the code and found that when frame->root->uid =0, he can succeed, Debug:frame_is_user uid=0 fuid=0
But sometimes it is another value uid=0 fuid=102, it will fail
What is the possible cause ?

https://review.gluster.org/#/c/glusterfs/+/23233/ has the RC and fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants