14f8ab
From 37df54966d5b7f01ad24d329bac5da1cf17f2abe Mon Sep 17 00:00:00 2001
14f8ab
From: Sunny Kumar <sunkumar@redhat.com>
14f8ab
Date: Wed, 12 Jun 2019 16:10:52 +0530
14f8ab
Subject: [PATCH 182/192] geo-rep : fix mountbroker setup
14f8ab
14f8ab
Problem:
14f8ab
14f8ab
Unable to setup mountbroker root directory while creating geo-replication
14f8ab
session for non-root user.
14f8ab
14f8ab
Casue:
14f8ab
With patch[1] which defines the max-port for glusterd one extra sapce
14f8ab
got added in field of 'option max-port'.
14f8ab
[1]. https://review.gluster.org/#/c/glusterfs/+/21872/
14f8ab
14f8ab
In geo-rep spliting of key-value pair form vol file was done on the
14f8ab
basis of space so this additional space caused "ValueError: too many values
14f8ab
to unpack".
14f8ab
14f8ab
Solution:
14f8ab
Use split so that it can treat consecutive whitespace as a single separator.
14f8ab
14f8ab
Backport of:
14f8ab
14f8ab
 >Upstream Patch: https://review.gluster.org/#/c/glusterfs/+/22716/
14f8ab
 >Fixes: bz#1709248
14f8ab
 >Change-Id: Ia22070a43f95d66d84cb35487f23f9ee58b68c73
14f8ab
 >Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
14f8ab
14f8ab
BUG: 1708043
14f8ab
Change-Id: Ic6d535a6faad62ce185c6aa5adc18f5fdf8f27be
14f8ab
Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
14f8ab
Reviewed-on: https://code.engineering.redhat.com/gerrit/173149
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 54f95c4..ce33f97 100644
14f8ab
--- a/geo-replication/src/peer_mountbroker.py.in
14f8ab
+++ b/geo-replication/src/peer_mountbroker.py.in
14f8ab
@@ -47,7 +47,7 @@ class MountbrokerUserMgmt(object):
14f8ab
             for line in f:
14f8ab
                 line = line.strip()
14f8ab
                 if line.startswith("option "):
14f8ab
-                    key, value = line.split(" ")[1:]
14f8ab
+                    key, value = line.split()[1:]
14f8ab
                     self._options[key] = value
14f8ab
                 if line.startswith("#"):
14f8ab
                     self.commented_lines.append(line)
14f8ab
-- 
14f8ab
1.8.3.1
14f8ab