49b30a267f
Placement only needs its listen port to be free. During the Placement split from Nova in commit 2fc6d4cfc5 the wrong variable got moved into precheck for Placement, this fixes it. Change-Id: I71e3607c50110763259bfcd70ffb2f4c76e27f62 Closes-Bug: #1861189
22 lines
555 B
YAML
22 lines
555 B
YAML
---
|
|
- name: Get container facts
|
|
become: true
|
|
kolla_container_facts:
|
|
name:
|
|
- placement_api
|
|
register: container_facts
|
|
|
|
- name: Checking free port for Placement API
|
|
vars:
|
|
placement_api: "{{ placement_services['placement-api'] }}"
|
|
wait_for:
|
|
host: "{{ api_interface_address }}"
|
|
port: "{{ placement_api_listen_port }}"
|
|
connect_timeout: 1
|
|
timeout: 1
|
|
state: stopped
|
|
when:
|
|
- container_facts['placement_api'] is not defined
|
|
- inventory_hostname in groups[placement_api.group]
|
|
- placement_api.enabled | bool
|