From: Kurt Martin Date: Thu, 20 Aug 2015 15:37:19 +0000 (-0700) Subject: Port 3PAR drivers to use ABCMeta driver model X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=3094d13aa3f79dab5022a6f7af22e8b009a6c1a1;p=openstack-build%2Fcinder-build.git Port 3PAR drivers to use ABCMeta driver model Use new ABCMeta driver model for 3PAR drivers. Change-Id: I51051afbe9aa6135a34dfb927ed0153482810187 Implements: blueprint abc-driver-update --- diff --git a/cinder/volume/drivers/san/hp/hp_3par_fc.py b/cinder/volume/drivers/san/hp/hp_3par_fc.py index 6d9f8cf39..6ea71f8d0 100644 --- a/cinder/volume/drivers/san/hp/hp_3par_fc.py +++ b/cinder/volume/drivers/san/hp/hp_3par_fc.py @@ -38,7 +38,7 @@ from oslo_log import log as logging from cinder import exception from cinder.i18n import _, _LI -import cinder.volume.driver +from cinder.volume import driver from cinder.volume.drivers.san.hp import hp_3par_common as hpcommon from cinder.volume.drivers.san import san from cinder.zonemanager import utils as fczm_utils @@ -46,7 +46,14 @@ from cinder.zonemanager import utils as fczm_utils LOG = logging.getLogger(__name__) -class HP3PARFCDriver(cinder.volume.driver.FibreChannelDriver): +class HP3PARFCDriver(driver.TransferVD, + driver.ManageableVD, + driver.ExtendVD, + driver.CloneableVD, + driver.SnapshotVD, + driver.MigrateVD, + driver.ConsistencyGroupVD, + driver.BaseVD): """OpenStack Fibre Channel driver to enable 3PAR storage array. Version history: @@ -81,10 +88,11 @@ class HP3PARFCDriver(cinder.volume.driver.FibreChannelDriver): 2.0.17 - Improved VLUN creation and deletion logic. #1469816 2.0.18 - Changed initialize_connection to use getHostVLUNs. #1475064 2.0.19 - Adds consistency group support + 2.0.20 - Update driver to use ABC metaclasses """ - VERSION = "2.0.19" + VERSION = "2.0.20" def __init__(self, *args, **kwargs): super(HP3PARFCDriver, self).__init__(*args, **kwargs) diff --git a/cinder/volume/drivers/san/hp/hp_3par_iscsi.py b/cinder/volume/drivers/san/hp/hp_3par_iscsi.py index 65ed73763..54b61479c 100644 --- a/cinder/volume/drivers/san/hp/hp_3par_iscsi.py +++ b/cinder/volume/drivers/san/hp/hp_3par_iscsi.py @@ -40,7 +40,7 @@ import six from cinder import exception from cinder.i18n import _, _LE, _LW -import cinder.volume.driver +from cinder.volume import driver from cinder.volume.drivers.san.hp import hp_3par_common as hpcommon from cinder.volume.drivers.san import san from cinder.volume import utils as volume_utils @@ -51,7 +51,14 @@ CHAP_USER_KEY = "HPQ-cinder-CHAP-name" CHAP_PASS_KEY = "HPQ-cinder-CHAP-secret" -class HP3PARISCSIDriver(cinder.volume.driver.ISCSIDriver): +class HP3PARISCSIDriver(driver.TransferVD, + driver.ManageableVD, + driver.ExtendVD, + driver.CloneableVD, + driver.SnapshotVD, + driver.MigrateVD, + driver.ConsistencyGroupVD, + driver.BaseVD): """OpenStack iSCSI driver to enable 3PAR storage array. Version history: @@ -91,10 +98,11 @@ class HP3PARISCSIDriver(cinder.volume.driver.ISCSIDriver): 2.0.19 - Changed initialize_connection to use getHostVLUNs. #1475064 2.0.20 - Adding changes to support 3PAR iSCSI multipath. 2.0.21 - Adds consistency group support + 2.0.22 - Update driver to use ABC metaclasses """ - VERSION = "2.0.21" + VERSION = "2.0.22" def __init__(self, *args, **kwargs): super(HP3PARISCSIDriver, self).__init__(*args, **kwargs)