Skip to content
Snippets Groups Projects
Commit f0811d96 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Add the missing "ironic_inspector" into precheks"

parents 0710b698 a82aadd9
No related branches found
No related tags found
No related merge requests found
...@@ -203,7 +203,6 @@ horizon_port: "80" ...@@ -203,7 +203,6 @@ horizon_port: "80"
murano_api_port: "8082" murano_api_port: "8082"
ironic_api_port: "6385" ironic_api_port: "6385"
ironic_inspector_port: "5050" ironic_inspector_port: "5050"
magnum_api_port: "9511" magnum_api_port: "9511"
......
...@@ -201,6 +201,17 @@ ...@@ -201,6 +201,17 @@
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['haproxy']
- "{{ 'ironic_api' not in haproxy_stat }}" - "{{ '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 - name: Checking free port for Karbor Admin HAProxy
wait_for: wait_for:
host: "{{ kolla_internal_vip_address }}" host: "{{ kolla_internal_vip_address }}"
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
kolla_container_facts: kolla_container_facts:
name: name:
- ironic_api - ironic_api
- ironic_inspector
register: container_facts register: container_facts
- name: Checking free port for Ironic - name: Checking free port for Ironic
...@@ -15,6 +16,16 @@ ...@@ -15,6 +16,16 @@
- container_facts['ironic_api'] is not defined - container_facts['ironic_api'] is not defined
- inventory_hostname in groups['ironic-api'] - 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 - name: Checking ironic-agent files exist for Ironic
local_action: stat path="{{ node_custom_config }}/ironic/{{ item }}" local_action: stat path="{{ node_custom_config }}/ironic/{{ item }}"
register: result 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