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