As is already done when checking the lvm list
results and should also be done for checking raw
list but is missing do ot a backporting mistake
Tachnically a partial backport of #44228 that
was not included in #44627 because raw osd support
was not in pacific then
Signed-off-by: Adam King <adking@redhat.com>
if osd_id in before_osd_uuid_map and osd_id not in replace_osd_ids:
# if it exists but is part of the replacement operation, don't skip
continue
+ if self.mgr.cache.has_daemon(f'osd.{osd_id}', host):
+ # cephadm daemon instance already exists
+ logger.debug(f'osd id {osd_id} daemon already exists')
+ continue
if osd_id not in osd_uuid_map:
logger.debug('osd id {} does not exist in cluster'.format(osd_id))
continue