From bca297b94899d58dd8c834259bf8c68a8319eeb4 Mon Sep 17 00:00:00 2001 From: ZhijunWei Date: Sat, 28 Apr 2018 15:12:14 +0000 Subject: [PATCH] Fix the prechecks action for prometheus_server the prometheus container is not exits, it should be prometheus_server[0] [0]: https://github.com/openstack/kolla-ansible/blob/master/ansible/roles/prometheus/defaults/main.yml#L6 Change-Id: Ib44390af9b8af5156dafbd0b0da6ae061a926ec7 --- ansible/roles/prometheus/tasks/precheck.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/roles/prometheus/tasks/precheck.yml b/ansible/roles/prometheus/tasks/precheck.yml index a43eaa5273..419d360e88 100644 --- a/ansible/roles/prometheus/tasks/precheck.yml +++ b/ansible/roles/prometheus/tasks/precheck.yml @@ -2,13 +2,13 @@ - name: Get container facts kolla_container_facts: name: - - prometheus + - prometheus_server - prometheus_node_exporter - prometheus_haproxy_exporter - prometheus_mysqld_exporter register: container_facts -- name: Checking free port for Prometheus +- name: Checking free port for Prometheus server wait_for: host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}" port: "{{ prometheus_port }}" @@ -16,7 +16,7 @@ timeout: 1 state: stopped when: - - container_facts['prometheus'] is not defined + - container_facts['prometheus_server'] is not defined - inventory_hostname in groups['prometheus'] - name: Checking free port for Prometheus node_exporter