Allow Cinder to use ZFSSA iSCSI volume service
Added configuration to enable Oracle ZFS Storage Appliance: https://docs.openstack.org/cinder/pike/configuration/block-storage/drivers/zfssa-iscsi-driver.html Change-Id: Id5807f0d4567e16a68283cace7e126eddc4dea20 Implements: blueprint zfssa-cinder-support
This commit is contained in:
parent
3f6eaefeaf
commit
73225d285c
@ -333,9 +333,10 @@ enable_cinder: "no"
|
|||||||
enable_cinder_backup: "yes"
|
enable_cinder_backup: "yes"
|
||||||
enable_cinder_backend_hnas_iscsi: "no"
|
enable_cinder_backend_hnas_iscsi: "no"
|
||||||
enable_cinder_backend_hnas_nfs: "no"
|
enable_cinder_backend_hnas_nfs: "no"
|
||||||
enable_cinder_backend_iscsi: "no"
|
enable_cinder_backend_iscsi: "{{ enable_cinder_backend_lvm | bool or enable_cinder_backend_hnas_iscsi | bool or enable_cinder_backend_zfssa_iscsi | bool }}"
|
||||||
enable_cinder_backend_lvm: "no"
|
enable_cinder_backend_lvm: "no"
|
||||||
enable_cinder_backend_nfs: "no"
|
enable_cinder_backend_nfs: "no"
|
||||||
|
enable_cinder_backend_zfssa_iscsi: "no"
|
||||||
enable_cloudkitty: "no"
|
enable_cloudkitty: "no"
|
||||||
enable_congress: "no"
|
enable_congress: "no"
|
||||||
enable_designate: "no"
|
enable_designate: "no"
|
||||||
@ -366,7 +367,7 @@ enable_horizon_zun: "{{ enable_zun | bool }}"
|
|||||||
enable_hyperv: "no"
|
enable_hyperv: "no"
|
||||||
enable_influxdb: "no"
|
enable_influxdb: "no"
|
||||||
enable_ironic: "no"
|
enable_ironic: "no"
|
||||||
enable_iscsid: "{{ enable_cinder_backend_iscsi | bool or enable_cinder_backend_lvm | bool or enable_ironic | bool }}"
|
enable_iscsid: "{{ enable_cinder_backend_iscsi | bool or enable_ironic | bool }}"
|
||||||
enable_karbor: "no"
|
enable_karbor: "no"
|
||||||
enable_kuryr: "no"
|
enable_kuryr: "no"
|
||||||
enable_magnum: "no"
|
enable_magnum: "no"
|
||||||
|
@ -136,6 +136,8 @@ cinder_backends:
|
|||||||
enabled: "{{ enable_cinder_backend_hnas_nfs | bool }}"
|
enabled: "{{ enable_cinder_backend_hnas_nfs | bool }}"
|
||||||
- name: "vmwarevc-vmdk"
|
- name: "vmwarevc-vmdk"
|
||||||
enabled: "{{ cinder_backend_vmwarevc_vmdk | bool }}"
|
enabled: "{{ cinder_backend_vmwarevc_vmdk | bool }}"
|
||||||
|
- name: "zfssa-iscsi"
|
||||||
|
enabled: "{{ enable_cinder_backend_zfssa_iscsi | bool }}"
|
||||||
|
|
||||||
cinder_enabled_backends: "{{ cinder_backends|selectattr('enabled', 'equalto', true)|list }}"
|
cinder_enabled_backends: "{{ cinder_backends|selectattr('enabled', 'equalto', true)|list }}"
|
||||||
cinder_iscsi_helper: "tgtadm"
|
cinder_iscsi_helper: "tgtadm"
|
||||||
@ -159,3 +161,16 @@ hnas_nfs_password:
|
|||||||
hnas_nfs_mgmt_ip0:
|
hnas_nfs_mgmt_ip0:
|
||||||
hnas_nfs_svc0_volume_type:
|
hnas_nfs_svc0_volume_type:
|
||||||
hnas_nfs_svc0_hdp:
|
hnas_nfs_svc0_hdp:
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Oracle ZFS Storage Appliance iSCSI driver
|
||||||
|
#############################################
|
||||||
|
zfssa_iscsi_backend: "zfssa_iscsi_backend"
|
||||||
|
zfssa_iscsi_san_ip:
|
||||||
|
zfssa_iscsi_login:
|
||||||
|
zfssa_iscsi_password:
|
||||||
|
zfssa_iscsi_pool:
|
||||||
|
zfssa_iscsi_project:
|
||||||
|
zfssa_iscsi_initiator_group:
|
||||||
|
zfssa_iscsi_target_portal:
|
||||||
|
zfssa_iscsi_target_interfaces:
|
||||||
|
@ -162,6 +162,20 @@ vmware_cluster_name = {{ vmware_vcenter_cluster_name }}
|
|||||||
vmware_insecure = True
|
vmware_insecure = True
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if enable_cinder_backend_zfssa_iscsi | bool %}
|
||||||
|
[zfssa-iscsi]
|
||||||
|
volume_backend_name = {{ zfssa_iscsi_backend }}
|
||||||
|
volume_driver = cinder.volume.drivers.zfssa.zfssaiscsi.ZFSSAISCSIDriver
|
||||||
|
san_ip = {{ zfssa_iscsi_san_ip }}
|
||||||
|
san_login = {{ zfssa_iscsi_login }}
|
||||||
|
san_password = {{ zfssa_iscsi_password }}
|
||||||
|
zfssa_pool = {{ zfssa_iscsi_pool }}
|
||||||
|
zfssa_project = {{ zfssa_iscsi_project }}
|
||||||
|
zfssa_initiator_group = {{ zfssa_iscsi_initiator_group }}
|
||||||
|
zfssa_target_portal = {{ zfssa_iscsi_target_portal }}
|
||||||
|
zfssa_target_interfaces = {{ zfssa_iscsi_target_interfaces }}
|
||||||
|
{% 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
|
||||||
|
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Allow cinder-volume to use Oracle ZFS Storage Appliance iSCSI backend.
|
Loading…
Reference in New Issue
Block a user