]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: prefer same hosts as related service daemons when picking arbitrary...
authorAdam King <adking@redhat.com>
Wed, 5 Apr 2023 00:45:23 +0000 (20:45 -0400)
committerAdam King <adking@redhat.com>
Mon, 1 May 2023 21:51:45 +0000 (17:51 -0400)
commit088d2c4205c599a7d4f2ce4de8e2af8e129adac8
tree5207b437ce0eb62f3ea8459e96621b9f5b3f2894
parente90583083379192cee1e6c58300dcadb3fd20376
mgr/cephadm: prefer same hosts as related service daemons when picking arbitrary hosts

For now, just for linking ingress services and
their backend services. The idea is if one, or both,
of the ingress service and backend service is using a
count, to try and get them to deploy their daemons
on the same host(s). If the placements have explicit
placements (not using count) we still stick to
those placements regardless.

This should enable something like specifying a host
for the backend service and leaving the ingress
placement as just "count: 1" and having the ingress
service get on the same host as the backend service
daemon. This is particularly useful for the keepalive-only
(VIP but no haproxy) over NFS setup where the keepalive
must share a host with the NFS to function, but will
also be useful for other VIP only setups we may do
in the future.

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