Skip to content
Snippets Groups Projects
Commit 26536e2c authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Local connection to remote Grafana can fail"

parents 95cd3347 28546710
No related branches found
No related tags found
No related merge requests found
...@@ -4,11 +4,10 @@ ...@@ -4,11 +4,10 @@
url: "{{ internal_protocol }}://{{ kolla_internal_vip_address }}:{{ grafana_server_port }}/login" url: "{{ internal_protocol }}://{{ kolla_internal_vip_address }}:{{ grafana_server_port }}/login"
status_code: 200 status_code: 200
register: result register: result
until: result.status == 200 until: result | failed or result.status == 200
retries: 10 retries: 10
delay: 2 delay: 2
run_once: true run_once: true
connection: local
- name: Enable grafana datasources - name: Enable grafana datasources
uri: uri:
...@@ -22,7 +21,6 @@ ...@@ -22,7 +21,6 @@
status_code: 200, 409 status_code: 200, 409
register: response register: response
run_once: True run_once: True
connection: local
changed_when: response.status == 200 changed_when: response.status == 200
failed_when: response.status not in [200, 409] or failed_when: response.status not in [200, 409] or
response.status == 409 and ("Data source with same name already exists" not in response.json.message|default("")) response.status == 409 and ("Data source with same name already exists" not in response.json.message|default(""))
...@@ -40,5 +38,4 @@ ...@@ -40,5 +38,4 @@
register: grafana_response register: grafana_response
changed_when: grafana_response.status == 200 changed_when: grafana_response.status == 200
run_once: true run_once: true
connection: local
when: grafana_custom_dashboard_file.stat.exists when: grafana_custom_dashboard_file.stat.exists
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment