From 4255c3b6441b50aa4db317cdc6fb180618e0dfa0 Mon Sep 17 00:00:00 2001 From: zhubingbing <1392607554@qq.com> Date: Wed, 28 Sep 2016 08:31:01 +0000 Subject: [PATCH] Add kuryr to precheck TrivialFix Change-Id: Ia7bfa714521366818d848d924aa728819c97982a --- ansible/roles/prechecks/tasks/port_checks.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ansible/roles/prechecks/tasks/port_checks.yml b/ansible/roles/prechecks/tasks/port_checks.yml index a2472c1c78..9ed04e5912 100644 --- a/ansible/roles/prechecks/tasks/port_checks.yml +++ b/ansible/roles/prechecks/tasks/port_checks.yml @@ -199,6 +199,16 @@ - inventory_hostname in groups['haproxy'] - enable_gnocchi | bool +- name: Checking free port for Kuryr + wait_for: + host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}" + port: "{{ kuryr_port }}" + connect_timeout: 1 + state: stopped + when: + - inventory_hostname in groups['compute'] + - enable_kuryr | bool + - name: Checking free port for Sahara API wait_for: host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"