Skip to content

[kustomize_deploy] wait for all CatalogSources to be READY after applying CRs#3656

Draft
rebtoor wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
rebtoor:install-operators-fix
Draft

[kustomize_deploy] wait for all CatalogSources to be READY after applying CRs#3656
rebtoor wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
rebtoor:install-operators-fix

Conversation

@rebtoor
Copy link
Contributor

@rebtoor rebtoor commented Feb 4, 2026

Replace pre-apply CatalogSource checks with post-apply approach that
waits for ALL CatalogSources to reach READY state. This prevents
subscription resolution failures caused by transient connectivity
issues with any CatalogSource (including redhat-operators).

Changes:

  • Apply kustomized CRs first, then verify CatalogSource health
  • Dynamically discover and wait for all CatalogSources cluster-wide
  • Use configurable retry/delay variables for consistency
  • Remove redundant installPlanRef assert (until loop already verifies)

@rebtoor rebtoor requested review from a team and holser February 4, 2026 09:38
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 4, 2026

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

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 4, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign eshulman2 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@rebtoor
Copy link
Contributor Author

rebtoor commented Feb 4, 2026

/test all

@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/e518df1dd85e48bd8013e1cc19b35f00

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 34m 02s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 19m 07s
cifmw-crc-podified-edpm-baremetal RETRY_LIMIT in 26m 47s
cifmw-crc-podified-edpm-baremetal-minor-update FAILURE in 26m 46s
✔️ cifmw-pod-zuul-files SUCCESS in 4m 36s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 32s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 10s
✔️ cifmw-architecture-validate-hci SUCCESS in 5m 03s
✔️ cifmw-molecule-kustomize_deploy SUCCESS in 4m 21s

@rebtoor
Copy link
Contributor Author

rebtoor commented Feb 4, 2026

recheck

Copy link
Contributor

@holser holser left a comment

Choose a reason for hiding this comment

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

Can we set retries\delays to what we have in other tasks? Thank you in advance

…ying CRs

Replace pre-apply CatalogSource checks with post-apply approach that
waits for ALL CatalogSources to reach READY state. This prevents
subscription resolution failures caused by transient connectivity
issues with any CatalogSource (including redhat-operators).

Changes:
- Apply kustomized CRs first, then verify CatalogSource health
- Dynamically discover and wait for all CatalogSources cluster-wide
- Use configurable retry/delay variables for consistency
- Remove redundant installPlanRef assert (until loop already verifies)

Signed-off-by: Roberto Alfieri <ralfieri@redhat.com>
@rebtoor rebtoor force-pushed the install-operators-fix branch from 240662c to 28df7f4 Compare February 4, 2026 13:31
@rebtoor rebtoor changed the title [kustomize_deploy] wait for openstack-operator-index CatalogSource before subscription [kustomize_deploy] wait for all CatalogSources to be READY after applying CRs Feb 4, 2026
Copy link
Contributor

@elfiesmelfie elfiesmelfie left a comment

Choose a reason for hiding this comment

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

I hit the same issue in a job deploying the uni-gamma VA with day2 scenario.
This PR appears to have resolved the issue for me.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants