cinder: check for coordination backend when HA

Change-Id: I02817963c691784c126c79e330981e0cc771bc88
Related-Bug: #1904062
This commit is contained in:
Michał Nasiadka
2020-11-17 14:23:05 +01:00
committed by Michal Nasiadka
parent 6037190b34
commit bb393e4b69
2 changed files with 10 additions and 0 deletions

View File

@@ -56,6 +56,15 @@
- enable_cinder_backend_lvm | bool
- inventory_hostname in groups['cinder-volume']
- name: Checking for coordination backend if Ceph backend is enabled
run_once: True
fail:
msg: "Please enable redis or etcd when using Cinder Ceph backend"
when:
- not skip_cinder_backend_check | bool
- cinder_backend_ceph | bool
- cinder_coordination_backend == ''
- name: Check if S3 configurations are defined
assert:
that:

View File

@@ -140,6 +140,7 @@ enable_mariabackup: "yes"
{% if scenario == "cephadm" %}
# kolla-ansible vars
enable_cinder: "yes"
enable_redis: "yes"
cinder_cluster_name: "kolla_ceph"
# External Ceph
glance_backend_ceph: "yes"