add ceilometer congress to precheck.yml

add ceilometer congress  api port check and haproxy check

TrivialFix

Change-Id: I81185ba1346a2f6474ab6482ab9d6396495e3932
This commit is contained in:
zhubingbing 2016-09-28 02:10:17 +00:00
parent 622c88ec99
commit 7633e900c7

@ -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'] }}"