Bug 1005558 - Rebalance : Permissions changing on root directory after rebalance process
Rebalance : Permissions changing on root directory after rebalance process
Status: CLOSED DEFERRED
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: distribute (Show other bugs)
2.1
Unspecified Unspecified
unspecified Severity high
: ---
: ---
Assigned To: Nithya Balachandran
storage-qa-internal@redhat.com
:
Depends On:
Blocks: 1286179 1286192
  Show dependency treegraph
 
Reported: 2013-09-08 07:28 EDT by senaik
Modified: 2015-11-27 07:21 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1286179 1286192 (view as bug list)
Environment:
Last Closed: 2015-11-27 07:14:04 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description senaik 2013-09-08 07:28:50 EDT
Description of problem:
======================
As non root user , after rebalance process , permissions are changing on root directory 

Version-Release number of selected component (if applicable):
============================================================ 
glusterfs 3.4.0.32rhs


How reproducible:
================
reproduced the issue twice 

Steps to Reproduce:
====================
1.Create a dist-rep volume and start it 

2.Fuse mount the volume and change permissions :

mount -t glusterfs 10.70.34.85:/vol4 /mnt/vol4/
chmod 777 /mnt/vol4/

Check permissions before rebalance : 
-------------------------------------
drwxrwxrwx.  3 root root    46 Sep  8  2013 vol4


3.Log in as non root user (ABC) and create some files 

for i in {1..100}; do dd if=/dev/urandom of=$i bs=1024 count=1; done

4. Add brick and start rebalance 

5. After rebalance is complete , create some more files on the mount point as non root user (ABC)

[ABC@RHEL6 vol4]$ for i in {101..110}; do dd if=/dev/urandom of=$i bs=1024 count=1; done
dd: opening `101': Permission denied
dd: opening `102': Permission denied
dd: opening `103': Permission denied
dd: opening `104': Permission denied
dd: opening `105': Permission denied
dd: opening `106': Permission denied
dd: opening `107': Permission denied
dd: opening `108': Permission denied
dd: opening `109': Permission denied
dd: opening `110': Permission denied

Check permissions after rebalance : 
-----------------------------------

drwxr-xr-x.  3 root root 16667 Sep  8  2013 vol4

Actual results:
================ 
Permissions for non root user changing after rebalance 

Expected results:
================= 
Permissions should not change after rebalance process 

Additional info:
================
[root@boost brick1]# gluster v i vol4
 
Volume Name: vol4
Type: Distributed-Replicate
Volume ID: a00c7c39-3bb8-438c-8f79-1de3d8458033
Status: Started
Number of Bricks: 3 x 2 = 6
Transport-type: tcp
Bricks:
Brick1: 10.70.34.86:/rhs/brick1/d1
Brick2: 10.70.34.85:/rhs/brick1/d2
Brick3: 10.70.34.88:/rhs/brick1/d3
Brick4: 10.70.34.89:/rhs/brick1/d4
Brick5: 10.70.34.85:/rhs/brick1/d5
Brick6: 10.70.34.89:/rhs/brick1/d6

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