Fix "Enable influxdb datasource" random error
Sometimes the "Enable influxdb datasource" task failed with "503 Service Unavailable" error. Waiting for grafana port UP seems not always enough, it requires to wait for application ready. Change-Id: I3a27b3086698b89a80a3f585beb810831289ae7a Closes-Bug: #1697213
This commit is contained in:
parent
9d27e52137
commit
49c083f555
@ -1,8 +1,14 @@
|
|||||||
---
|
---
|
||||||
- name: Wait for grafana port
|
- name: Wait for grafana application ready
|
||||||
wait_for:
|
uri:
|
||||||
host: "{{ api_interface_address }}"
|
url: "{{ internal_protocol }}://{{ kolla_internal_vip_address }}:{{ grafana_server_port }}"
|
||||||
port: "{{ grafana_server_port }}"
|
status_code: 200
|
||||||
|
register: result
|
||||||
|
until: result.status == 200
|
||||||
|
retries: 10
|
||||||
|
delay: 2
|
||||||
|
run_once: true
|
||||||
|
connection: local
|
||||||
|
|
||||||
- name: Enable influxdb datasource
|
- name: Enable influxdb datasource
|
||||||
uri:
|
uri:
|
||||||
|
Loading…
Reference in New Issue
Block a user