]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: select IPs/interface based on VIP for keepalive conf
authorAdam King <adking@redhat.com>
Tue, 1 Aug 2023 20:32:06 +0000 (16:32 -0400)
committerAdam King <adking@redhat.com>
Fri, 4 Aug 2023 19:20:48 +0000 (15:20 -0400)
commit58ddc4e20f7cead1f2594241450f4beb5230c746
tree1061176ad7ca48423a17ffc106687ca4840b458e
parentfb13353bf7ca77960f39fb2ac4af2a60d92a7ff6
mgr/cephadm: select IPs/interface based on VIP for keepalive conf

We need to make sure the keepalive conf sets
the unicast src and peer IPs to be the ones
in the same subnet as the VIP we're setting up,
as well as specify the correct interface. Otherwise,
the keepalive daemons don't speak to each other
properly and all end up going into MASTER state.

Fixes: https://tracker.ceph.com/issues/62276
Signed-off-by: Adam King <adking@redhat.com>
src/pybind/mgr/cephadm/services/ingress.py
src/pybind/mgr/cephadm/templates/services/ingress/keepalived.conf.j2
src/pybind/mgr/cephadm/tests/test_services.py