Revert "Implement wait for node coordinator transition"
This reverts commit 0aefafa7f7
.
This does not work since the API goes away during the transition.
References #72
This commit is contained in:
@ -213,12 +213,12 @@ def node_domain_state(node):
|
||||
|
||||
return retdata, retcode
|
||||
|
||||
def node_secondary(node, wait):
|
||||
def node_secondary(node):
|
||||
"""
|
||||
Take NODE out of primary router mode.
|
||||
"""
|
||||
zk_conn = pvc_common.startZKConnection(config['coordinators'])
|
||||
retflag, retdata = pvc_node.secondary_node(zk_conn, node, wait)
|
||||
retflag, retdata = pvc_node.secondary_node(zk_conn, node)
|
||||
pvc_common.stopZKConnection(zk_conn)
|
||||
|
||||
if retflag:
|
||||
@ -231,12 +231,12 @@ def node_secondary(node, wait):
|
||||
}
|
||||
return output, retcode
|
||||
|
||||
def node_primary(node, wait):
|
||||
def node_primary(node):
|
||||
"""
|
||||
Set NODE to primary router mode.
|
||||
"""
|
||||
zk_conn = pvc_common.startZKConnection(config['coordinators'])
|
||||
retflag, retdata = pvc_node.primary_node(zk_conn, node, wait)
|
||||
retflag, retdata = pvc_node.primary_node(zk_conn, node)
|
||||
pvc_common.stopZKConnection(zk_conn)
|
||||
|
||||
if retflag:
|
||||
|
Reference in New Issue
Block a user