Merge "Add the missing prechecks for placement_api"

This commit is contained in:
Jenkins 2017-02-24 17:26:21 +00:00 committed by Gerrit Code Review
commit d1e21a1f62
2 changed files with 25 additions and 0 deletions

View File

@ -391,6 +391,17 @@
- inventory_hostname in groups['haproxy']
- "{{ 'nova_spicehtml5proxy' not in haproxy_stat }}"
- name: Checking free port for Nova Placement API HAProxy
wait_for:
host: "{{ kolla_internal_vip_address }}"
port: "{{ placement_api_port }}"
connect_timeout: 1
state: stopped
when:
- enable_nova | bool
- inventory_hostname in groups['haproxy']
- "{{ 'placement_api' not in haproxy_stat }}"
- name: Checking free port for Octavia API HAProxy
wait_for:
host: "{{ kolla_internal_vip_address }}"

View File

@ -6,6 +6,7 @@
- nova_novncproxy
- nova_serialproxy
- nova_spicehtml5proxy
- placement_api
register: container_facts
- name: Checking free port for Nova API
@ -72,3 +73,16 @@
- container_facts['nova_spicehtml5proxy'] is not defined
- nova_spicehtml5proxy.enabled | bool
- inventory_hostname in groups[nova_spicehtml5proxy.group]
- name: Checking free port for Nova Placement API
vars:
placement_api: "{{ nova_services['placement-api'] }}"
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
port: "{{ placement_api_port }}"
connect_timeout: 1
state: stopped
when:
- container_facts['placement_api'] is not defined
- inventory_hostname in groups[placement_api.group]
- placement_api.enabled | bool