602f89baa6
Since https://review.opendev.org/647699/, we lost the logic to only deploy glance-api on a single host when using the file backend. This code was always a bit custom, and would be better supported by using the 'host_in_groups' pattern we have in a few other places where a single group name does not describe the placement of containers for a service. Change-Id: I21ce4a3b0beee0009ac69fecd0ce24efebaf158d Closes-Bug: #1836151
19 lines
541 B
YAML
19 lines
541 B
YAML
---
|
|
- name: Get container facts
|
|
become: true
|
|
kolla_container_facts:
|
|
name: "{{ glance_services.values()|map(attribute='container_name')|list }}"
|
|
register: container_facts
|
|
|
|
- name: Checking free port for Glance API
|
|
wait_for:
|
|
host: "{{ api_interface_address }}"
|
|
port: "{{ glance_api_listen_port }}"
|
|
connect_timeout: 1
|
|
timeout: 1
|
|
state: stopped
|
|
when:
|
|
- glance_services['glance-api'].host_in_groups | bool
|
|
- glance_services['glance-api'].enabled | bool
|
|
- container_facts['glance_api'] is not defined
|