Only perform fencing duties on primary

There was really no need for this to be shared among all the
coordinators, which seemed more fragile. This way only the primary will
try to fence dead nodes.
This commit is contained in:
Joshua Boniface 2019-06-24 20:17:51 -04:00
parent 249611b161
commit 464c69aac6
1 changed files with 29 additions and 28 deletions

View File

@ -1120,7 +1120,8 @@ def update_zookeeper():
# Close the Libvirt connection
lv_conn.close()
# Look for dead nodes and fence them
# Look for dead nodes and fence them (primary only)
if this_node.router_state == 'primary'
if debug:
print("Look for dead nodes and fence them")
if config['daemon_mode'] == 'coordinator':