From 5d08ad9573af7ea51e8dbb0f5c25fedb941a7b4c Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 26 Oct 2020 11:44:45 -0400 Subject: [PATCH] Fix incorrect keepalive interval setting --- node-daemon/pvcnoded/fencing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node-daemon/pvcnoded/fencing.py b/node-daemon/pvcnoded/fencing.py index 682e4701..d52bfc2a 100644 --- a/node-daemon/pvcnoded/fencing.py +++ b/node-daemon/pvcnoded/fencing.py @@ -35,7 +35,7 @@ def fenceNode(node_name, zk_conn, config, logger): failcount = 0 while failcount < failcount_limit: # Wait 5 seconds - time.sleep(config.keepalive_interval) + time.sleep(config['keepalive_interval']) # Get the state node_daemon_state = zkhandler.readdata(zk_conn, '/nodes/{}/daemonstate'.format(node_name)) # Is it still 'dead' @@ -57,7 +57,7 @@ def fenceNode(node_name, zk_conn, config, logger): # Shoot it in the head fence_status = rebootViaIPMI(ipmi_hostname, ipmi_username, ipmi_password, logger) # Hold to ensure the fence takes effect and system stabilizes - time.sleep(config.keepalive_interval * 2) + time.sleep(config['keepalive_interval'] * 2) # Force into secondary network state if needed if node_name in config['coordinators']: