Bug 1162573

Summary: DHT + rebalance :- file permission got changed after file migration
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Rachana Patel <racpatel>
Component: distributeAssignee: Bug Updates Notification Mailing List <rhs-bugs>
Status: CLOSED ERRATA QA Contact: amainkar
Severity: high Docs Contact:
Priority: high    
Version: rhgs-3.0CC: annair, bmohanra, nbalacha, nsathyan, rhs-bugs, vagarwal
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.0.4   
Hardware: x86_64   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-26 06:34:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1061585, 1168549    
Bug Blocks: 1182947    

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