Remove `hnas_iscsi` from the supported storage backends list of Cinder

The Hitachi NAS Platform iSCSI driver was marked as not supported by
Cinder in the Ocata realease[1].

[1] https://review.opendev.org/#/c/444287/

Change-Id: I1a25789374fddaefc57bc59badec06f91ee6a52a
Closes-Bug: #1832821
This commit is contained in:
chenxing 2019-06-14 04:02:07 -04:00 committed by Mark Goddard
parent cb0cb441c2
commit b7ca065edf
9 changed files with 13 additions and 70 deletions

View File

@ -529,9 +529,8 @@ enable_ceph_dashboard: "{{ enable_ceph | bool }}"
enable_chrony: "yes" enable_chrony: "yes"
enable_cinder: "no" enable_cinder: "no"
enable_cinder_backup: "yes" enable_cinder_backup: "yes"
enable_cinder_backend_hnas_iscsi: "no"
enable_cinder_backend_hnas_nfs: "no" enable_cinder_backend_hnas_nfs: "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_iscsi: "{{ enable_cinder_backend_lvm | 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_cinder_backend_zfssa_iscsi: "no"

View File

@ -190,8 +190,6 @@ cinder_backends:
enabled: "{{ enable_cinder_backend_lvm | bool }}" enabled: "{{ enable_cinder_backend_lvm | bool }}"
- name: "nfs-1" - name: "nfs-1"
enabled: "{{ enable_cinder_backend_nfs | bool }}" enabled: "{{ enable_cinder_backend_nfs | bool }}"
- name: "hnas-iscsi"
enabled: "{{ enable_cinder_backend_hnas_iscsi | bool }}"
- name: "hnas-nfs" - name: "hnas-nfs"
enabled: "{{ enable_cinder_backend_hnas_nfs | bool }}" enabled: "{{ enable_cinder_backend_hnas_nfs | bool }}"
- name: "vmwarevc-vmdk" - name: "vmwarevc-vmdk"
@ -216,17 +214,9 @@ cinder_notification_topics:
cinder_enabled_notification_topics: "{{ cinder_notification_topics | selectattr('enabled', 'equalto', true) | list }}" cinder_enabled_notification_topics: "{{ cinder_notification_topics | selectattr('enabled', 'equalto', true) | list }}"
############################################# ##################################
# Hitachi NAS Platform iSCSI and NFS drivers # Hitachi NAS Platform NFS drivers
############################################# ##################################
# iscsi
hnas_iscsi_backend: "hnas_iscsi_backend"
hnas_iscsi_username:
hnas_iscsi_mgmt_ip0:
hnas_iscsi_svc0_volume_type:
hnas_iscsi_svc0_hdp:
hnas_iscsi_svc0_ip:
# nfs # nfs
hnas_nfs_backend: "hnas_nfs_backend" hnas_nfs_backend: "hnas_nfs_backend"
hnas_nfs_username: hnas_nfs_username:

View File

@ -22,7 +22,6 @@
local_action: fail msg="Please enable at least one backend when enabling Cinder" local_action: fail msg="Please enable at least one backend when enabling Cinder"
when: when:
- not skip_cinder_backend_check | bool - not skip_cinder_backend_check | bool
- not enable_cinder_backend_hnas_iscsi | bool
- not enable_cinder_backend_hnas_nfs | bool - not enable_cinder_backend_hnas_nfs | bool
- not enable_cinder_backend_iscsi | bool - not enable_cinder_backend_iscsi | bool
- not enable_cinder_backend_lvm | bool - not enable_cinder_backend_lvm | bool

View File

@ -145,20 +145,6 @@ nas_secure_file_permissions = False
nas_secure_file_operations = False nas_secure_file_operations = False
{% endif %} {% endif %}
{% if enable_cinder_backend_hnas_iscsi | bool %}
[hnas-iscsi]
volume_driver = cinder.volume.drivers.hitachi.hnas_iscsi.HNASISCSIDriver
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_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 %} {% if enable_cinder_backend_hnas_nfs | bool %}
[hnas-nfs] [hnas-nfs]
volume_driver = cinder.volume.drivers.hitachi.hnas_nfs.HNASNFSDriver volume_driver = cinder.volume.drivers.hitachi.hnas_nfs.HNASNFSDriver

View File

@ -54,43 +54,8 @@ The NFS and iSCSI drivers support these operations:
- Manage and unmanage snapshots (HNAS NFS only). - Manage and unmanage snapshots (HNAS NFS only).
Configuration example for Hitachi NAS Platform iSCSI and NFS Configuration example for Hitachi NAS Platform NFS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
iSCSI backend
-------------
Enable cinder hnas backend iscsi in ``/etc/kolla/globals.yml``
.. code-block:: yaml
enable_cinder_backend_hnas_iscsi: "yes"
Create or modify the file ``/etc/kolla/config/cinder.conf`` and add the
contents:
.. path /etc/kolla/config/cinder.conf
.. code-block:: ini
[DEFAULT]
enabled_backends = hnas-iscsi
[hnas-iscsi]
volume_driver = cinder.volume.drivers.hitachi.hnas_iscsi.HNASISCSIDriver
volume_iscsi_backend = hnas_iscsi_backend
hnas_iscsi_username = supervisor
hnas_iscsi_mgmt_ip0 = <hnas_ip>
hnas_chap_enabled = True
hnas_iscsi_svc0_volume_type = iscsi_gold
hnas_iscsi_svc0_hdp = FS-Baremetal1
hnas_iscsi_svc0_iscsi_ip = <svc0_ip>
Then set password for the backend in ``/etc/kolla/passwords.yml``:
.. code-block:: yaml
hnas_iscsi_password: supervisor
NFS backend NFS backend
----------- -----------

View File

@ -11,7 +11,6 @@ Cinder can be deployed using Kolla and supports the following storage
backends: backends:
* ceph * ceph
* hnas_iscsi
* hnas_nfs * hnas_nfs
* iscsi * iscsi
* lvm * lvm

View File

@ -201,7 +201,6 @@ kolla_internal_vip_address: "10.10.10.254"
#enable_chrony: "yes" #enable_chrony: "yes"
#enable_cinder: "no" #enable_cinder: "no"
#enable_cinder_backup: "yes" #enable_cinder_backup: "yes"
#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: "no"
#enable_cinder_backend_lvm: "no" #enable_cinder_backend_lvm: "no"

View File

@ -40,7 +40,6 @@ nsxv3_api_password:
##################### #####################
# Hitachi NAS support # Hitachi NAS support
##################### #####################
hnas_iscsi_password:
hnas_nfs_password: hnas_nfs_password:
###################### ######################

View File

@ -0,0 +1,7 @@
---
deprecations:
- |
Remove the ``hnas_iscsi`` cinder backend. The Hitachi NAS Platform
iSCSI driver was `marked as not supported by Cinder
<https://docs.openstack.org/releasenotes/cinder/ocata.html#deprecation-notes>`_
in the Ocata release.