Commit 7e2aa33
[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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments