Skip to content

Commit cff4b91

Browse files
raukadahopenshift-merge-bot[bot]
authored andcommitted
Make prometheus pod wait task resilient to redeployment
The Ansible task that waits for the `prometheus-metric-storage-0` pod to become `Ready` was failing intermittently. In order to make retries/delay work, we need a until condition in order to make it working. Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
1 parent 7b2aa2c commit cff4b91

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ci/playbooks/prometheus_admin_api.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@
1818
oc wait pod prometheus-metric-storage-0 --for=condition=Ready -n openstack --timeout=1m
1919
retries: 10
2020
delay: 30
21+
register: oc_wait_result
22+
until: oc_wait_result.rc == 0

0 commit comments

Comments
 (0)