Skip to content

Commit 6612419

Browse files
amoralejopenshift-merge-bot[bot]
authored andcommitted
Add delay between retries when waiting for prometheus pod
In some cases, the job executes the oc wait right in the moment when the pod has been deleted and the new one is not created yet. In that situation oc wait fails with a `pods ... not found` error and exits immediately, so the 1 minute timeout is not applied and the 10 retries are executed immediately. To avoid that, I'm adding a delay between retries so that, it waits for before re-executing it so that it has time for the pod to be created.
1 parent d210d97 commit 6612419

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ci/playbooks/deploy_watcher_service.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
cmd: >-
3939
oc wait pod prometheus-metric-storage-0 --for=condition=Ready -n openstack --timeout=1m
4040
retries: 10
41+
delay: 30
4142

4243
# If the watcher-operator installation is already included in the openstack-operator we don't need to install it as
4344
# an standalone operator.

0 commit comments

Comments
 (0)