Actually remove the command data

This commit is contained in:
Joshua Boniface 2018-10-30 22:44:41 -04:00
parent 3e4a6086d5
commit 922a3a9ee1
1 changed files with 2 additions and 0 deletions

View File

@ -272,6 +272,7 @@ def add_osd(zk_conn, node, device):
success = True success = True
else: else:
success = False success = False
zkhandler.writedata(zk_conn, {'/ceph/osd_cmd': ''})
if success: if success:
return True, 'Created new OSD with block device {} on node {}.'.format(device, node) return True, 'Created new OSD with block device {} on node {}.'.format(device, node)
@ -295,6 +296,7 @@ def remove_osd(zk_conn, osd_id):
success = True success = True
else: else:
success = False success = False
zkhandler.writedata(zk_conn, {'/ceph/osd_cmd': ''})
if success: if success:
return True, 'Removed OSD {} from the cluster.'.format(osd_id) return True, 'Removed OSD {} from the cluster.'.format(osd_id)