Skip to content

Commit b2eb0c5

Browse files
cescginaopenshift-merge-bot[bot]
authored andcommitted
Change how the watcher hook waits for prometheus
Change how the watcher hook waits for the new prometheus-metric-storage container after patching the metrie-storage service to enable admin api. In some runs [1] the current method of waiting was calling oc wait in between the time where openshift would delete the old container and creating the new one, thus not waiting the specified timeout. [1] https://softwarefactory-project.io/zuul/t/rdoproject.org/build/e058ff4467134a258e283c9da17e0192
1 parent f88c399 commit b2eb0c5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ci/playbooks/deploy_watcher_service.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
- name: Wait for prometheuses.monitoring.rhobs metric-storage associated pod to be redeployed
3737
ansible.builtin.command:
3838
cmd: >-
39-
oc wait pod prometheus-metric-storage-0 --for=condition=Ready -n openstack --timeout=10m
39+
oc wait pod prometheus-metric-storage-0 --for=condition=Ready -n openstack --timeout=1m
40+
retries: 10
4041

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

0 commit comments

Comments
 (0)