From 9885cb2454d78a46c9626547916d7ed8ed7fa206 Mon Sep 17 00:00:00 2001 From: Adriano Rosso Date: Fri, 23 Dec 2016 09:56:38 -0200 Subject: [PATCH] HNAS: Deprecate HNAS iSCSI driver Due to some known limitations when working with iSCSI protocol, we decided to deprecate the Hitachi NAS iSCSI driver. The driver will be removed on P release. Hitachi NAS NFS driver will still be supported. Co-Authored-By: Erlon Cruz DocImpact Change-Id: I413bcc5b38de5a023bfb23b0659639036ced8d0f --- cinder/volume/drivers/hitachi/hnas_iscsi.py | 6 ++++++ .../hnas-deprecate-iscsi-driver-cd521b3a2ba948f3.yaml | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 releasenotes/notes/hnas-deprecate-iscsi-driver-cd521b3a2ba948f3.yaml diff --git a/cinder/volume/drivers/hitachi/hnas_iscsi.py b/cinder/volume/drivers/hitachi/hnas_iscsi.py index 4dc789b7a62..2dcb5abe3e6 100644 --- a/cinder/volume/drivers/hitachi/hnas_iscsi.py +++ b/cinder/volume/drivers/hitachi/hnas_iscsi.py @@ -21,6 +21,7 @@ iSCSI Cinder Volume driver for Hitachi Unified Storage (HUS-HNAS) platform. from oslo_concurrency import processutils from oslo_config import cfg from oslo_log import log as logging +from oslo_log import versionutils import six from cinder import exception @@ -100,9 +101,14 @@ class HNASISCSIDriver(driver.ISCSIDriver): CI_WIKI_NAME = "Hitachi_HNAS_CI" VERSION = HNAS_ISCSI_VERSION + SUPPORTED = False + def __init__(self, *args, **kwargs): """Initializes and reads different config parameters.""" super(HNASISCSIDriver, self).__init__(*args, **kwargs) + msg = _("The Hitachi NAS iSCSI driver is deprecated and will be " + "removed in a future release.") + versionutils.report_deprecated_feature(LOG, msg) self.configuration = kwargs.get('configuration', None) self.context = {} self.config = {} diff --git a/releasenotes/notes/hnas-deprecate-iscsi-driver-cd521b3a2ba948f3.yaml b/releasenotes/notes/hnas-deprecate-iscsi-driver-cd521b3a2ba948f3.yaml new file mode 100644 index 00000000000..7cd9667c362 --- /dev/null +++ b/releasenotes/notes/hnas-deprecate-iscsi-driver-cd521b3a2ba948f3.yaml @@ -0,0 +1,10 @@ +--- +upgrade: + - The Hitachi NAS iSCSI driver has been marked as unsupported and is + now deprecated. enable_unsupported_drivers will need to be set to True + in cinder.conf to continue to use it. +deprecations: + - The Hitachi NAS iSCSI driver has been marked as unsupported and is now + deprecated. enable_unsupported_drivers will need to be set to True + in cinder.conf to continue to use it. The driver will be removed in the + next release.