]> 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>
Sat, 20 May 2023 16:40:09 +0000 (12:40 -0400)
commit3da837be6533283af8a3c4079299ef0d010ea9a8
treec1e51949de4a9edf6f69bfe9b6e5dc37f563710c
parent6d693981bb006f511eccf9149da759bd9904c50c
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>
(cherry picked from commit 088d2c4205c599a7d4f2ce4de8e2af8e129adac8)
src/pybind/mgr/cephadm/inventory.py
src/pybind/mgr/cephadm/schedule.py
src/pybind/mgr/cephadm/serve.py