Bug 1146256 - Initial Georeplication fails to use correct GID on folders ONLY
Summary: Initial Georeplication fails to use correct GID on folders ONLY
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: geo-replication
Version: 2.1
Hardware: All
OS: Linux
high
high
Target Milestone: ---
: RHGS 2.1.6
Assignee: Aravinda VK
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard:
Depends On: 1104061
Blocks: 1146263 1176659
TreeView+ depends on / blocked
 
Reported: 2014-09-24 21:00 UTC by Harold Miller
Modified: 2018-12-09 18:39 UTC (History)
9 users (show)

Fixed In Version: glusterfs-3.4.0.71rhs-1.el6rhs
Doc Type: Bug Fix
Doc Text:
Previously, Geo-replication sessions failed to synchronize the ownerships of empty files or files copied from other location. The files in the slave volume had different ownerships and permissions. With this fix, files in both master and slave volumes have the same ownership and permission.
Clone Of:
: 1146263 (view as bug list)
Environment:
Last Closed: 2015-01-28 10:42:27 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 1210323 0 None None None Never
Red Hat Product Errata RHBA-2015:0095 0 normal SHIPPED_LIVE Red Hat Storage 2.1 bug fix update #6 2015-01-28 15:40:30 UTC

Description Harold Miller 2014-09-24 21:00:04 UTC
Description of problem: Fresh geo-replication fails to copy directory group to slave.


Version-Release number of selected component (if applicable): 3.4.0.61geo-1.el6rhs.1.hotfix.sfdc01121015.sfdc0117419


Steps to Reproduce: (Custoemrs words)

1.We deleted the geo-replication sessions, destroyed the slave volumes, reformatted the brick file systems, rebuilt the slave volumes, and recreated geo-replication sessions to sync to the completely empty slave volumes.

2.After the hybrid crawl finished, we used a read-only rsync command to compare the master and slave. 

Actual results:We found that a large proportion of directories copied to the slave volume did not have the correct group. The GID of the directory in the slave volume was instead set to the UID of the directory owner.

*Files* did not exhibit this behavior, just directories.

Expected results: UID and GID on files and folders should remain unchanged


Additional info:

Comment 5 shilpa 2015-01-09 07:28:45 UTC
Verified on glusterfs-3.4.0.71

# cd /mnt/master
# mkdir deep1
# useradd shilpa
# chown -R shilpa deep1
# su shilpa
# mkdir deep2

On master:
# ls -l
drwxr-xr-x 2 shilpa root 12 Jan  9 07:05 deep1

$ ls -l /mnt/master/level0/
total 0
drwxrwxr-x 3 shilpa shilpa 38 Jan  9 07:14 level1

On slave:
# ls -l /mnt/slave
drwxr-xr-x 3 shilpa root 36 Jan  9 07:08 deep1

$ ls -l /mnt/slave/level0/
total 0
drwxrwxr-x 3 shilpa shilpa 38 Jan  9 07:14 level1

Comment 7 Pavithra 2015-01-16 11:10:05 UTC
Hi Aravinda,

I removed some internal details of how geo-rep works. I've edited the doc text. Can you please review it and sign off?

Comment 10 errata-xmlrpc 2015-01-28 10:42:27 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-0095.html


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