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