From ffe56f8b1d2f2e857da423eac16e53d097877f4f Mon Sep 17 00:00:00 2001 From: Mauricio Lima Date: Thu, 8 Sep 2016 10:21:33 -0400 Subject: [PATCH] Add Checking free port for Manila API TrivialFix Change-Id: I583e1a5a2563b0b0617b5ab0c304fe2092d827bc --- ansible/roles/prechecks/tasks/port_checks.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ansible/roles/prechecks/tasks/port_checks.yml b/ansible/roles/prechecks/tasks/port_checks.yml index 482bc41b19..b864c85774 100644 --- a/ansible/roles/prechecks/tasks/port_checks.yml +++ b/ansible/roles/prechecks/tasks/port_checks.yml @@ -215,6 +215,22 @@ state: stopped when: inventory_hostname in groups['mariadb'] +- name: Checking free port for Manila API + wait_for: + host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}" + port: "{{ manila_api_port }}" + connect_timeout: 1 + state: stopped + when: inventory_hostname in groups['manila-api'] + +- name: Checking free port for Manila API HAProxy + wait_for: + host: "{{ kolla_internal_vip_address }}" + port: "{{ manila_api_port }}" + connect_timeout: 1 + state: stopped + when: inventory_hostname in groups['haproxy'] + - name: Checking free port for Memcached wait_for: host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"