Bug 1275972

Summary: Dist-geo-rep: Support geo-replication to work with sharding
Product: [Community] GlusterFS Reporter: Kotresh HR <khiremat>
Component: geo-replicationAssignee: Kotresh HR <khiremat>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: high    
Version: 3.7.0CC: bugs, sabose
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.7.9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1265148 Environment:
Last Closed: 2016-03-22 08:15:25 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: 1265148, 1284453    
Bug Blocks:    

Description Kotresh HR 2015-10-28 09:08:41 UTC
+++ This bug was initially created as a clone of Bug #1265148 +++

Description of problem:
This bug tracks all the changes required for geo-replication to work with
sharding.

Requirements as per design:
  1. Both master and slave should be sharded
  2. Sharding configurations should be retained same as in master

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

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
Geo-replication does not work with sharding

Expected results:
Geo-replication should work with sharding.

Additional info:

Comment 1 Vijay Bellur 2015-10-28 09:10:38 UTC
REVIEW: http://review.gluster.org/12438 (features/shard: Support geo-rep for sharded volume) posted (#1) for review on release-3.7 by Kotresh HR (khiremat)

Comment 2 Vijay Bellur 2015-10-29 08:40:05 UTC
COMMIT: http://review.gluster.org/12438 committed in release-3.7 by Pranith Kumar Karampuri (pkarampu) 
------
commit 0ce29bbd6a1cc459d4f4ffc50a4658988ef52039
Author: Kotresh HR <khiremat>
Date:   Thu Sep 24 15:42:14 2015 +0530

    features/shard: Support geo-rep for sharded volume
    
    Approach:
          Shard xlator on slave side is by passed for all the fops
    to geo-rep mount. So each shard on master is considered as a
    separate file for geo-rep and it syncs them separately on to
    slave. The extended attribute in which shard maintains the
    size is also synced from master and shard on slave doesn't
    calculate by itself.
    
    Pre-requisites:
          1. If master is sharded volume, slave also should be sharded.
          2. Slave's shard configurations should be same as master.
          3. Geo-rep config of xattr sync should not be disabled.
    
    All other dependant patches:
          1. http://review.gluster.org/#/c/12205/
          2. http://review.gluster.org/#/c/12206/
          3. http://review.gluster.org/#/c/12225/
          4. http://review.gluster.org/#/c/12226/
    
    BUG: 1275972
    Change-Id: Ieba70e75ebaebd70851454e1b85c0fe86022ad8d
    Reviewed-on: http://review.gluster.org/12228
    Tested-by: NetBSD Build System <jenkins.org>
    Reviewed-by: Krutika Dhananjay <kdhananj>
    Reviewed-by: Pranith Kumar Karampuri <pkarampu>
    Signed-off-by: Kotresh HR <khiremat>
    Reviewed-on: http://review.gluster.org/12438
    Tested-by: Gluster Build System <jenkins.com>

Comment 3 Kotresh HR 2016-03-20 08:21:29 UTC
All other 3.7 dependent patches for geo-rep interop with sharding:

http://review.gluster.org/#/c/12732/
http://review.gluster.org/#/c/12729/
http://review.gluster.org/#/c/12721/
http://review.gluster.org/#/c/12731/