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