Allow cinder-volume to be configured to use HNAS iscsi
Change-Id: I6ca1957c1518d8dfe6a15b22e76c0b9a52e2f1c2
This commit is contained in:
parent
dc6467d7f4
commit
0ea2095560
@ -260,6 +260,7 @@ enable_central_logging: "no"
|
|||||||
enable_ceph: "no"
|
enable_ceph: "no"
|
||||||
enable_ceph_rgw: "no"
|
enable_ceph_rgw: "no"
|
||||||
enable_cinder: "no"
|
enable_cinder: "no"
|
||||||
|
enable_cinder_backend_hnas_iscsi: "no"
|
||||||
enable_cinder_backend_iscsi: "no"
|
enable_cinder_backend_iscsi: "no"
|
||||||
enable_cinder_backend_lvm: "no"
|
enable_cinder_backend_lvm: "no"
|
||||||
enable_cinder_backend_nfs: "no"
|
enable_cinder_backend_nfs: "no"
|
||||||
|
@ -77,5 +77,20 @@ cinder_backends:
|
|||||||
- name: "nfs-1"
|
- name: "nfs-1"
|
||||||
driver: "nfs"
|
driver: "nfs"
|
||||||
enabled: "{{ enable_cinder_backend_nfs | bool }}"
|
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 }}"
|
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
|
nfs_shares_config = /etc/cinder/nfs_shares
|
||||||
{% endif %}
|
{% 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]
|
[privsep_entrypoint]
|
||||||
helper_command=sudo cinder-rootwrap /etc/cinder/rootwrap.conf privsep-helper --config-file /etc/cinder/cinder.conf
|
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: "no"
|
||||||
#enable_ceph_rgw: "no"
|
#enable_ceph_rgw: "no"
|
||||||
#enable_cinder: "no"
|
#enable_cinder: "no"
|
||||||
|
#enable_cinder_backend_hnas_iscsi: "no"
|
||||||
#enable_cinder_backend_iscsi: "no"
|
#enable_cinder_backend_iscsi: "no"
|
||||||
#enable_cinder_backend_lvm: "no"
|
#enable_cinder_backend_lvm: "no"
|
||||||
#enable_cinder_backend_nfs: "no"
|
#enable_cinder_backend_nfs: "no"
|
||||||
@ -220,6 +221,7 @@ kolla_internal_vip_address: "10.10.10.254"
|
|||||||
#cinder_backup_share: ""
|
#cinder_backup_share: ""
|
||||||
#cinder_backup_mount_options_nfs: ""
|
#cinder_backup_mount_options_nfs: ""
|
||||||
|
|
||||||
|
|
||||||
#########################
|
#########################
|
||||||
# Nova - Compute Options
|
# Nova - Compute Options
|
||||||
#########################
|
#########################
|
||||||
|
Loading…
Reference in New Issue
Block a user