Skip to content

Commit fd10dcb

Browse files
giacomolancianoyoctozepto
authored andcommitted
Fix monasca-grafana check
- Increment retries: waiting 20 seconds (i.e., 10 retries) seem to be not enough for monasca-grafana to start on the first node. Increasing to 80 seconds (i.e., 40 retries) fixes the issue. - Prevent the check from running when kolla_action=config. In that case, the command would never succeed as the service is not deployed yet (similarly to https://review.opendev.org/c/openstack/kolla-ansible/+/771237). Closes-Bug: #1915060 Related-Bug: #1821285 Change-Id: I7b42c51a66caed0eccf118615d841dca97a7af9d (cherry picked from commit 486de99)
1 parent c4f6ca1 commit fd10dcb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ansible/roles/monasca/handlers/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,10 @@
180180
status_code: 200
181181
register: result
182182
until: result.get('status') == 200
183-
retries: 10
183+
retries: 40
184184
delay: 2
185185
when:
186+
- kolla_action != "config"
186187
- inventory_hostname == groups[service.group]|first
187188

188189
- name: Restart remaining monasca-grafana containers

0 commit comments

Comments
 (0)