]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
The spec.virtual_ip parameter should be used when it's defined for the ingress daemon
authorFrancesco Pantano <fpantano@redhat.com>
Tue, 21 Dec 2021 08:46:39 +0000 (09:46 +0100)
committerSebastian Wagner <sewagner@redhat.com>
Wed, 19 Jan 2022 10:55:25 +0000 (11:55 +0100)
commitb3595f8c08ea2d7b7e5f4ec2e721704f27b33cad
tree4a4519a401e594d4a27cb8a19f836db539006145
parent78500c27eb1834c7772c738c922fac9ebc4b5f68
The spec.virtual_ip  parameter should be used when it's defined for the ingress daemon

When the ingress spec is built a virtual_ip parameter is provided in the spec and it's
expected to see the haproxy instance using the defined value.
The defined VIP is properly configured using the keepalived instance and, as per doc [1],
the ingress should be able to use this value as entrypoint for the haproxy frontend.
This patch also introduces a basic unit test for the IngressService with the purpose of
validating the config files generated for both haproxy and keepalived.

[1] https://docs.ceph.com/en/latest/cephadm/services/rgw/#high-availability-service-for-rgw

Fixes: https://tracker.ceph.com/issues/53684
Signed-off-by: Francesco Pantano <fpantano@redhat.com>
(cherry picked from commit 0688ca943e44f4c93cbfba34b796ae6c3823adf7)
Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
Conflicts:
src/pybind/mgr/cephadm/tests/test_services.py
src/pybind/mgr/cephadm/services/ingress.py
src/pybind/mgr/cephadm/tests/test_services.py