Add the missing "ironic_inspector" into precheks

- remove the unnecessary blank
- add "ironic_inspector" into its own prechecks and haproxy prechecks

Change-Id: Id542971057a9116eef679f1eb0827266eb18ba30
Closes-bug: #1668178
This commit is contained in:
caoyuan 2017-02-26 14:38:07 +08:00
parent 9d295868a5
commit a82aadd982
3 changed files with 22 additions and 1 deletions

View File

@ -203,7 +203,6 @@ horizon_port: "80"
murano_api_port: "8082"
ironic_api_port: "6385"
ironic_inspector_port: "5050"
magnum_api_port: "9511"

View File

@ -201,6 +201,17 @@
- inventory_hostname in groups['haproxy']
- "{{ 'ironic_api' not in haproxy_stat }}"
- name: Checking free port for Ironic Inspector HAProxy
wait_for:
host: "{{ kolla_internal_vip_address }}"
port: "{{ ironic_inspector_port }}"
connect_timeout: 1
state: stopped
when:
- enable_ironic | bool
- inventory_hostname in groups['haproxy']
- "{{ 'ironic_inspector' not in haproxy_stat }}"
- name: Checking free port for Karbor Admin HAProxy
wait_for:
host: "{{ kolla_internal_vip_address }}"

View File

@ -3,6 +3,7 @@
kolla_container_facts:
name:
- ironic_api
- ironic_inspector
register: container_facts
- name: Checking free port for Ironic
@ -15,6 +16,16 @@
- container_facts['ironic_api'] is not defined
- inventory_hostname in groups['ironic-api']
- name: Checking free port for Ironic Inspector
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
port: "{{ ironic_inspector_port }}"
connect_timeout: 1
state: stopped
when:
- container_facts['ironic_inspector'] is not defined
- inventory_hostname in groups['ironic-inspector']
- name: Checking ironic-agent files exist for Ironic
local_action: stat path="{{ node_custom_config }}/ironic/{{ item }}"
register: result