Bug 904919 - After Rebalance , with non root user, permissions on some link files change
Summary: After Rebalance , with non root user, permissions on some link files change
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: distribute
Version: 2.0
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: ---
Assignee: Nithya Balachandran
QA Contact: senaik
URL:
Whiteboard:
Depends On:
Blocks: 990154 990548
TreeView+ depends on / blocked
 
Reported: 2013-01-28 07:34 UTC by senaik
Modified: 2015-09-01 12:24 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 990154 990548 (view as bug list)
Environment:
Last Closed: 2013-01-29 04:22:32 UTC
Embargoed:


Attachments (Terms of Use)
Brick , Rebalance and Mount Logs are attached (60.00 KB, application/x-tar)
2013-01-28 07:34 UTC, senaik
no flags Details

Description senaik 2013-01-28 07:34:22 UTC
Created attachment 688761 [details]
Brick , Rebalance and Mount Logs are attached

Description of problem:After creating some link files with non root user on the mount point and running rebalance , owner permissions changes for a few link files on the mount point 


Version-Release number of selected component (if applicable):


How reproducible:
quite often 

Steps to Reproduce:
1.create a distribute volume with 2 bricks

2.add another user (ABC)on the client machine and create 100 files and link files to them
for i in {1..100}; do dd if=/dev/urandom of=$i bs=1024 count=1; done
for i in {1..100}; do ln -sf $i link$i; done

3.Check the owner permissions of the file  on the mount point 
lrwxrwxrwx 1 ABC ABC    1 Jan 28  2013 link1 -> 1
lrwxrwxrwx 1 ABC ABC    2 Jan 28  2013 link10 -> 10
lrwxrwxrwx 1 ABC ABC    3 Mar 13 18:00 link100 -> 100
lrwxrwxrwx 1 ABC ABC    2 Jan 28  2013 link11 -> 11
lrwxrwxrwx 1 ABC ABC    2 Mar 13 18:00 link12 -> 12
lrwxrwxrwx 1 ABC ABC    2 Jan 28  2013 link13 -> 13
lrwxrwxrwx 1 ABC ABC    2 Mar 13 18:00 link14 -> 14
lrwxrwxrwx 1 ABC ABC    2 Jan 28  2013 link15 -> 15

4. Add another brick and initiate rebalance 

5. After rebalance is complete , check the owner permissions of the files on the mount point.

 
Actual results:

Few link files have changed the owner permission to root : 

lrwxrwxrwx 1 ABC  ABC     1 Jan 28  2013 link1 -> 1
lrwxrwxrwx 1 ABC  ABC     2 Jan 28  2013 link10 -> 10
lrwxrwxrwx 1 ABC  ABC     3 Mar 13 18:00 link100 -> 100
lrwxrwxrwx 1 ABC  ABC     2 Jan 28  2013 link11 -> 11
lrwxrwxrwx 1 ABC  ABC     2 Mar 13 18:00 link12 -> 12
lrwxrwxrwx 1 root root    2 Jan 28  2013 link13
lrwxrwxrwx 1 ABC  ABC     2 Mar 13 18:00 link14 -> 14
lrwxrwxrwx 1 ABC  ABC     2 Jan 28  2013 link15 -> 15
lrwxrwxrwx 1 ABC  ABC     2 Mar 13 18:00 link16 -> 16
lrwxrwxrwx 1 ABC  ABC     2 Jan 28  2013 link17 -> 17
lrwxrwxrwx 1 root root    2 Jan 28  2013 link18

Expected results:
The owner permissions must be retained after rebalance . 

Additional info:
I have attached the brick logs , rebalance logs and the mount logs for your reference .

Comment 2 Amar Tumballi 2013-01-28 12:06:42 UTC
please specify which version did you get the issue?

Comment 3 shishir gowda 2013-01-29 04:22:32 UTC

*** This bug has been marked as a duplicate of bug 902200 ***

Comment 4 senaik 2013-01-29 04:44:19 UTC
Hi Amar, 

This issue was found on version : 3.3.0.5rhs-40.el6rhs.x86_64

Comment 5 shishir gowda 2013-07-16 10:33:21 UTC
Re-opening the bug as I had incorrectly identified it as a duplicate of bug 902200. 902200 is fix for hardlinks, while this issue is for symlinks.

Comment 6 Vivek Agarwal 2015-03-23 07:40:31 UTC
The product version of Red Hat Storage on which this issue was reported has reached End Of Life (EOL) [1], hence this bug report is being closed. If the issue is still observed on a current version of Red Hat Storage, please file a new bug report on the current version.







[1] https://rhn.redhat.com/errata/RHSA-2014-0821.html

Comment 7 Vivek Agarwal 2015-03-23 07:40:48 UTC
The product version of Red Hat Storage on which this issue was reported has reached End Of Life (EOL) [1], hence this bug report is being closed. If the issue is still observed on a current version of Red Hat Storage, please file a new bug report on the current version.







[1] https://rhn.redhat.com/errata/RHSA-2014-0821.html


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