Explicitly enable/disable active/active

As deployers may have usecases with several different backends being
served with the same cinder volume,
we should provide an option to easily override default behaviour

Change-Id: Idc9a71d722b7443cf1437c2d95f75c615b6035a4
This commit is contained in:
Dmitriy Rabotyagov 2020-06-17 18:43:14 +03:00
parent 576ed1b029
commit c6b9f011b7
3 changed files with 12 additions and 2 deletions

View File

@ -273,6 +273,10 @@ cinder_backend_lvm_inuse: '{{ (cinder_backends|default("")|to_json).find("lvm")
# cinder_backend_rbd_inuse: True if the current host has an rbd backend
cinder_backend_rbd_inuse: '{{ (cinder_backends|default("")|to_json).find("cinder.volume.drivers.rbd.RBDDriver") != -1 }}'
# Set to false if you want to explicitly disable active/active cluster
cinder_active_active_cluster: "{{ cinder_backend_rbd_inuse }}"
cinder_active_active_cluster_name: ceph
## Policy vars
# Provide a list of access controls to merge with the default
# access controls in the service code.

View File

@ -0,0 +1,6 @@
---
features:
- |
Added variables `cinder_active_active_cluster` and
`cinder_active_active_cluster_name` that allow to explicitly enable or
disable active/active feature, and set cluster name.

View File

@ -14,8 +14,8 @@ rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_config = /etc/cinder/api-paste.ini
auth_strategy = {{ cinder_auth_strategy }}
{% if cinder_backend_rbd_inuse | bool %}
cluster = ceph
{% if cinder_active_active_cluster | bool %}
cluster = {{ cinder_active_active_cluster_name }}
{% endif %}
## Cinder Scheduler