Bug 1162573 - DHT + rebalance :- file permission got changed after file migration
Summary: DHT + rebalance :- file permission got changed after file migration
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: distribute
Version: rhgs-3.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: RHGS 3.0.4
Assignee: Bug Updates Notification Mailing List
QA Contact: amainkar
URL:
Whiteboard:
Depends On: 1061585 1168549
Blocks: 1182947
TreeView+ depends on / blocked
 
Reported: 2014-11-11 11:09 UTC by Rachana Patel
Modified: 2015-05-13 17:52 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, certain file permissions were changed after the file was migrated by a rebalance operation. With this fix, the file retains its original permissions even after file migration.
Clone Of:
Environment:
Last Closed: 2015-03-26 06:34:54 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0682 0 normal SHIPPED_LIVE Red Hat Storage 3.0 enhancement and bug fix update #4 2015-03-26 10:32:55 UTC

Description Rachana Patel 2014-11-11 11:09:08 UTC
Description of problem:
=======================
File permission got changed after file migration in few cases.


before rebalance:-
[root@dht19 test]# ls -l
total 0
-rwSr--r-- 1 root root 0 Nov 11 09:27 ooo

After rebalance:-
[root@dht19 test]# ls -l
total 0
-rw-r--r-- 1 root root 0 Nov 11 09:27 ooo


before rebalance:-
 [root@dht19 test]# ls -l
 total 0
-rwxr-sr-- 1 root root 0 Nov 11 09:27 ooo

After rebalance:-
[root@dht19 test]# ls -l
 total 0
-rwxr-xr-- 1 root root 0 Nov 11 09:27 ooo
 

Version-Release number of selected component (if applicable):
=============================================================
3.6.0.29-1.el6rhs.x86_64


How reproducible:
=================
always


Steps to Reproduce:
===================
1. create, start and FUSE mount Distributed volume having 3 bricks. 
2. created file,  renamed it so hashed and cached sub-volumes are different and change permission as below

case 1:-
[root@dht19 test]# ls -l
total 0
-rwSr--r-- 1 root root 0 Nov 11 09:27 ooo

case 2:-
[root@dht19 test]# ls -l
 total 0
-rwxr-sr-- 1 root root 0 Nov 11 09:27 ooo


3. started rebalance process for that volume. Once rebalance is completed.

4. checked file from mount point it has different permission.

case 1:-
[root@dht19 test]# ls -l
total 0
-rw-r--r-- 1 root root 0 Nov 11 09:27 ooo


case 2:-
After rebalance:-
[root@dht19 test]# ls -l
 total 0
-rwxr-xr-- 1 root root 0 Nov 11 09:27 ooo


Actual results:
================
file permissions are changed after migration


Expected results:
================
file permissions should remain same


Document URL: 

Section Number and Name: 

Describe the issue: 

Suggestions for improvement: 

Additional information: 


Description of problem:


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 5 Triveni Rao 2015-02-17 08:59:25 UTC
Please update the fixed in version.

Comment 6 Triveni Rao 2015-02-17 14:17:23 UTC
This bug has been verified with following build of 3.0.4 version.

[root@rhsauto032 bug]# glusterfsd --version
glusterfs 3.6.0.44 built on Feb  9 2015 01:27:51
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2013 Red Hat, Inc. <http://www.redhat.com/>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
It is licensed to you under your choice of the GNU Lesser
General Public License, version 3 or any later version (LGPLv3
or later), or the GNU General Public License, version 2 (GPLv2),
in all cases as published by the Free Software Foundation.
[root@rhsauto032 bug]# 
[root@rhsauto032 bug]# rpm -qa | grep gluster
gluster-nagios-common-0.1.4-1.el6rhs.noarch
glusterfs-api-3.6.0.44-1.el6rhs.x86_64
glusterfs-server-3.6.0.44-1.el6rhs.x86_64
gluster-nagios-addons-0.1.14-1.el6rhs.x86_64
samba-glusterfs-3.6.509-169.4.el6rhs.x86_64
glusterfs-libs-3.6.0.44-1.el6rhs.x86_64
glusterfs-3.6.0.44-1.el6rhs.x86_64
glusterfs-cli-3.6.0.44-1.el6rhs.x86_64
glusterfs-geo-replication-3.6.0.44-1.el6rhs.x86_64
vdsm-gluster-4.14.7.3-1.el6rhs.noarch
glusterfs-fuse-3.6.0.44-1.el6rhs.x86_64
glusterfs-rdma-3.6.0.44-1.el6rhs.x86_64
[root@rhsauto032 bug]# 


Tests carried on:
Case 1:

1. Create file check the permission
2. rename the file and check the permission
3. Kick rebalance and check permission from mmount point and also check the rebalance is successful.

Result: PASS

Case 2: 
1. Create s file, check the permission.
2. Rename the file and change the permission ex: chmod u+s tri.txt
3. kick rebalance and check the permission after the rebalance completed successfully.

Result: PASS

Case 3:
1. Create 1GB file, check the permission.
2. Rename the file and kick rebalance.
3. When rebalance is happening change the permission of the file ex: chmod u+s tri.txt.
4. When rebalance completed successfully, check the permission of the file.

Result:
PASS

Comment 7 Bhavana 2015-03-11 06:01:26 UTC
Hi Nithya,

Can you please update the doc text for this bug.

Thanks!

Comment 10 errata-xmlrpc 2015-03-26 06:34:54 UTC
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://rhn.redhat.com/errata/RHBA-2015-0682.html


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