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