From e825ebbe26c4382d4e66e5b1f0421e8a261f41d4 Mon Sep 17 00:00:00 2001 From: Skyler Berg Date: Thu, 9 Jul 2015 11:36:36 -0700 Subject: [PATCH] Port Tintri driver to ABC driver model The Tintri driver implements methods for some abstract classes not inherited with NfsDriver. This patch makes the driver inherit from all the classes that it implements. Change-Id: I36c3ac5368e99e367e6541cec8198fa475f1dffe Partially-implements: blueprint abc-driver-update --- cinder/volume/drivers/tintri.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cinder/volume/drivers/tintri.py b/cinder/volume/drivers/tintri.py index 25828c16e..7a74b6304 100644 --- a/cinder/volume/drivers/tintri.py +++ b/cinder/volume/drivers/tintri.py @@ -33,6 +33,7 @@ from cinder import exception from cinder import utils from cinder.i18n import _, _LE, _LI, _LW from cinder.image import image_utils +from cinder.volume import driver from cinder.volume.drivers import nfs LOG = logging.getLogger(__name__) @@ -61,7 +62,11 @@ CONF = cfg.CONF CONF.register_opts(tintri_options) -class TintriDriver(nfs.NfsDriver): +class TintriDriver(driver.ManageableVD, + driver.CloneableVD, + driver.CloneableImageVD, + driver.SnapshotVD, + nfs.NfsDriver): """Base class for Tintri driver.""" VENDOR = 'Tintri' -- 2.45.2