diff --git a/cinder/volume/drivers/hitachi/hnas_nfs.py b/cinder/volume/drivers/hitachi/hnas_nfs.py index 683deb4c35c..87e02642f0a 100644 --- a/cinder/volume/drivers/hitachi/hnas_nfs.py +++ b/cinder/volume/drivers/hitachi/hnas_nfs.py @@ -24,6 +24,7 @@ import socket from oslo_concurrency import processutils from oslo_config import cfg from oslo_log import log as logging +from oslo_log import versionutils from oslo_utils import units import six @@ -89,7 +90,12 @@ class HNASNFSDriver(nfs.NfsDriver): CI_WIKI_NAME = "Hitachi_HNAS_CI" VERSION = HNAS_NFS_VERSION + SUPPORTED = False + def __init__(self, *args, **kwargs): + msg = _("The Hitachi NAS driver is deprecated and will be " + "removed in a future release.") + versionutils.report_deprecated_feature(LOG, msg) self._execute = None self.context = None self.configuration = kwargs.get('configuration', None) diff --git a/releasenotes/notes/hnas-deprecate-nfs-driver-0d114bbe141b5d90.yaml b/releasenotes/notes/hnas-deprecate-nfs-driver-0d114bbe141b5d90.yaml new file mode 100644 index 00000000000..8a5f3452dc2 --- /dev/null +++ b/releasenotes/notes/hnas-deprecate-nfs-driver-0d114bbe141b5d90.yaml @@ -0,0 +1,5 @@ +--- +deprecations: + - The Hitachi NAS NFS driver has been marked as unsupported and is now + deprecated. enable_unsupported_driver will need to be set to True + in cinder.conf to continue to use it. \ No newline at end of file