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

Move murano precheck into its own role

Change-Id: I3a2b6869a7742c5bf91c3dc20523784aca0eb521
Partially-implements: blueprint condition-pre-check
parent adaabb9c
No related branches found
No related tags found
No related merge requests found
...@@ -212,6 +212,17 @@ ...@@ -212,6 +212,17 @@
- "{{ 'mistral_api' not in haproxy_stat }}" - "{{ 'mistral_api' not in haproxy_stat }}"
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['haproxy']
- name: Checking free port for Murano API HAProxy
wait_for:
host: "{{ kolla_internal_vip_address }}"
port: "{{ murano_api_port }}"
connect_timeout: 1
state: stopped
when:
- enable_murano | bool
- "{{ 'murano_api' not in haproxy_stat }}"
- inventory_hostname in groups['haproxy']
- name: Checking free port for Neutron Server HAProxy - name: Checking free port for Neutron Server HAProxy
wait_for: wait_for:
host: "{{ kolla_internal_vip_address }}" host: "{{ kolla_internal_vip_address }}"
......
--- ---
- name: Get container facts
kolla_container_facts:
name:
- murano_api
register: container_facts
- name: Checking free port for Murano API
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
port: "{{ murano_api_port }}"
connect_timeout: 1
state: stopped
when:
- container_facts['murano_api'] is not defined
- inventory_hostname in groups['murano-api']
...@@ -193,26 +193,6 @@ ...@@ -193,26 +193,6 @@
- enable_mariadb | bool - enable_mariadb | bool
- inventory_hostname in groups['mariadb'] - inventory_hostname in groups['mariadb']
- name: Checking free port for Murano API
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
port: "{{ murano_api_port }}"
connect_timeout: 1
state: stopped
when:
- enable_murano | bool
- inventory_hostname in groups['murano-api']
- name: Checking free port for Murano API HAProxy
wait_for:
host: "{{ kolla_internal_vip_address }}"
port: "{{ murano_api_port }}"
connect_timeout: 1
state: stopped
when:
- enable_murano | bool
- inventory_hostname in groups['haproxy']
- name: Checking free port for RabbitMQ - name: Checking free port for RabbitMQ
wait_for: wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}" host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
......
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