They'll just fail anyway, and it will waste time waiting
for the connection to timeout. We have other places in
the serve loop that will check if the host is back
online.
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit
e1d3e38f87bce4e53eb7e4c29c812a7ed750fa80)
assert dd.hostname is not None
assert dd.daemon_type is not None
assert dd.daemon_id is not None
+
+ # any action we can try will fail for a daemon on an offline host,
+ # including removing the daemon
+ if dd.hostname in self.mgr.offline_hosts:
+ continue
+
if not spec and dd.daemon_type not in ['mon', 'mgr', 'osd']:
# (mon and mgr specs should always exist; osds aren't matched
# to a service spec)