Allow cinder-volume to be configured to use HNAS nfs
Change-Id: I5910da875eba9f9b9a18d27fcb69bb38ad67bad0
This commit is contained in:
parent
fe3ad83b1d
commit
8b93e9d69d
@ -266,6 +266,7 @@ enable_ceph: "no"
|
||||
enable_ceph_rgw: "no"
|
||||
enable_cinder: "no"
|
||||
enable_cinder_backend_hnas_iscsi: "no"
|
||||
enable_cinder_backend_hnas_nfs: "no"
|
||||
enable_cinder_backend_iscsi: "no"
|
||||
enable_cinder_backend_lvm: "no"
|
||||
enable_cinder_backend_nfs: "no"
|
||||
|
@ -77,20 +77,32 @@ cinder_backends:
|
||||
- name: "nfs-1"
|
||||
driver: "nfs"
|
||||
enabled: "{{ enable_cinder_backend_nfs | bool }}"
|
||||
- name: "hnas_iscsi"
|
||||
driver: "iscsi"
|
||||
- name: "hnas-iscsi"
|
||||
driver: "hnas_iscsi"
|
||||
enabled: "{{ enable_cinder_backend_hnas_iscsi | bool }}"
|
||||
- name: "hnas-nfs"
|
||||
driver: "hnas_nfs"
|
||||
enabled: "{{ enable_cinder_backend_hnas_nfs | 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:
|
||||
#############################################
|
||||
# Hitachi NAS Platform iSCSI and NFS drivers
|
||||
#############################################
|
||||
# iscsi
|
||||
hnas_iscsi_backend: "hnas_iscsi_backend"
|
||||
hnas_iscsi_username:
|
||||
hnas_iscsi_password:
|
||||
hnas_iscsi_mgmt_ip0:
|
||||
hnas_iscsi_svc0_volume_type:
|
||||
hnas_iscsi_svc0_hdp:
|
||||
hnas_iscsi_svc0_ip:
|
||||
|
||||
# nfs
|
||||
hnas_nfs_backend: "hnas_nfs_backend"
|
||||
hnas_nfs_username:
|
||||
hnas_nfs_password:
|
||||
hnas_nfs_mgmt_ip0:
|
||||
hnas_nfs_svc0_volume_type:
|
||||
hnas_nfs_svc0_hdp:
|
||||
|
@ -65,4 +65,4 @@
|
||||
- "{{ node_custom_config }}/cinder/nfs_shares.j2"
|
||||
- "{{ node_custom_config }}/cinder/cinder-volume/nfs_shares.j2"
|
||||
- "{{ node_custom_config }}/cinder/{{ inventory_hostname }}/nfs_shares.j2"
|
||||
skip: "{{ not enable_cinder_backend_nfs | bool }}"
|
||||
skip: "{{ not enable_cinder_backend_nfs | bool and not enable_cinder_backend_hnas_nfs | bool }}"
|
||||
|
@ -125,15 +125,28 @@ nfs_shares_config = /etc/cinder/nfs_shares
|
||||
{% 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 }}
|
||||
volume_backend_name = {{ hnas_iscsi_backend }}
|
||||
hnas_username = {{ hnas_iscsi_username }}
|
||||
hnas_password = {{ hnas_iscsi_password }}
|
||||
hnas_mgmt_ip0 = {{ hnas_iscsi_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 }}
|
||||
hnas_svc0_volume_type = {{ hnas_iscsi_svc0_volume_type }}
|
||||
hnas_svc0_hdp = {{ hnas_iscsi_svc0_hdp }}
|
||||
hnas_svc0_iscsi_ip = {{ hnas_iscsi_svc0_ip }}
|
||||
{% endif %}
|
||||
|
||||
{% if enable_cinder_backend_hnas_nfs | bool %}
|
||||
[hnas-nfs]
|
||||
volume_driver = cinder.volume.drivers.hitachi.hnas_nfs.HNASNFSDriver
|
||||
nfs_shares_config = /home/cinder/nfs_shares
|
||||
volume_backend_name = {{ hnas_nfs_backend }}
|
||||
hnas_username = {{ hnas_nfs_username }}
|
||||
hnas_password = {{ hnas_nfs_password }}
|
||||
hnas_mgmt_ip0 = {{ hnas_nfs_mgmt_ip0 }}
|
||||
|
||||
hnas_svc0_volume_type = {{ hnas_nfs_svc0_volume_type }}
|
||||
hnas_svc0_hdp = {{ hnas_nfs_svc0_hdp }}
|
||||
{% endif %}
|
||||
|
||||
[privsep_entrypoint]
|
||||
|
@ -124,6 +124,7 @@ kolla_internal_vip_address: "10.10.10.254"
|
||||
#enable_ceph_rgw: "no"
|
||||
#enable_cinder: "no"
|
||||
#enable_cinder_backend_hnas_iscsi: "no"
|
||||
#enable_cinder_backend_hnas_nfs: "no"
|
||||
#enable_cinder_backend_iscsi: "no"
|
||||
#enable_cinder_backend_lvm: "no"
|
||||
#enable_cinder_backend_nfs: "no"
|
||||
|
@ -0,0 +1,3 @@
|
||||
---
|
||||
features:
|
||||
- Allow cinder-volume to be configured to use HNAS nfs.
|
Loading…
Reference in New Issue
Block a user