Otherwise, it could remain in the list and cephadm could think
there is an offline host in the cluster when said host has
actually already been removed.
Signed-off-by: Adam King <adking@redhat.com>
self.inventory.rm_host(host)
self.cache.rm_host(host)
self.ssh.reset_con(host)
+ self.offline_hosts_remove(host) # if host was in offline host list, we should remove it now.
self.event.set() # refresh stray health check
self.log.info('Removed host %s' % host)
return "Removed {} host '{}'".format('offline' if offline else '', host)