Cinder cannot use external non-LVM iSCSI storage

Currently Cinder enables iscsid service only when LVM is choosen as
backend. This fix will allow to specify external iSCSI storage via
configuration add-on and to run iscsid independently of LVM settings.

Change-Id: Iaae0f8025534e5ab1c5f9d5e812a7d41129915ef
Closes-Bug: 1614125
This commit is contained in:
Vladislav Belogrudov 2016-08-17 18:07:10 +03:00
parent d10015dbea
commit b1f986c349
7 changed files with 21 additions and 6 deletions

View File

@ -248,6 +248,7 @@ enable_central_logging: "no"
enable_ceph: "no"
enable_ceph_rgw: "no"
enable_cinder: "no"
enable_cinder_backend_iscsi: "no"
enable_cinder_backend_lvm: "no"
enable_cloudkitty: "no"
enable_congress: "no"
@ -258,6 +259,7 @@ enable_heat: "yes"
enable_horizon: "yes"
enable_influxdb: "no"
enable_ironic: "no"
enable_iscsid: "{{ enable_cinder_backend_iscsi | bool or enable_cinder_backend_lvm | bool }}"
enable_kuryr: "no"
enable_magnum: "no"
enable_manila: "no"

View File

@ -30,8 +30,8 @@
- "/etc/localtime:/etc/localtime:ro"
- "/dev/:/dev/"
- "/run/:/run/"
- "{% if enable_cinder_backend_lvm | bool %}cinder:/var/lib/cinder{% endif %}"
- "{% if enable_cinder_backend_lvm | bool %}iscsi_info:/etc/iscsi{% endif %}"
- "{% if enable_iscsid | bool %}cinder:/var/lib/cinder{% endif %}"
- "{% if enable_iscsid | bool %}iscsi_info:/etc/iscsi{% endif %}"
- "kolla_logs:/var/log/kolla/"
- name: Starting cinder-volume container

View File

@ -39,4 +39,6 @@
- "/sys/kernel/config:/configfs"
- "cinder:/var/lib/cinder"
- "iscsi_info:/etc/iscsi"
when: inventory_hostname in groups['tgtd']
when:
- inventory_hostname in groups['tgtd']
- enable_cinder_backend_lvm | bool

View File

@ -34,7 +34,7 @@
- "/run:/run"
- "/dev:/dev"
- "kolla_logs:/var/log/kolla/"
- "{% if enable_cinder_backend_lvm | bool %}iscsi_info:/etc/iscsi{% endif %}"
- "{% if enable_iscsid | bool %}iscsi_info:/etc/iscsi{% endif %}"
- "libvirtd:/var/lib/libvirt"
- "nova_compute:/var/lib/nova/"

View File

@ -80,7 +80,7 @@
roles:
- { role: iscsi,
tags: iscsi,
when: enable_cinder_backend_lvm | bool }
when: enable_iscsid | bool }
- hosts:
- multipathd

View File

@ -97,7 +97,7 @@ between nova-compute process and the server hosting LVG.
In order to use Cinder's LVM backend, a LVG named ``cinder-volumes`` should
exist on the server and following parameter must be specified in
``globals.yml``. ::
``globals.yml`` ::
enable_cinder_backend_lvm: "yes"
@ -126,3 +126,13 @@ targeted for nova compute role.
::
mount -t configfs /etc/rc.local /sys/kernel/config
Cinder backend with external iSCSI storage
==========================================
In order to use external storage system (like one from EMC or NetApp)
the following parameter must be specified in ``globals.yml`` ::
enable_cinder_backend_iscsi: "yes"
Also ``enable_cinder_backend_lvm`` should be set to "no" in this case.

View File

@ -119,6 +119,7 @@ kolla_internal_vip_address: "10.10.10.254"
#enable_ceph: "no"
#enable_ceph_rgw: "no"
#enable_cinder: "no"
#enable_cinder_backend_iscsi: "no"
#enable_cinder_backend_lvm: "no"
#enable_cloudkitty: "no"
#enable_congress: "no"