fix: wait for OLM v1 install readiness before success - #3284
Conversation
Prevent silent success on OCP 4.18 when ClusterExtension is applied but the operator never installs; wait for Serving/Installed/CRD and fail with diagnostics.
Catalogd authenticates via openshift-config/pull-secret; image-puller alone left ClusterCatalog stuck on authentication required for the rebuilt IIB.
Follow-up: catalogd auth fixCI failure root cause was ClusterCatalog stuck on: Catalogd uses
Verified on workshop OCP 4.20
|
|
/agentic_review |
Code Review by Qodo
Context used✅ Compliance rules (platform):
18 rules✅ Cross-repo context Explored:
repo: redhat-developer/rhdh (sha: 6bcb0141) Not relevant to this PR:
redhat-developer/rhdh-plugins 1.
|
…endency Drop the unused OLM_V1_WAIT_TIMEOUT env knob; always merge internal registry auth into the global pull secret and only add the external default-route when present.
Shorten docs, drop brew naming from usage, slim failure diagnostics to resource status, and revert incidental render_iib/message churn.
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit 7e5b22a |
Wait for the Backstage CRD Established condition, derive the IIB image project from the rebuilt registry ref for puller grants, and document the exact readiness gates.
|
PR Summary by QodoFix OLM v1 install script to wait for Serving/Installed/CRD readiness
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
24fffa9
into
redhat-developer:main



Description
Fixes the OLM v1 path in
install-rhdh-catalog-source.shso RHDH operator install does not exit 0 before the operator is actually ready (the failure mode in OCP 4.18 operator nightlies after #3047).--olm-version autostill prefers v1 when the ClusterExtension CRD is present (OpenShift and Kubernetes).Changes
crdUpgradeSafety: None)Serving, ClusterExtensionInstalled, and (for RHDH) CRDbackstages.rhdh.redhat.comEstablished before printing Done; on timeout dump slim diagnostics and exit non-zeroopenshift-config/pull-secretso catalogd can pull the rebuilt IIB (authentication requiredwithout this)IMAGE_NAMESPACEfrom the rebuilt IIB image ref for image-puller grants (IIB project, not the app deploy ns); ensure that namespace exists before grantsVerification
Live path matrix on workshop OCP 4.20 (auto v1 install, explicit v1, v1 catalog-only, v0 install, v0 catalog-only) — all exited 0 with expected resources.
Which issue(s) does this PR fix or relate to
PR acceptance criteria
How to test changes / Special notes to the reviewer
On an OCP 4.18+ cluster where the ClusterExtension CRD exists:
Expect either a real install (CRD Established + operator pod Running) or a non-zero exit with OLM v1 diagnostics — never silent success.
Building Container Images for Testing
N/A (script/docs only).
Made with Cursor