9486e1d545
Kolla Ansible should deploy Glance and Cinder Backup with S3 backend support working out-of-the-box. The S3 backend had been re-introduced in Ussuri after being deprecated around the Mitaka timeframe, and having some local object storage options is nice for testing.. Closes-Bug: #1977515 Change-Id: I4ca58382d1ee568bfca2ad108495422163f81260 Co-authored-by: Juan Pablo Suazo <jsuazo@whitestack.com> Co-authored-by: Maksim Malchuk <maksim.malchuk@gmail.com>
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
---
|
|
- import_role:
|
|
name: service-precheck
|
|
vars:
|
|
service_precheck_services: "{{ glance_services }}"
|
|
service_name: "{{ project_name }}"
|
|
|
|
- name: Get container facts
|
|
become: true
|
|
kolla_container_facts:
|
|
container_engine: "{{ kolla_container_engine }}"
|
|
name: "{{ glance_services.values() | map(attribute='container_name') | list }}"
|
|
check_mode: false
|
|
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
|
|
|
|
- name: Check if S3 configurations are defined
|
|
assert:
|
|
that:
|
|
- vars[item] is defined
|
|
msg: "Glance S3 backend is enabled, either the {{ item }} or {{ item | replace('glance_backend_','') }} variable must be defined."
|
|
with_items:
|
|
- glance_backend_s3_url
|
|
- glance_backend_s3_bucket
|
|
- glance_backend_s3_access_key
|
|
- glance_backend_s3_secret_key
|
|
when: glance_backend_s3 | bool
|