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

Merge "Move searchlight precheck into its own role"

parents f8f1faca e44d5750
No related branches found
No related tags found
No related merge requests found
...@@ -234,6 +234,17 @@ ...@@ -234,6 +234,17 @@
- "{{ 'sahara_api' not in haproxy_stat }}" - "{{ 'sahara_api' not in haproxy_stat }}"
- inventory_hostname in groups['haproxy'] - 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 - name: Checking free port for Senlin API HAProxy
wait_for: wait_for:
host: "{{ kolla_internal_vip_address }}" host: "{{ kolla_internal_vip_address }}"
......
...@@ -519,23 +519,3 @@ ...@@ -519,23 +519,3 @@
when: when:
- enable_ceph_rgw | bool - enable_ceph_rgw | bool
- inventory_hostname in groups['haproxy'] - 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']
--- ---
- 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']
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