Remove block verify in APi

This doesn't work right and is handled by the node anyways.
This commit is contained in:
Joshua Boniface 2023-11-04 02:45:10 -04:00
parent e32054be81
commit a016337f57
1 changed files with 0 additions and 10 deletions

View File

@ -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