]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: add is_host_<status> functions to HostCache
authorAdam King <adking@redhat.com>
Thu, 1 Jun 2023 23:23:45 +0000 (19:23 -0400)
committerAdam King <adking@redhat.com>
Thu, 1 Jun 2023 23:47:16 +0000 (19:47 -0400)
commitb4002529b6ec4fae83ae3958f9fc288b22106f90
treedb6285a87b061e4dcf52398fe214040b618fdc3b
parentbdca2dcefa7a759b82a8b75d8bd5313e8b474d2f
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>
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