]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: don't use list_servers to get active mgr host for prometheus SD config
authorAdam King <adking@redhat.com>
Wed, 30 Jul 2025 19:51:11 +0000 (15:51 -0400)
committerAdam King <adking@redhat.com>
Wed, 30 Jul 2025 19:51:11 +0000 (15:51 -0400)
commit726bb5a95de7857c220953a1ed26ed3263213c6f
tree4dfe5a1fad972fc823425e82e7869db5360cf8b3
parentee0364761e1ee29e6ad527dddd0eafc01c1f1aaa
mgr/cephadm: don't use list_servers to get active mgr host for prometheus SD config

Having a lot of calls into list_servers causes issues with
the core ceph mgr on large clusters. Additionally, we were
using it purely to get the active mgr's host here, which
cephadm should be able to do without needing a mgr api call

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