Merge "Allow cinder-volume to be configured to use HNAS iscsi"

This commit is contained in:
Jenkins 2017-01-05 14:18:20 +00:00 committed by Gerrit Code Review
commit 7e462d0acc
4 changed files with 32 additions and 0 deletions

View File

@ -265,6 +265,7 @@ enable_central_logging: "no"
enable_ceph: "no"
enable_ceph_rgw: "no"
enable_cinder: "no"
enable_cinder_backend_hnas_iscsi: "no"
enable_cinder_backend_iscsi: "no"
enable_cinder_backend_lvm: "no"
enable_cinder_backend_nfs: "no"

View File

@ -77,5 +77,20 @@ cinder_backends:
- name: "nfs-1"
driver: "nfs"
enabled: "{{ enable_cinder_backend_nfs | bool }}"
- name: "hnas_iscsi"
driver: "iscsi"
enabled: "{{ enable_cinder_backend_hnas_iscsi | bool }}"
cinder_enabled_backends: "{{ cinder_backends|selectattr('enabled', 'equalto', true)|list }}"
#####################
# HNAS iscsi backend
#####################
hnas_volume_backend_name: "hnas_iscsi_backend"
hnas_username:
hnas_password:
hnas_mgmt_ip0:
hnas_svc0_volume_type:
hnas_svc0_hdp:
hnas_svc0_iscsi_ip:

View File

@ -122,5 +122,19 @@ volume_backend_name = nfs-1
nfs_shares_config = /etc/cinder/nfs_shares
{% endif %}
{% if enable_cinder_backend_hnas_iscsi | bool %}
[hnas-iscsi]
volume_driver = cinder.volume.drivers.hitachi.hnas_iscsi.HNASISCSIDriver
volume_backend_name = {{ hnas_volume_backend_name }}
hnas_username = {{ hnas_username }}
hnas_password = {{ hnas_password }}
hnas_mgmt_ip0 = {{ hnas_mgmt_ip0 }}
hnas_chap_enabled = True
hnas_svc0_volume_type = {{ hnas_svc0_volume_type }}
hnas_svc0_hdp = {{ hnas_svc0_hdp }}
hnas_svc0_iscsi_ip = {{ hnas_svc0_iscsi_ip }}
{% endif %}
[privsep_entrypoint]
helper_command=sudo cinder-rootwrap /etc/cinder/rootwrap.conf privsep-helper --config-file /etc/cinder/cinder.conf

View File

@ -123,6 +123,7 @@ kolla_internal_vip_address: "10.10.10.254"
#enable_ceph: "no"
#enable_ceph_rgw: "no"
#enable_cinder: "no"
#enable_cinder_backend_hnas_iscsi: "no"
#enable_cinder_backend_iscsi: "no"
#enable_cinder_backend_lvm: "no"
#enable_cinder_backend_nfs: "no"
@ -226,6 +227,7 @@ kolla_internal_vip_address: "10.10.10.254"
#cinder_backup_share: ""
#cinder_backup_mount_options_nfs: ""
#########################
# Nova - Compute Options
#########################