Skip to content
Snippets Groups Projects
Commit 7e462d0a authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

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

parents 3b2fcf76 0ea20955
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
......@@ -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:
......@@ -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
......@@ -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
#########################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment