|
|
17b94a |
From 924a25990948c9d76001cf4134fc5a2fcbf5c02c Mon Sep 17 00:00:00 2001
|
|
|
17b94a |
From: Kotresh HR <khiremat@redhat.com>
|
|
|
17b94a |
Date: Fri, 16 Aug 2019 15:38:49 +0530
|
|
|
17b94a |
Subject: [PATCH 278/284] geo-rep: Fix worker connection issue
|
|
|
17b94a |
|
|
|
17b94a |
All the workers connects to primary slave node. It should
|
|
|
17b94a |
connect to available slave nodes in round robin fashion
|
|
|
17b94a |
and choose different slave node if the corresponding slave
|
|
|
17b94a |
node is down. This patch fixes the same.
|
|
|
17b94a |
|
|
|
17b94a |
Thanks Aravinda for the help in root causing this.
|
|
|
17b94a |
|
|
|
17b94a |
Backport of:
|
|
|
17b94a |
> Patch: https://review.gluster.org/23247/
|
|
|
17b94a |
> Change-Id: I9f8e7744f4adb8a24833cf173681d109710f98cb
|
|
|
17b94a |
> Signed-off-by: Kotresh HR <khiremat@redhat.com>
|
|
|
17b94a |
> Updates: bz#1737484
|
|
|
17b94a |
|
|
|
17b94a |
Change-Id: I9f8e7744f4adb8a24833cf173681d109710f98cb
|
|
|
17b94a |
Signed-off-by: Kotresh HR <khiremat@redhat.com>
|
|
|
17b94a |
BUG: 1729915
|
|
|
17b94a |
Reviewed-on: https://code.engineering.redhat.com/gerrit/178961
|
|
|
17b94a |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
17b94a |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
17b94a |
---
|
|
|
17b94a |
geo-replication/syncdaemon/subcmds.py | 3 ++-
|
|
|
17b94a |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
17b94a |
|
|
|
17b94a |
diff --git a/geo-replication/syncdaemon/subcmds.py b/geo-replication/syncdaemon/subcmds.py
|
|
|
17b94a |
index 4ece7e0..8de7db2 100644
|
|
|
17b94a |
--- a/geo-replication/syncdaemon/subcmds.py
|
|
|
17b94a |
+++ b/geo-replication/syncdaemon/subcmds.py
|
|
|
17b94a |
@@ -73,7 +73,8 @@ def subcmd_worker(args):
|
|
|
17b94a |
Popen.init_errhandler()
|
|
|
17b94a |
fcntl.fcntl(args.feedback_fd, fcntl.F_SETFD, fcntl.FD_CLOEXEC)
|
|
|
17b94a |
local = GLUSTER("localhost", args.master)
|
|
|
17b94a |
- slavehost, slavevol = args.slave.split("::")
|
|
|
17b94a |
+ slavevol = args.slave.split("::")[-1]
|
|
|
17b94a |
+ slavehost = args.resource_remote
|
|
|
17b94a |
remote = SSH(slavehost, slavevol)
|
|
|
17b94a |
remote.connect_remote()
|
|
|
17b94a |
local.connect()
|
|
|
17b94a |
--
|
|
|
17b94a |
1.8.3.1
|
|
|
17b94a |
|