From: Adam King Date: Mon, 19 Jul 2021 16:19:15 +0000 (-0400) Subject: mgr/cephadm: don't return hosts in offline_hosts set as schedulable X-Git-Tag: v17.1.0~1238^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F42400%2Fhead;p=ceph.git mgr/cephadm: don't return hosts in offline_hosts set as schedulable we are only checking for host status here but we should also be checking the offline_hosts set Signed-off-by: Adam King --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 7789fa8346e14..62c8f539627f8 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -1390,6 +1390,7 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule, if ( self.cache.host_had_daemon_refresh(h.hostname) and h.status.lower() not in ['maintenance', 'offline'] + and h.hostname not in self.offline_hosts and '_no_schedule' not in h.labels ) ]