From a016337f578667de5d9582c52ffd8afbbcec0bde Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 4 Nov 2023 02:45:10 -0400 Subject: [PATCH] Remove block verify in APi This doesn't work right and is handled by the node anyways. --- daemon-common/ceph.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/daemon-common/ceph.py b/daemon-common/ceph.py index d59c58d2..7a435b65 100644 --- a/daemon-common/ceph.py +++ b/daemon-common/ceph.py @@ -392,16 +392,6 @@ def refresh_osd(zkhandler, osd_id, device): node = osd_information["node"] ext_db_flag = True if osd_information["db_device"] else False - # Verify target block device isn't in use - block_osd = verifyOSDBlock(zkhandler, node, device) - if not block_osd or block_osd != osd_id: - return ( - False, - 'ERROR: Block device "{}" on node "{}" is not used by OSD "{}"; use replace instead'.format( - device, node, osd_id - ), - ) - # Tell the cluster to create a new OSD for the host refresh_osd_string = "osd_refresh {},{},{},{}".format( node, osd_id, device, ext_db_flag