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

Merge "Move sahara precheck into its own role"

parents fca27bf0 1c246219
No related branches found
No related tags found
No related merge requests found
......@@ -112,3 +112,14 @@
- enable_manila | bool
- "{{ 'manila_api' not in haproxy_stat }}"
- inventory_hostname in groups['haproxy']
- name: Checking free port for Sahara API HAProxy
wait_for:
host: "{{ kolla_internal_vip_address }}"
port: "{{ sahara_api_port }}"
connect_timeout: 1
state: stopped
when:
- enable_sahara | bool
- "{{ 'sahara_api' not in haproxy_stat }}"
- inventory_hostname in groups['haproxy']
......@@ -163,26 +163,6 @@
- enable_kuryr | bool
- inventory_hostname in groups['compute']
- name: Checking free port for Sahara API
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
port: "{{ sahara_api_port }}"
connect_timeout: 1
state: stopped
when:
- enable_sahara | bool
- inventory_hostname in groups['sahara-api']
- name: Checking free port for Sahara API HAProxy
wait_for:
host: "{{ kolla_internal_vip_address }}"
port: "{{ sahara_api_port }}"
connect_timeout: 1
state: stopped
when:
- enable_sahara | bool
- inventory_hostname in groups['haproxy']
- name: Checking free port for HAProxy stats
wait_for:
host: "{{ kolla_internal_vip_address }}"
......
---
- name: Get container facts
kolla_container_facts:
name:
- sahara_api
register: container_facts
- name: Checking free port for Sahara API
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
port: "{{ sahara_api_port }}"
connect_timeout: 1
state: stopped
when:
- container_facts['sahara_api'] is not defined
- inventory_hostname in groups['sahara-api']
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