]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Port LeftHand driver to use ABCMeta driver model
authorKurt Martin <kurt.f.martin@hp.com>
Fri, 19 Jun 2015 00:30:38 +0000 (17:30 -0700)
committerKurt Martin <kurt.f.martin@hp.com>
Fri, 19 Jun 2015 00:30:38 +0000 (17:30 -0700)
Use new ABCMeta driver model for LeftHand driver.
Implements: blueprint abc-driver-update

Change-Id: I4acd1cd711b8718340abd08fdabacb2e4b713b73

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

index 9887dcf1411e664da14c05116802cfb176d58657..1bd35797b91b803eaf409b89ff0485f1835dedf7 100644 (file)
@@ -45,7 +45,14 @@ LOG = logging.getLogger(__name__)
 MIN_CLIENT_VERSION = '1.0.4'
 
 
-class HPLeftHandISCSIDriver(driver.VolumeDriver):
+class HPLeftHandISCSIDriver(driver.TransferVD,
+                            driver.ManageableVD,
+                            driver.ExtendVD,
+                            driver.CloneableVD,
+                            driver.SnapshotVD,
+                            driver.RetypeVD,
+                            driver.MigrateVD,
+                            driver.BaseVD):
     """Executes commands relating to HP/LeftHand SAN ISCSI volumes.
 
     Version history:
@@ -55,10 +62,11 @@ class HPLeftHandISCSIDriver(driver.VolumeDriver):
         1.0.3 - Fix for no handler for logger during tests
         1.0.4 - Removing locks bug #1395953
         1.0.5 - Adding support for manage/unmanage.
-        1.0.6 - Fixed #1432757 Updated minimum client version.
+        1.0.6 - Updated minimum client version. bug #1432757
+        1.0.7 - Update driver to use ABC metaclasses
     """
 
-    VERSION = "1.0.6"
+    VERSION = "1.0.7"
 
     def __init__(self, *args, **kwargs):
         super(HPLeftHandISCSIDriver, self).__init__(*args, **kwargs)