Repository navigation
Conversation
After TLS is enabled, 1-067 checked the Redis and Sentinel configuration but not HAProxy, and expectComponentsAreRunning() counts ready replicas, which the old non-TLS HAProxy pods keep up during a stuck rollout. So the test passed although the TLS HAProxy pods crash-loop on 1.23.0: [ALERT] config : parsing [haproxy.cfg:14] : unknown keyword 'ssl-default-server-curves' in 'global' section The pinned HAProxy image is 2.8.18, and ssl-default-server-curves only exists from HAProxy 3.0. Wait for the haproxy Deployment to be updated for TLS and for that rollout to complete. Adds deployment.HaveCompletedRollout, the Deployment counterpart of the StatefulSet matcher. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014eLYgsb7g4QzJy477gPouC Signed-off-by: Adam Saleh <adam@asaleh.net>
|
Skipping CI for Draft Pull Request. |
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-1.23 #1642 +/- ##
===============================================
Coverage ? 68.77%
===============================================
Files ? 118
Lines ? 25320
Branches ? 0
===============================================
Hits ? 17413
Misses ? 7907
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
What type of PR is this?
/kind bug
What does this PR do / why we need it:
On 1.23.0, Redis HA with TLS breaks HAProxy, and 1-067 does not notice. The operator renders this into
haproxy.cfg:The HAProxy image the 1.23.0 CSV pins (
ose-haproxy-router-rhel9@sha256:ca2afbd7…) is HAProxy 2.8.18, andssl-default-server-curvesonly exists from HAProxy 3.0. The new HAProxy pods crash-loop:Reproduced on OCP 5.0.0, not FIPS, with 1.23.0-1, doing what 1-067 does (HA, then a hand-made
argocd-operator-redis-tlssecret annotatedargocds.argoproj.io/name). The rollout stays stuck with one oldnon-TLS pod serving, and the ArgoCD CR still reports
phase: Available, redis: Running.1-067 misses it because after enabling TLS it only checks
redis.confandsentinel.conf, andexpectComponentsAreRunning()counts ready replicas, which the old pods keep up. This PR makes 1-067 wait for theHAProxy Deployment to be updated for TLS and for that rollout to complete, using a new
deployment.HaveCompletedRollout(the Deployment counterpart of the StatefulSet matcher).This test is expected to fail on release-1.23 until the template is fixed (drop or version-gate
ssl-default-server-curvesinbuild/redis/haproxy.cfg.tpl). That is the point: it reproduces the bug. Hence draft.Related, not changed here:
ssl-default-bind-curveswith X25519/X25519MLKEM768 is rejected as well(
unable to set SSL curves list). Skipping Curve Preferences for console plugin when deployed in FIPS Enabled Cluster #1638 filters the groups for the console plugin but passesfipsEnabled=falsefor HAProxy.by the
<name>-redis-ha-haproxyService, andisOwnerOfInterestonly accepts-repo-server,-redisand theimage-updater webhook suffix, so
redisShouldUseTLSreturns false. The same code is in upstream argocd-operator.How to test changes / Special notes to the reviewer:
go vetpasses for the changed packages. Run 1-067 on any OpenShift cluster with 3+ nodes and 1.23.0: it nowfails at "wait until the redis ha haproxy deployment has rolled out with tls".
🤖 Generated with Claude Code
https://claude.ai/code/session_014eLYgsb7g4QzJy477gPouC