Merge "HNAS: Deprecate HNAS iSCSI driver"

This commit is contained in:
Jenkins 2016-12-28 01:56:43 +00:00 committed by Gerrit Code Review
commit c3c560296d
2 changed files with 16 additions and 0 deletions

View File

@ -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 = {}

View File

@ -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.