Skip to content
Snippets Groups Projects
Commit a82aadd9 authored by caoyuan's avatar caoyuan
Browse files

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
parent 9d295868
No related branches found
No related tags found
No related merge requests found
......@@ -203,7 +203,6 @@ horizon_port: "80"
murano_api_port: "8082"
ironic_api_port: "6385"
ironic_inspector_port: "5050"
magnum_api_port: "9511"
......
......@@ -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 }}"
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment