Skip to content

fix: wait for OpenShift registry login readiness - #3884

Merged
openshift-merge-bot[bot] merged 1 commit into
redhat-developer:mainfrom
subhashkhileri:codex/fix-registry-login-readiness
Oct 19, 2026
Merged

openshift-merge-bot[bot] merged 1 commit into
redhat-developer:mainfrom
subhashkhileri:codex/fix-registry-login-readiness

Conversation

@subhashkhileri

Copy link
Copy Markdown
Member

Description

The catalog installer exposes the OpenShift image registry and immediately attempts skopeo login. When the route or registry backends are still starting, HTTP 503 aborts global setup before any E2E tests run.

Retry route lookup and login for a five-minute window, with timeouts on each request. Continue only after successful authentication; on timeout, print registry health diagnostics and return failure.

Which issue(s) does this PR fix or relate to

Recurring setup failure in the release-2.1 operator nightly: October 15, October 19.

PR acceptance criteria

  • Tests: live-cluster before/after verification, temporary retry/timeout checks, Bash syntax, and ShellCheck.
  • Documentation: inline comment explains why registry login must wait.

How to test changes / Special notes to the reviewer

Verified the extracted registry-setup step on an ephemeral OpenShift 4.22.18 cluster by restarting the registry Pods and running it while their replacements started:

  • Original code: exited on the first HTTP 503 after 7 seconds.
  • Fixed code: retried six HTTP 503 responses and logged in after 55 seconds.
  • Healthy registry: succeeded without retries.
  • Temporary checks covered missing routes, empty hostnames, transient login failures, and timeout diagnostics.

The registry configuration was restored and both replicas are ready. This reproduced the same HTTP 503 condition through a controlled restart; it does not establish the cause of the nightly registry outage. Validation covered registry setup; a full operator reinstall was not run.

@subhashkhileri
subhashkhileri requested a review from a team as a code owner October 19, 2026 07:04
@sonarqubecloud

Copy link
Copy Markdown

@subhashkhileri

Copy link
Copy Markdown
Member Author

/cherry-pick release-2.1

@openshift-cherrypick-robot

Copy link
Copy Markdown
Contributor

@subhashkhileri: once the present PR merges, I will cherry-pick it on top of release-2.1 in a new PR and assign it to you.

Details

In response to this:

/cherry-pick release-2.1

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.

@openshift-ci openshift-ci Bot added the lgtm label Oct 19, 2026
@openshift-merge-bot
openshift-merge-bot Bot merged commit 824de81 into redhat-developer:main Oct 19, 2026
10 checks passed
@openshift-cherrypick-robot

Copy link
Copy Markdown
Contributor

@subhashkhileri: new pull request created: #3885

Details

In response to this:

/cherry-pick release-2.1

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants