Avoid startup failures if OSD removed

This commit is contained in:
Joshua Boniface 2023-11-02 22:24:39 -04:00
parent d5d783fad3
commit f53af510c1
1 changed files with 3 additions and 0 deletions

View File

@ -1360,6 +1360,9 @@ def ceph_command(zkhandler, logger, this_node, data, d_osd):
force_flag = bool(strtobool(force)) force_flag = bool(strtobool(force))
# Verify osd_id is in the list # Verify osd_id is in the list
if osd_id not in d_osd.keys():
return
if d_osd[osd_id] and d_osd[osd_id].node == this_node.name: if d_osd[osd_id] and d_osd[osd_id].node == this_node.name:
# Lock the command queue # Lock the command queue
zk_lock = zkhandler.writelock("base.cmd.ceph") zk_lock = zkhandler.writelock("base.cmd.ceph")