]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: add is_host_<status> functions to HostCache 55964/head
authorAdam King <adking@redhat.com>
Thu, 1 Jun 2023 23:23:45 +0000 (19:23 -0400)
committerAdam King <adking@redhat.com>
Tue, 5 Mar 2024 15:08:12 +0000 (10:08 -0500)
commitd0b91f6d39834c658510b803829a118b426e8ef5
treef9d860a29a5e93d11b46369b6b7765fcaba51581
parent7b464252f50f912b6bddd9129ce15a2a898ee7de
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)
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