From 2cdd98d0f1f1bbf95fdb279254bb81b62e1f14d0 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 22 Oct 2018 23:11:04 -0400 Subject: [PATCH] I do have to restart Kazoo during the SUSPENDED fail --- node-daemon/pvcd/Daemon.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node-daemon/pvcd/Daemon.py b/node-daemon/pvcd/Daemon.py index 275e8372..1d9dd361 100644 --- a/node-daemon/pvcd/Daemon.py +++ b/node-daemon/pvcd/Daemon.py @@ -294,8 +294,10 @@ def zk_listener(state): stopKeepaliveTimer() while True: + _zk_conn = kazoo.client.KazooClient(hosts=config['coordinators']) try: - zk_conn.start() + _zk_conn.start() + zk_conn = _zk_conn break except: time.sleep(1)