From 922a3a9ee1c8f39e3a22ce39ce27c05da25d5773 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Tue, 30 Oct 2018 22:44:41 -0400 Subject: [PATCH] Actually remove the command data --- client-common/ceph.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client-common/ceph.py b/client-common/ceph.py index 51de8cc2..a214af43 100644 --- a/client-common/ceph.py +++ b/client-common/ceph.py @@ -272,6 +272,7 @@ def add_osd(zk_conn, node, device): success = True else: success = False + zkhandler.writedata(zk_conn, {'/ceph/osd_cmd': ''}) if success: 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 else: success = False + zkhandler.writedata(zk_conn, {'/ceph/osd_cmd': ''}) if success: return True, 'Removed OSD {} from the cluster.'.format(osd_id)