From: Kurt Martin Date: Tue, 2 Jun 2015 22:30:00 +0000 (-0700) Subject: Deprecate the HPLeftHandISCSIDriver CLIQ driver X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=f5694311bfd98d18b47873c70670d69e20b1c7aa;p=openstack-build%2Fcinder-build.git Deprecate the HPLeftHandISCSIDriver CLIQ driver This patch adds a deprecation message to the HPLeftHandISCSIDriver CLIQ driver with the plan of removing it in the 2016.1 release. The HPLeftHandISCSIDriver REST based driver should be used instead. Change-Id: I9eb1fc71d7be4848f116e0585964af97cae210b5 --- diff --git a/cinder/volume/drivers/san/hp/hp_lefthand_cliq_proxy.py b/cinder/volume/drivers/san/hp/hp_lefthand_cliq_proxy.py index 25e58d32b..884e8d6d0 100644 --- a/cinder/volume/drivers/san/hp/hp_lefthand_cliq_proxy.py +++ b/cinder/volume/drivers/san/hp/hp_lefthand_cliq_proxy.py @@ -26,7 +26,7 @@ from oslo_log import log as logging from oslo_utils import units from cinder import exception -from cinder.i18n import _, _LE +from cinder.i18n import _, _LE, _LW from cinder.volume.drivers.san import san @@ -83,6 +83,11 @@ class HPLeftHandCLIQProxy(san.SanISCSIDriver): def __init__(self, *args, **kwargs): super(HPLeftHandCLIQProxy, self).__init__(*args, **kwargs) self.cluster_vip = None + LOG.warning(_LW('The HPLeftHandISCSIDriver CLIQ driver has been ' + 'DEPRECATED as of the 2015.2 release. This driver ' + 'will be removed in the 2016.1 release. Please use ' + 'the HPLeftHandISCSIDriver REST based driver ' + 'instead.')) def do_setup(self, context): pass