Bug 1027140 - "Permission denied" for non-root user while "cd" to the mount-point
Summary: "Permission denied" for non-root user while "cd" to the mount-point
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: glusterfs
Version: 2.1
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Bug Updates Notification Mailing List
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 1286204
TreeView+ depends on / blocked
 
Reported: 2013-11-06 09:06 UTC by Saurabh
Modified: 2016-01-19 06:15 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1286204 (view as bug list)
Environment:
Last Closed: 2015-11-27 12:26:10 UTC
Embargoed:


Attachments (Terms of Use)

Description Saurabh 2013-11-06 09:06:42 UTC
Description of problem:
This issue is seen on both nfs and glusterfs mounts.
The problem is that with cd to the mount-point fails for a non-root user, whereas with "root" user it works. 

Problem is seen after add-brick and rebalance operation.
Before that the things were working fine for creating file /directories with non-root user.


Version-Release number of selected component (if applicable):
glusterfs-3.4.0.38rhs-1

How reproducible:
seen only one volume on one cluster, but not on other.

Steps to Reproduce:
1. once the disks become full on all nodes, add another disk to all the nodes of the cluster

2. add brick on new disk using gluster volume command

3. start rebalance operation

4. on client, try to cd to the nfs/glusterfs mount-point as non-root user

Actual results:
[root@rhslong03 ~]# su qa1
[qa1@rhslong03 root]$ cd /mnt/nfs-test
bash: cd: /mnt/nfs-test: Permission denied
[qa1@rhslong03 root]$ cd


Expected results:
cd to the mount-point if allowed from root user is successful, then it should be successful as non-root user also.

Additional info:
[root@quota6 ~]# gluster volume rebalance dist-rep status
                                    Node Rebalanced-files          size       scanned      failures       skipped         status run time in secs
                               ---------      -----------   -----------   -----------   -----------   -----------   ------------   --------------
                               localhost                0        0Bytes             0             0             0    in progress        165656.00
                            10.70.35.188                0        0Bytes             0             0             0    in progress        165658.00
                            10.70.35.191                0        0Bytes             0             0             0    in progress        165656.00
                            10.70.35.144                0        0Bytes             0             0             0    in progress        165656.00
volume rebalance: dist-rep: success: 


[root@quota6 ~]# gluster volume quota dist-rep list
                  Path                   Hard-limit Soft-limit   Used  Available
--------------------------------------------------------------------------------
/                                          2.9TB       80%       2.7TB 222.9GB
/qa1                                     512.0GB       80%     512.0GB  26.5MB
/qa2                                     512.0GB       80%     512.0GB  0Bytes
/qa3                                     100.0GB       80%     100.0GB  0Bytes
/qa4                                     100.0GB       80%     100.0GB  0Bytes
/qa1/dir1                                500.0GB       80%     412.0GB  88.0GB
/qa2/dir1                                500.0GB       80%     412.0GB  88.0GB
/qa5                                     500.0GB       80%     500.0GB  0Bytes
/qa6                                     500.0GB       80%     500.0GB  0Bytes
/qa7                                     500.0GB       80%     298.3GB 201.7GB
/qa8                                     800.0GB       80%     236.0GB 564.0GB

Comment 1 Saurabh 2013-11-06 09:12:18 UTC
[root@quota6 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_quota6-lv_root
                       42G  4.3G   35G  12% /
tmpfs                 4.0G     0  4.0G   0% /dev/shm
/dev/vda1             485M   32M  428M   7% /boot
/dev/mapper/RHS_vgvdb-RHS_lv1
                      1.5T  1.5T   74G  96% /rhs/brick1
/dev/mapper/RHS_vgvdc-RHS_lv1
                      1.6T  415M  1.6T   1% /rhs/brick2
localhost:dist-rep    2.9T  2.7T  223G  93% /var/run/gluster/dist-rep


Note You need to log in before you can comment on or make changes to this bug.