Skip to content

[release-1.23] test(e2e): 1-067 waits for the HAProxy rollout after enabling Redis TLS - #1642

Draft
AdamSaleh wants to merge 1 commit into
redhat-developer:release-1.23from
rh-gitops-release-qa:test-1067-haproxy-rollout-1.23
Draft

AdamSaleh wants to merge 1 commit into
redhat-developer:release-1.23from
rh-gitops-release-qa:test-1067-haproxy-rollout-1.23

Conversation

@AdamSaleh

Copy link
Copy Markdown
Member

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:

ssl-default-bind-curves X25519MLKEM768:X25519:secp256r1:secp384r1
ssl-default-server-curves X25519MLKEM768:X25519:secp256r1:secp384r1

The HAProxy image the 1.23.0 CSV pins (ose-haproxy-router-rhel9@sha256:ca2afbd7…) is HAProxy 2.8.18, and
ssl-default-server-curves only exists from HAProxy 3.0. The new HAProxy pods crash-loop:

[ALERT] (1) : config : parsing [/usr/local/etc/haproxy/haproxy.cfg:14] : unknown keyword 'ssl-default-server-curves' in 'global' section; did you mean 'ssl-default-server-ciphers' maybe ?
[ALERT] (1) : config : Fatal errors found in configuration.

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-tls secret annotated argocds.argoproj.io/name). The rollout stays stuck with one old
non-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.conf and sentinel.conf, and
expectComponentsAreRunning() counts ready replicas, which the old pods keep up. This PR makes 1-067 wait for the
HAProxy 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-curves in build/redis/haproxy.cfg.tpl). That is the point: it reproduces the bug. Hence draft.

Related, not changed here:

  • On FIPS, ssl-default-bind-curves with 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 passes
    fipsEnabled=false for HAProxy.
  • 1-069 (HA + AutoTLS) cannot catch this: with HA, AutoTLS never enables Redis TLS. The service-CA secret is owned
    by the <name>-redis-ha-haproxy Service, and isOwnerOfInterest only accepts -repo-server, -redis and the
    image-updater webhook suffix, so redisShouldUseTLS returns false. The same code is in upstream argocd-operator.

How to test changes / Special notes to the reviewer:

go vet passes for the changed packages. Run 1-067 on any OpenShift cluster with 3+ nodes and 1.23.0: it now
fails at "wait until the redis ha haproxy deployment has rolled out with tls".

🤖 Generated with Claude Code

https://claude.ai/code/session_014eLYgsb7g4QzJy477gPouC

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>
@openshift-ci

openshift-ci Bot commented Dec 4, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@coderabbitai

coderabbitai Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

@codecov

codecov Bot commented Dec 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (release-1.23@4ffca9e). Learn more about missing BASE report.

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           
Flag Coverage Δ
unit-tests 68.77% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant