233933
From a61c2a81e5731e4e0b5136147f404e60d3c72ad0 Mon Sep 17 00:00:00 2001
233933
From: Sunny Kumar <sunkumar@redhat.com>
233933
Date: Tue, 18 Jun 2019 16:25:35 +0530
233933
Subject: [PATCH 201/221] geo-rep: Fix permissions for GEOREP_DIR in non-root
233933
 setup
233933
233933
During mountbroker setup: 'gluster-mountbroker <mountbroker-root> <group>'
233933
commad to set the permission and group for GEOREP_DIR directory
233933
(/var/lib/glusterd/geo-replication) fails due to extra argument, which is
233933
enssential for non-root geo-rep setup.
233933
233933
Backport of:
233933
233933
>Updtream patch: https://review.gluster.org/#/c/glusterfs/+/22890/
233933
>fixes: bz#1721441
233933
>Change-Id: Ia83442733bf0b29f630e8c9e398097316efca092
233933
>Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
233933
233933
BUG: bz#1722331
233933
Change-Id: Ia83442733bf0b29f630e8c9e398097316efca092
233933
Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
233933
Reviewed-on: https://code.engineering.redhat.com/gerrit/174169
233933
Tested-by: RHGS Build Bot <nigelb@redhat.com>
233933
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
233933
---
233933
 geo-replication/src/peer_mountbroker.py.in | 2 +-
233933
 1 file changed, 1 insertion(+), 1 deletion(-)
233933
233933
diff --git a/geo-replication/src/peer_mountbroker.py.in b/geo-replication/src/peer_mountbroker.py.in
233933
index ce33f97..96a7264 100644
233933
--- a/geo-replication/src/peer_mountbroker.py.in
233933
+++ b/geo-replication/src/peer_mountbroker.py.in
233933
@@ -197,7 +197,7 @@ class NodeSetup(Cmd):
233933
         execute(["chgrp", "-R", args.group, GEOREP_DIR])
233933
         execute(["chgrp", "-R", args.group, LOG_DIR])
233933
         execute(["chgrp", args.group, CLI_LOG])
233933
-        execute(["chmod", "770", args.group, GEOREP_DIR])
233933
+        execute(["chmod", "770", GEOREP_DIR])
233933
         execute(["find", LOG_DIR, "-type", "d", "-exec", "chmod", "770", "{}",
233933
                  "+"])
233933
         execute(["find", LOG_DIR, "-type", "f", "-exec", "chmod", "660", "{}",
233933
-- 
233933
1.8.3.1
233933