From d87f1ec841f63a9d7bd52e03461b04d8c6273a94 Mon Sep 17 00:00:00 2001 From: Adam King Date: Mon, 19 Jul 2021 12:19:15 -0400 Subject: [PATCH] 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 --- src/pybind/mgr/cephadm/module.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 7789fa8346e..62c8f539627 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 ) ] -- 2.39.5