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