Bug 1751210
Summary: | [GSS][Permission denied errors observed when running 'git clone' command on a home directory exported by NFS-Ganesha] | ||||||
---|---|---|---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | nravinas | ||||
Component: | nfs-ganesha | Assignee: | Soumya Koduri <skoduri> | ||||
Status: | CLOSED ERRATA | QA Contact: | Manisha Saini <msaini> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | rhgs-3.4 | CC: | amukherj, bkunal, dang, grajoria, jthottan, kkeithle, lbailey, mbenjamin, msaini, pasik, puebele, rhs-bugs, skoduri, storage-qa-internal, vdas | ||||
Target Milestone: | --- | ||||||
Target Release: | RHGS 3.5.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | nfs-ganesha-2.7.3-9 | Doc Type: | Bug Fix | ||||
Doc Text: |
NFS-Ganesha used client credentials for all operations on Gluster storage. In cases where a non-root user was operating on a read-only file, this resulted in 'permission denied' errors. Root permissions are now used where appropriate so that non-root users are able to create and write to files using 0444 mode.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2019-10-30 12:15:39 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | 1735480, 1753569 | ||||||
Bug Blocks: | 1696810 | ||||||
Attachments: |
|
Description
nravinas
2019-09-11 12:31:16 UTC
Verified this BZ with # rpm -qa | grep ganesha nfs-ganesha-2.7.3-9.el7rhgs.x86_64 glusterfs-ganesha-6.0-15.el7rhgs.x86_64 nfs-ganesha-gluster-2.7.3-9.el7rhgs.x86_64 Reproduced this issue with build nfs-ganesha-2.7.3-8.el7rhgs.x86_64 Steps: 1. Create 4 node ganesha cluster 2. Create a volume and export the volume via ganesha 3. Mount the volume on client via v 4.0 4. Provide permission 777 to ganesha mount dir 5. Create a user "mani" 6. Su mani 7. Perform git clone https://github.com/kasemir/pvws.git on mount point git clone failed with mount v 4.0,v4.1 but passed with v 3.0 v 4.0 ----------- bash-4.2$ git clone https://github.com/kasemir/pvws.git Cloning into 'pvws'... remote: Enumerating objects: 744, done. remote: Counting objects: 100% (744/744), done. remote: Compressing objects: 100% (482/482), done. remote: Total 744 (delta 299), reused 669 (delta 224), pack-reused 0 Receiving objects: 100% (744/744), 5.00 MiB | 296.00 KiB/s, done. Resolving deltas: 100% (299/299), done. fatal: fsync error on '/home/pvws/.git/objects/pack/tmp_pack_gw83C2': Permission denied fatal: index-pack failed ------------- v 4.1 ------------ bash-4.2$ git clone https://github.com/kasemir/pvws.git Cloning into 'pvws'... remote: Enumerating objects: 744, done. remote: Counting objects: 100% (744/744), done. remote: Compressing objects: 100% (482/482), done. fatal: Unable to create temporary file '/home/pvws/.git/objects/pack/tmp_pack_XXXXXX': Permission denied fatal: index-pack failed --------------- v 3.0 ------------ bash-4.2$ git clone https://github.com/kasemir/pvws.git Cloning into 'pvws'... remote: Enumerating objects: 744, done. remote: Counting objects: 100% (744/744), done. remote: Compressing objects: 100% (482/482), done. remote: Total 744 (delta 299), reused 669 (delta 224), pack-reused 0 Receiving objects: 100% (744/744), 5.00 MiB | 1.18 MiB/s, done. Resolving deltas: 100% (299/299), done. Checking out files: 100% (186/186), done. -------------- ============================================================================================================== With the fix in nfs-ganesha-2.7.3-9.el7rhgs.x86_64 build git clone was completed successfully- v 4.0 ------------- [mani@f09-h03-000-1029u ganesha]$ git clone https://github.com/kasemir/pvws.git Cloning into 'pvws'... remote: Enumerating objects: 744, done. remote: Counting objects: 100% (744/744), done. remote: Compressing objects: 100% (482/482), done. remote: Total 744 (delta 299), reused 669 (delta 224), pack-reused 0 Receiving objects: 100% (744/744), 5.00 MiB | 8.50 MiB/s, done. Resolving deltas: 100% (299/299), done. ---------------- v 4.1 --------------- bash-4.2$ git clone https://github.com/kasemir/pvws.git Cloning into 'pvws'... remote: Enumerating objects: 744, done. remote: Counting objects: 100% (744/744), done. remote: Compressing objects: 100% (482/482), done. remote: Total 744 (delta 299), reused 669 (delta 224), pack-reused 0 Receiving objects: 100% (744/744), 5.00 MiB | 0 bytes/s, done. Resolving deltas: 100% (299/299), done. ---------------- v 3.0 --------------- bash-4.2$ git clone https://github.com/kasemir/pvws.git Cloning into 'pvws'... remote: Enumerating objects: 744, done. remote: Counting objects: 100% (744/744), done. remote: Compressing objects: 100% (482/482), done. remote: Total 744 (delta 299), reused 669 (delta 224), pack-reused 0 Receiving objects: 100% (744/744), 5.00 MiB | 7.68 MiB/s, done. Resolving deltas: 100% (299/299), done. ----------------- Rest of the functionality cases will be run as part of regression cycle. Moving this BZ to verified state LGTM Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2019:3252 |