From fa52fb35146d3b2e3d96d55e3dc39320ee42da58 Mon Sep 17 00:00:00 2001 From: Mathias Ewald Date: Sun, 23 Jul 2017 10:28:03 +0000 Subject: [PATCH] Fix grafana post-config check Check grafana's /login url for status code 200 instead of root url since the latter does not return an http 200 code Change-Id: Ide7da26c0e217a4a60ad3d2ac693d6f7ac7bb722 Closes-Bug: #1705911 --- ansible/roles/grafana/tasks/post_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/grafana/tasks/post_config.yml b/ansible/roles/grafana/tasks/post_config.yml index 2acec9db7e..11b928c9c5 100644 --- a/ansible/roles/grafana/tasks/post_config.yml +++ b/ansible/roles/grafana/tasks/post_config.yml @@ -1,7 +1,7 @@ --- - name: Wait for grafana application ready uri: - url: "{{ internal_protocol }}://{{ kolla_internal_vip_address }}:{{ grafana_server_port }}" + url: "{{ internal_protocol }}://{{ kolla_internal_vip_address }}:{{ grafana_server_port }}/login" status_code: 200 register: result until: result.status == 200