# if _ANY_ osd that is currently in the queue appears to be empty,
# start the removal process
if int(osd.get('osd')) in self.to_remove_osds.as_osd_ids():
- self.log.debug(f"Found empty osd. Starting removal process")
+ self.log.debug('Found empty osd. Starting removal process')
# if the osd that is now empty is also part of the removal queue
# start the process
self._kick_serve_loop()
:raises OrchestratorError: Hostname is invalid, host is already in maintenance
"""
if len(self.cache.get_hosts()) == 1:
- raise OrchestratorError(f"Maintenance feature is not supported on single node clusters")
+ raise OrchestratorError("Maintenance feature is not supported on single node clusters")
# if upgrade is active, deny
if self.upgrade.upgrade_state:
# query OSDSpecs for host <search host> and generate/get the preview
# There can be multiple previews for one host due to multiple OSDSpecs.
previews.extend(self.mgr.osd_service.get_previews(search_host))
- self.log.debug(f"Loading OSDSpec previews to HostCache")
+ self.log.debug(f'Loading OSDSpec previews to HostCache for host <{search_host}>')
self.mgr.cache.osdspec_previews[search_host] = previews
# Unset global 'pending' flag for host
self.mgr.cache.loading_osdspec_preview.remove(search_host)