Merge "Introduce variables for cinder backend names"
This commit is contained in:
commit
6bff120d2d
@ -227,25 +227,35 @@ cinder_api_workers: "{{ openstack_service_workers }}"
|
|||||||
# Cinder
|
# Cinder
|
||||||
####################
|
####################
|
||||||
cinder_backends:
|
cinder_backends:
|
||||||
- name: "rbd-1"
|
- name: "{{ cinder_backend_ceph_name }}"
|
||||||
enabled: "{{ cinder_backend_ceph | bool }}"
|
enabled: "{{ cinder_backend_ceph | bool }}"
|
||||||
- name: "lvm-1"
|
- name: "{{ cinder_backend_lvm_name }}"
|
||||||
enabled: "{{ enable_cinder_backend_lvm | bool }}"
|
enabled: "{{ enable_cinder_backend_lvm | bool }}"
|
||||||
- name: "nfs-1"
|
- name: "{{ cinder_backend_nfs_name }}"
|
||||||
enabled: "{{ enable_cinder_backend_nfs | bool }}"
|
enabled: "{{ enable_cinder_backend_nfs | bool }}"
|
||||||
- name: "hnas-nfs"
|
- name: "{{ cinder_backend_hnas_nfs_name }}"
|
||||||
enabled: "{{ enable_cinder_backend_hnas_nfs | bool }}"
|
enabled: "{{ enable_cinder_backend_hnas_nfs | bool }}"
|
||||||
- name: "vmwarevc-vmdk"
|
- name: "{{ cinder_backend_vmwarevc_vmdk_name }}"
|
||||||
enabled: "{{ cinder_backend_vmwarevc_vmdk | bool }}"
|
enabled: "{{ cinder_backend_vmwarevc_vmdk | bool }}"
|
||||||
- name: "vmware-vstorage-object"
|
- name: "{{ cinder_backend_vmware_vstorage_object_name }}"
|
||||||
enabled: "{{ cinder_backend_vmware_vstorage_object | bool }}"
|
enabled: "{{ cinder_backend_vmware_vstorage_object | bool }}"
|
||||||
- name: "QuobyteHD"
|
- name: "{{ cinder_backend_quobyte_name }}"
|
||||||
enabled: "{{ enable_cinder_backend_quobyte | bool }}"
|
enabled: "{{ enable_cinder_backend_quobyte | bool }}"
|
||||||
- name: "Pure-FlashArray-iscsi"
|
- name: "{{ cinder_backend_pure_iscsi_name }}"
|
||||||
enabled: "{{ enable_cinder_backend_pure_iscsi | bool }}"
|
enabled: "{{ enable_cinder_backend_pure_iscsi | bool }}"
|
||||||
- name: "Pure-FlashArray-fc"
|
- name: "{{ cinder_backend_pure_fc_name }}"
|
||||||
enabled: "{{ enable_cinder_backend_pure_fc | bool }}"
|
enabled: "{{ enable_cinder_backend_pure_fc | bool }}"
|
||||||
|
|
||||||
|
cinder_backend_ceph_name: "rbd-1"
|
||||||
|
cinder_backend_lvm_name: "lvm-1"
|
||||||
|
cinder_backend_nfs_name: "nfs-1"
|
||||||
|
cinder_backend_hnas_nfs_name: "hnas-nfs"
|
||||||
|
cinder_backend_vmwarevc_vmdk_name: "vmwarevc-vmdk"
|
||||||
|
cinder_backend_vmware_vstorage_object_name: "vmware-vstorage-object"
|
||||||
|
cinder_backend_quobyte_name: "QuobyteHD"
|
||||||
|
cinder_backend_pure_iscsi_name: "Pure-FlashArray-iscsi"
|
||||||
|
cinder_backend_pure_fc_name: "Pure-FlashArray-fc"
|
||||||
|
|
||||||
skip_cinder_backend_check: False
|
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 }}"
|
||||||
|
@ -118,20 +118,19 @@ memcached_servers = {% for host in groups['memcached'] %}{{ 'api' | kolla_addres
|
|||||||
[oslo_concurrency]
|
[oslo_concurrency]
|
||||||
lock_path = /var/lib/cinder/tmp
|
lock_path = /var/lib/cinder/tmp
|
||||||
|
|
||||||
|
|
||||||
{% if enable_cinder_backend_lvm | bool %}
|
{% if enable_cinder_backend_lvm | bool %}
|
||||||
[lvm-1]
|
[{{ cinder_backend_lvm_name }}]
|
||||||
volume_group = {{ cinder_volume_group }}
|
volume_group = {{ cinder_volume_group }}
|
||||||
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
|
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
|
||||||
volume_backend_name = lvm-1
|
volume_backend_name = {{ cinder_backend_lvm_name }}
|
||||||
target_helper = {{ cinder_target_helper }}
|
target_helper = {{ cinder_target_helper }}
|
||||||
target_protocol = iscsi
|
target_protocol = iscsi
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if cinder_backend_ceph | bool %}
|
{% if cinder_backend_ceph | bool %}
|
||||||
[rbd-1]
|
[{{ cinder_backend_ceph_name }}]
|
||||||
volume_driver = cinder.volume.drivers.rbd.RBDDriver
|
volume_driver = cinder.volume.drivers.rbd.RBDDriver
|
||||||
volume_backend_name = rbd-1
|
volume_backend_name = {{ cinder_backend_ceph_name }}
|
||||||
rbd_pool = {{ ceph_cinder_pool_name }}
|
rbd_pool = {{ ceph_cinder_pool_name }}
|
||||||
rbd_ceph_conf = /etc/ceph/ceph.conf
|
rbd_ceph_conf = /etc/ceph/ceph.conf
|
||||||
rbd_flatten_volume_from_snapshot = false
|
rbd_flatten_volume_from_snapshot = false
|
||||||
@ -145,9 +144,9 @@ image_upload_use_cinder_backend = True
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if enable_cinder_backend_nfs | bool %}
|
{% if enable_cinder_backend_nfs | bool %}
|
||||||
[nfs-1]
|
[{{ cinder_backend_nfs_name }}]
|
||||||
volume_driver = cinder.volume.drivers.nfs.NfsDriver
|
volume_driver = cinder.volume.drivers.nfs.NfsDriver
|
||||||
volume_backend_name = nfs-1
|
volume_backend_name = {{ cinder_backend_nfs_name }}
|
||||||
nfs_shares_config = /etc/cinder/nfs_shares
|
nfs_shares_config = /etc/cinder/nfs_shares
|
||||||
nfs_snapshot_support = True
|
nfs_snapshot_support = True
|
||||||
nas_secure_file_permissions = False
|
nas_secure_file_permissions = False
|
||||||
@ -155,7 +154,7 @@ nas_secure_file_operations = False
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if enable_cinder_backend_hnas_nfs | bool %}
|
{% if enable_cinder_backend_hnas_nfs | bool %}
|
||||||
[hnas-nfs]
|
[{{ cinder_backend_hnas_nfs_name }}]
|
||||||
volume_driver = cinder.volume.drivers.hitachi.hnas_nfs.HNASNFSDriver
|
volume_driver = cinder.volume.drivers.hitachi.hnas_nfs.HNASNFSDriver
|
||||||
nfs_shares_config = /home/cinder/nfs_shares
|
nfs_shares_config = /home/cinder/nfs_shares
|
||||||
volume_backend_name = {{ hnas_nfs_backend }}
|
volume_backend_name = {{ hnas_nfs_backend }}
|
||||||
@ -168,7 +167,7 @@ hnas_svc0_hdp = {{ hnas_nfs_svc0_hdp }}
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if cinder_backend_vmwarevc_vmdk | bool %}
|
{% if cinder_backend_vmwarevc_vmdk | bool %}
|
||||||
[vmwarevc-vmdk]
|
[{{ cinder_backend_vmwarevc_vmdk_name }}]
|
||||||
volume_driver = cinder.volume.drivers.vmware.vmdk.VMwareVcVmdkDriver
|
volume_driver = cinder.volume.drivers.vmware.vmdk.VMwareVcVmdkDriver
|
||||||
vmware_host_ip = {{ vmware_vcenter_host_ip }}
|
vmware_host_ip = {{ vmware_vcenter_host_ip }}
|
||||||
vmware_host_username = {{ vmware_vcenter_host_username }}
|
vmware_host_username = {{ vmware_vcenter_host_username }}
|
||||||
@ -178,7 +177,7 @@ vmware_insecure = True
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if cinder_backend_vmware_vstorage_object | bool %}
|
{% if cinder_backend_vmware_vstorage_object | bool %}
|
||||||
[vmware-vstorage-object]
|
[{{ cinder_backend_vmware_vstorage_object_name }}]
|
||||||
volume_driver = cinder.volume.drivers.vmware.fcd.VMwareVStorageObjectDriver
|
volume_driver = cinder.volume.drivers.vmware.fcd.VMwareVStorageObjectDriver
|
||||||
vmware_host_ip = {{ vmware_vcenter_host_ip }}
|
vmware_host_ip = {{ vmware_vcenter_host_ip }}
|
||||||
vmware_host_username = {{ vmware_vcenter_host_username }}
|
vmware_host_username = {{ vmware_vcenter_host_username }}
|
||||||
@ -188,13 +187,13 @@ vmware_insecure = True
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if enable_cinder_backend_quobyte | bool %}
|
{% if enable_cinder_backend_quobyte | bool %}
|
||||||
[QuobyteHD]
|
[{{ cinder_backend_quobyte_name }}]
|
||||||
volume_driver = cinder.volume.drivers.quobyte.QuobyteDriver
|
volume_driver = cinder.volume.drivers.quobyte.QuobyteDriver
|
||||||
quobyte_volume_url = quobyte://{{ quobyte_storage_host }}/{{ quobyte_storage_volume }}
|
quobyte_volume_url = quobyte://{{ quobyte_storage_host }}/{{ quobyte_storage_volume }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if enable_cinder_backend_pure_iscsi | bool %}
|
{% if enable_cinder_backend_pure_iscsi | bool %}
|
||||||
[Pure-FlashArray-iscsi]
|
[{{ cinder_backend_pure_iscsi_name }}]
|
||||||
volume_backend_name = {{ pure_iscsi_backend }}
|
volume_backend_name = {{ pure_iscsi_backend }}
|
||||||
volume_driver = cinder.volume.drivers.pure.PureISCSIDriver
|
volume_driver = cinder.volume.drivers.pure.PureISCSIDriver
|
||||||
san_ip = {{ pure_san_ip }}
|
san_ip = {{ pure_san_ip }}
|
||||||
@ -202,7 +201,7 @@ pure_api_token = {{ pure_api_token }}
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if enable_cinder_backend_pure_fc | bool %}
|
{% if enable_cinder_backend_pure_fc | bool %}
|
||||||
[Pure-FlashArray-fc]
|
[{{ cinder_backend_pure_fc_name }}]
|
||||||
volume_backend_name = {{ pure_fc_backend }}
|
volume_backend_name = {{ pure_fc_backend }}
|
||||||
volume_driver = cinder.volume.drivers.pure.PureFCDriver
|
volume_driver = cinder.volume.drivers.pure.PureFCDriver
|
||||||
san_ip = {{ pure_san_ip }}
|
san_ip = {{ pure_san_ip }}
|
||||||
|
@ -200,3 +200,55 @@ in Kolla, the following parameter must be specified in ``globals.yml``:
|
|||||||
|
|
||||||
All configuration for custom NFS backend should be performed
|
All configuration for custom NFS backend should be performed
|
||||||
via ``cinder.conf`` in config overrides directory.
|
via ``cinder.conf`` in config overrides directory.
|
||||||
|
|
||||||
|
Customizing backend names in cinder.conf
|
||||||
|
----------------------------------------
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
This is an advanced configuration option. You cannot change these variables
|
||||||
|
if you already have volumes that use the old name without additional steps.
|
||||||
|
Sensible defaults exist out of the box.
|
||||||
|
|
||||||
|
The following variables are available to customise the default backend name
|
||||||
|
that appears in cinder.conf:
|
||||||
|
|
||||||
|
.. list-table:: Variables to customize backend name
|
||||||
|
:widths: 50 25 25
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Driver
|
||||||
|
- Variable
|
||||||
|
- Default value
|
||||||
|
* - Ceph
|
||||||
|
- cinder_backend_ceph_name
|
||||||
|
- rbd-1
|
||||||
|
* - Logical Volume Manager (LVM)
|
||||||
|
- cinder_backend_lvm_name
|
||||||
|
- lvm-1
|
||||||
|
* - Network File System (NFS)
|
||||||
|
- cinder_backend_nfs_name
|
||||||
|
- nfs-1
|
||||||
|
* - Hitachi NAS Platform NFS
|
||||||
|
- cinder_backend_hnas_nfs_name
|
||||||
|
- hnas-nfs
|
||||||
|
* - VMware Virtual Machine Disk File
|
||||||
|
- cinder_backend_vmwarevc_vmdk_name
|
||||||
|
- vmwarevc-vmdk
|
||||||
|
* - VMware VStorage (Object Storage)
|
||||||
|
- cinder_backend_vmware_vstorage_object_name
|
||||||
|
- vmware-vstorage-object
|
||||||
|
* - Quobyte Storage for OpenStack
|
||||||
|
- cinder_backend_quobyte_name
|
||||||
|
- QuobyteHD
|
||||||
|
* - Pure Storage FlashArray for OpenStack (iSCSI)
|
||||||
|
- cinder_backend_pure_iscsi_name
|
||||||
|
- Pure-FlashArray-iscsi
|
||||||
|
* - Pure Storage FlashArray for OpenStack
|
||||||
|
- cinder_backend_pure_fc_name
|
||||||
|
- Pure-FlashArray-fc
|
||||||
|
|
||||||
|
These are the names you use when
|
||||||
|
`configuring <https://docs.openstack.org/cinder/latest/admin/multi-backend.html#volume-type>`_
|
||||||
|
``volume_backend_name`` on cinder volume types. It can sometimes be
|
||||||
|
useful to provide a more descriptive name.
|
||||||
|
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Adds a set of variables to control the cinder backend name, as used in
|
||||||
|
cinder.conf. This is the name you use when setting the volume_backend_name
|
||||||
|
property on volume types. Details are in the
|
||||||
|
`cinder guide <https://docs.openstack.org/kolla-ansible/latest/reference/storage/cinder-guide.html>`_
|
||||||
|
section of the documentation.
|
Loading…
Reference in New Issue
Block a user