Finish up Ceph OSD removal, add locking to commands
This commit is contained in:
@ -175,6 +175,15 @@ def verifyNode(zk_conn, node):
|
||||
else:
|
||||
return False
|
||||
|
||||
#
|
||||
# Verify OSD is valid in cluster
|
||||
#
|
||||
def verifyOSD(zk_conn, osd_id):
|
||||
if zkhandler.exists(zk_conn, '/ceph/osds/{}'.format(osd_id)):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
#
|
||||
# Get the primary coordinator node
|
||||
#
|
||||
|
Reference in New Issue
Block a user