Skip to content

[openshift_setup] Add retry and delay on getting OpenShift info#3943

Open
danpawlik wants to merge 1 commit into
openstack-k8s-operators:mainfrom
danpawlik:retry-openshift_setup
Open

[openshift_setup] Add retry and delay on getting OpenShift info#3943
danpawlik wants to merge 1 commit into
openstack-k8s-operators:mainfrom
danpawlik:retry-openshift_setup

Conversation

@danpawlik
Copy link
Copy Markdown
Contributor

Tasks executed before patch_samples_registry.yml triggers OpenShift API to rollback, so when the hypervisor is overloaded it fails with error:

urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.crc.testing', port=6443): Max retries exceeded with url: /apis/samples.operator.openshift.io/v1/configs/cluster (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fdd6e714280>: Failed to establish a new connection: [Errno 111] Connection refused'))

Add retry to prevent such error.

Tasks executed before patch_samples_registry.yml triggers OpenShift API
to rollback, so when the hypervisor is overloaded it fails with error:

    urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.crc.testing', port=6443): Max retries exceeded with url: /apis/samples.operator.openshift.io/v1/configs/cluster (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fdd6e714280>: Failed to establish a new connection: [Errno 111] Connection refused'))

Add retry to prevent such error.

Signed-off-by: Daniel Pawlik <dpawlik@redhat.com>
@danpawlik danpawlik requested a review from a team May 19, 2026 11:37
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 19, 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 tosky 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

Copy link
Copy Markdown
Contributor

@michburk michburk left a comment

Choose a reason for hiding this comment

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

/lgtm

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.

2 participants