Bug 1005558 - Rebalance : Permissions changing on root directory after rebalance process
Summary: Rebalance : Permissions changing on root directory after rebalance process
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: distribute
Version: 2.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Nithya Balachandran
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 1286179 1286192
TreeView+ depends on / blocked
 
Reported: 2013-09-08 11:28 UTC by senaik
Modified: 2015-11-27 12:21 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1286179 1286192 (view as bug list)
Environment:
Last Closed: 2015-11-27 12:14:04 UTC
Embargoed:


Attachments (Terms of Use)

Description senaik 2013-09-08 11:28:50 UTC
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.