]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Deprecate the HPLeftHandISCSIDriver CLIQ driver
authorKurt Martin <kurt.f.martin@hp.com>
Tue, 2 Jun 2015 22:30:00 +0000 (15:30 -0700)
committerWalter A. Boring IV (hemna) <walter.boring@hp.com>
Wed, 3 Jun 2015 15:29:25 +0000 (15:29 +0000)
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

cinder/volume/drivers/san/hp/hp_lefthand_cliq_proxy.py

index 25e58d32b67ff4e59aae567d7e59790928e8afd9..884e8d6d0db2bb15e856b1dbfda2e4a4b3a8c380 100644 (file)
@@ -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