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