]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: add is_host_<status> functions to HostCache 53118/head
authorAdam King <adking@redhat.com>
Thu, 1 Jun 2023 23:23:45 +0000 (19:23 -0400)
committerAdam King <adking@redhat.com>
Tue, 5 Sep 2023 13:51:33 +0000 (09:51 -0400)
commit26da58d138d40f262a5d733c5adc8e58f82a3ee4
treec38f144333aa075e321977b5bc016b8d5f8e7794
parentfc67d924930ebf9a4d41c9f9247b94162250400d
mgr/cephadm: add is_host_<status> functions to HostCache

A bunch of places were doing list compression to see if a host
was unreachable/draining/schedulable by hostname. This is meant to
replace all those instances of list compression with a function
call that does the same

Fixes: https://tracker.ceph.com/issues/61548
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit b4002529b6ec4fae83ae3958f9fc288b22106f90)

Conflicts:
src/pybind/mgr/cephadm/serve.py
src/pybind/mgr/cephadm/tests/test_cephadm.py
src/pybind/mgr/cephadm/tuned_profiles.py
src/pybind/mgr/cephadm/agent.py
src/pybind/mgr/cephadm/inventory.py
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/serve.py
src/pybind/mgr/cephadm/tests/test_cephadm.py
src/pybind/mgr/cephadm/tests/test_tuned_profiles.py
src/pybind/mgr/cephadm/tuned_profiles.py