Skip to content

Commit 7e2aa33

Browse files
danpawlikopenshift-merge-bot[bot]
authored andcommitted
[openshift_setup] Add retry and delay on getting OpenShift info
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>
1 parent 8136811 commit 7e2aa33

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

roles/openshift_setup/tasks/patch_samples_registry.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@
1313
- op: replace
1414
path: /spec/samplesRegistry
1515
value: "{{ cifmw_openshift_setup_samples_registry }}"
16+
register: _samples_registry_config
17+
until: _samples_registry_config is succeeded
18+
retries: 5
19+
delay: 10

0 commit comments

Comments
 (0)