diff --git a/ansible/roles/prechecks/tasks/port_checks.yml b/ansible/roles/prechecks/tasks/port_checks.yml index b8a5c2936c..15a12a53a8 100644 --- a/ansible/roles/prechecks/tasks/port_checks.yml +++ b/ansible/roles/prechecks/tasks/port_checks.yml @@ -31,6 +31,38 @@ state: stopped when: inventory_hostname in groups['haproxy'] +- name: Checking free port for Ceilometer API + wait_for: + host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}" + port: "{{ ceilometer_api_port }}" + connect_timeout: 1 + state: stopped + when: inventory_hostname in groups['ceilometer-api'] + +- name: Checking free port for Ceilometer API HAProxy + wait_for: + host: "{{ kolla_internal_vip_address }}" + port: "{{ ceilometer_api_port }}" + connect_timeout: 1 + state: stopped + when: inventory_hostname in groups['haproxy'] + +- name: Checking free port for Congress API + wait_for: + host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}" + port: "{{ congress_api_port }}" + connect_timeout: 1 + state: stopped + when: inventory_hostname in groups['congress-api'] + +- name: Checking free port for Congress API HAProxy + wait_for: + host: "{{ kolla_internal_vip_address }}" + port: "{{ congress_api_port }}" + connect_timeout: 1 + state: stopped + when: inventory_hostname in groups['haproxy'] + - name: Checking free port for Cinder API wait_for: host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"