summaryrefslogtreecommitdiffstats
path: root/geo-replication/syncdaemon/gsyncd.py
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2017-04-04 15:39:46 -0400
committerAravinda VK <avishwan@redhat.com>2017-04-07 02:09:34 -0400
commite01025973c73e2bd0eda8cfed22b75617305d740 (patch)
tree9afdb57aaf3474a54bc222c657ed3de00f40cf4c /geo-replication/syncdaemon/gsyncd.py
parentcbcb1d33de8c4bd7250a5c038e8f95456772add1 (diff)
geo-rep: Improve worker log messages
Monitor process expects worker to establish SSH Tunnel to slave node and mount master volume locally with in 60 secs and acknowledge monitor process by closing feedback fd. If something goes wrong and worker does not close feedback fd with in 60 secs, monitor kills the worker. But there was no clue in log message about the actual issue. This patch adds log and indicates whether the worker is hung during SSH or master mount. Change-Id: Id08a12fa6f3bba1d4fe8036728dbc290e6c14c8c BUG: 1261689 Signed-off-by: Kotresh HR <khiremat@redhat.com> Reviewed-on: https://review.gluster.org/16997 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Aravinda VK <avishwan@redhat.com>
Diffstat (limited to 'geo-replication/syncdaemon/gsyncd.py')
-rw-r--r--geo-replication/syncdaemon/gsyncd.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/geo-replication/syncdaemon/gsyncd.py b/geo-replication/syncdaemon/gsyncd.py
index adc48f146a6..ac39a79128b 100644
--- a/geo-replication/syncdaemon/gsyncd.py
+++ b/geo-replication/syncdaemon/gsyncd.py
@@ -777,6 +777,7 @@ def main_i():
remote.connect_remote(go_daemon='done')
local.connect()
if ffd:
+ logging.info ("Closing feedback fd, waking up the monitor")
os.close(ffd)
local.service_loop(*[r for r in [remote] if r])