Merge "Added ability to skip enabled backends pre-check"
This commit is contained in:
commit
4dbbc0e7e0
@ -188,6 +188,8 @@ cinder_backends:
|
|||||||
- name: "QuobyteHD"
|
- name: "QuobyteHD"
|
||||||
enabled: "{{ enable_cinder_backend_quobyte | bool }}"
|
enabled: "{{ enable_cinder_backend_quobyte | bool }}"
|
||||||
|
|
||||||
|
skip_cinder_backend_check: False
|
||||||
|
|
||||||
cinder_enabled_backends: "{{ cinder_backends|selectattr('enabled', 'equalto', true)|list }}"
|
cinder_enabled_backends: "{{ cinder_backends|selectattr('enabled', 'equalto', true)|list }}"
|
||||||
|
|
||||||
####################
|
####################
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
run_once: True
|
run_once: True
|
||||||
local_action: fail msg="Please enable at least one backend when enabling Cinder"
|
local_action: fail msg="Please enable at least one backend when enabling Cinder"
|
||||||
when:
|
when:
|
||||||
|
- not skip_cinder_backend_check | bool
|
||||||
- not enable_cinder_backend_hnas_iscsi | bool
|
- not enable_cinder_backend_hnas_iscsi | bool
|
||||||
- not enable_cinder_backend_hnas_nfs | bool
|
- not enable_cinder_backend_hnas_nfs | bool
|
||||||
- not enable_cinder_backend_iscsi | bool
|
- not enable_cinder_backend_iscsi | bool
|
||||||
|
@ -188,3 +188,16 @@ the following parameter must be specified in ``globals.yml``:
|
|||||||
enable_cinder_backend_iscsi: "yes"
|
enable_cinder_backend_iscsi: "yes"
|
||||||
|
|
||||||
Also ``enable_cinder_backend_lvm`` should be set to ``no`` in this case.
|
Also ``enable_cinder_backend_lvm`` should be set to ``no`` in this case.
|
||||||
|
|
||||||
|
Skip Cinder prechecks for Custom backends
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
In order to use custom storage backends which currently not yet implemented
|
||||||
|
in Kolla, the following parameter must be specified in ``globals.yml``:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
skip_cinder_backend_check: True
|
||||||
|
|
||||||
|
All configuration for custom NFS backend should be performed
|
||||||
|
via ``cinder.conf`` in config overrides directory.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user