mgr/cephadm: spec.virtual_ip param should be used by the ingress daemon#44374
Merged
sebastian-philipp merged 1 commit intoceph:masterfrom Jan 5, 2022
Merged
mgr/cephadm: spec.virtual_ip param should be used by the ingress daemon#44374sebastian-philipp merged 1 commit intoceph:masterfrom
sebastian-philipp merged 1 commit intoceph:masterfrom
Conversation
Contributor
Author
Contributor
|
would be great, if you could look into writing a unit test similar to ceph/src/pybind/mgr/cephadm/tests/test_services.py Lines 236 to 278 in 1f28c06 to verify this change. Let's avoid future regressions here. |
Contributor
Author
ack, I'm going to draft a unit test by EOD |
b73a58e to
950bdaa
Compare
…e 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>
sebastian-philipp
approved these changes
Jan 3, 2022
Contributor
|
Contributor
Author
|
@sebastian-philipp @adk3798 should we backport this PR to pacific as it solves an issue that can be hit in 5.1? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When the ingress spec is built a virtual_ip parameter is provided 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.
[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
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox