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