]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: don't return hosts in offline_hosts set as schedulable 42400/head
authorAdam King <adking@redhat.com>
Mon, 19 Jul 2021 16:19:15 +0000 (12:19 -0400)
committerAdam King <adking@redhat.com>
Wed, 28 Jul 2021 19:59:27 +0000 (15:59 -0400)
we are only checking for host status here but we
should also be checking the offline_hosts set

Signed-off-by: Adam King <adking@redhat.com>
src/pybind/mgr/cephadm/module.py

index 7789fa8346e14cb104ae59d5dad6b8f7cb4a2977..62c8f539627f88ddd46c99fb37f19eef79cc9a4b 100644 (file)
@@ -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
             )
         ]