Skip to content

fix(repo-server): Fix SystemCATrust for RHEL 9#1123

Merged
openshift-merge-bot[bot] merged 2 commits intoredhat-developer:masterfrom
olivergondza:fix-systemcatrust-tests
Apr 14, 2026
Merged

fix(repo-server): Fix SystemCATrust for RHEL 9#1123
openshift-merge-bot[bot] merged 2 commits intoredhat-developer:masterfrom
olivergondza:fix-systemcatrust-tests

Conversation

@olivergondza
Copy link
Copy Markdown
Collaborator

The hardcoded image url caused the tests to pass despite the desired image have changed.

What type of PR is this?

Uncomment only one /kind line, and delete the rest.
For example, > /kind bug would simply become: /kind bug

/kind bug

/kind cleanup
/kind failing-test
/kind enhancement
/kind documentation
/kind code-refactoring

What does this PR do / why we need it:

Have you updated the necessary documentation?

  • [no] Documentation update is required by this PR.
  • [no] Documentation has been updated.

Which issue(s) this PR fixes:

https://redhat.atlassian.net/browse/GITOPS-9511

Test acceptance criteria:

  • Unit Test
  • E2E Test

How to test changes / Special notes to the reviewer:

@openshift-ci openshift-ci bot added the kind/bug Something isn't working label Apr 9, 2026
@openshift-ci openshift-ci bot requested review from AdamSaleh and jannfis April 9, 2026 12:37

update-ca-trust
# Specifying the explicit location to turn on the container-aware behavior
update-ca-trust extract --output /etc/pki/ca-trust/extracted
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the actual fix for the bug. The --output option causes update-ca-trust not to assume it is run as root. Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=2241240

"cat", caBundlePath,
"bash", "-c",
// Ubuntu or RHEL location
"cat /etc/ssl/certs/ca-certificates.crt || cat /etc/ssl/certs/ca-bundle.crt",
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done this way, so tests are easier to sync in the future - no difference between operators on this line.


if !fixture.EnvNonOLM() {
image = "registry.redhat.io/openshift-gitops-1/argocd-rhel8"
imageVersion = "sha256:8a0544c14823492165550d83a6d8ba79dd632b46144d3fdcb543793726111d76"
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The very culprit of the bug. The rhel8 I hard-coded here prevented our quality gates to spot incompatibility with rhel9, so this passed nicely during CI and QE, but failed spectacularly in production using RHEL 9.

Comment thread test/openshift/e2e/ginkgo/sequential/1-120_repo_server_system_ca_trust.go Outdated
@olivergondza olivergondza changed the title fix(repo-server): Fix SystemCATrust for RHEL 9 fix(repo-server): Fix SystemCATrust for RHEL 9 (WIP) Apr 9, 2026
@svghadi
Copy link
Copy Markdown
Member

svghadi commented Apr 13, 2026

/retest

@svghadi
Copy link
Copy Markdown
Member

svghadi commented Apr 13, 2026

/lgtm

@svghadi
Copy link
Copy Markdown
Member

svghadi commented Apr 13, 2026

/approve

@svghadi svghadi removed the approved label Apr 14, 2026
@olivergondza olivergondza force-pushed the fix-systemcatrust-tests branch from 5cf7436 to 39977df Compare April 14, 2026 10:57
@openshift-ci openshift-ci bot added approved and removed lgtm labels Apr 14, 2026

// --- Helper Functions ---

func getCSV(ctx context.Context, k8sClient client.Client) *olmv1alpha1.ClusterServiceVersion {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to fixture.

@olivergondza olivergondza changed the title fix(repo-server): Fix SystemCATrust for RHEL 9 (WIP) fix(repo-server): Fix SystemCATrust for RHEL 9 Apr 14, 2026
The hardcoded image url caused the tests to pass despite the desired image have changed.

Signed-off-by: Oliver Gondža <ogondza@gmail.com>
@olivergondza olivergondza force-pushed the fix-systemcatrust-tests branch from 39977df to 783f49b Compare April 14, 2026 11:09
Copy link
Copy Markdown
Member

@svghadi svghadi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm label Apr 14, 2026
@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Apr 14, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: svghadi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@svghadi
Copy link
Copy Markdown
Member

svghadi commented Apr 14, 2026

/retest

@openshift-merge-bot openshift-merge-bot bot merged commit 71974fd into redhat-developer:master Apr 14, 2026
16 checks passed
@svghadi
Copy link
Copy Markdown
Member

svghadi commented Apr 15, 2026

/cherry-pick v1.20

@openshift-cherrypick-robot
Copy link
Copy Markdown

@svghadi: new pull request created: #1127

Details

In response to this:

/cherry-pick v1.20

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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

Labels

approved kind/bug Something isn't working lgtm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants