Merge "Move searchlight precheck into its own role"

This commit is contained in:
Jenkins 2017-01-11 10:24:20 +00:00 committed by Gerrit Code Review
commit d8081a5980
3 changed files with 26 additions and 20 deletions

View File

@ -234,6 +234,17 @@
- "{{ 'sahara_api' not in haproxy_stat }}"
- inventory_hostname in groups['haproxy']
- name: Checking free port for Searchlight API HAProxy
wait_for:
host: "{{ kolla_internal_vip_address }}"
port: "{{ searchlight_api_port }}"
connect_timeout: 1
state: stopped
when:
- enable_searchlight | bool
- "{{ 'searchlight_api' not in haproxy_stat }}"
- inventory_hostname in groups['haproxy']
- name: Checking free port for Senlin API HAProxy
wait_for:
host: "{{ kolla_internal_vip_address }}"

View File

@ -519,23 +519,3 @@
when:
- enable_ceph_rgw | bool
- inventory_hostname in groups['haproxy']
- name: Checking free port for Searchlight API
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
port: "{{ searchlight_api_port }}"
connect_timeout: 1
state: stopped
when:
- enable_searchlight | bool
- inventory_hostname in groups['searchlight-api']
- name: Checking free port for Searchlight API HAProxy
wait_for:
host: "{{ kolla_internal_vip_address }}"
port: "{{ searchlight_api_port }}"
connect_timeout: 1
state: stopped
when:
- enable_searchlight | bool
- inventory_hostname in groups['haproxy']

View File

@ -1 +1,16 @@
---
- name: Get container facts
kolla_container_facts:
name:
- searchlight_api
register: container_facts
- name: Checking free port for Searchlight API
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
port: "{{ searchlight_api_port }}"
connect_timeout: 1
state: stopped
when:
- container_facts['searchlight_api'] is not defined
- inventory_hostname in groups['searchlight-api']