]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Update Pure REST API supported version numbers in Pure driver
authorsdodsley <simon@purestorage.com>
Wed, 9 Dec 2015 18:04:43 +0000 (13:04 -0500)
committersdodsley <simon@purestorage.com>
Wed, 9 Dec 2015 22:17:02 +0000 (17:17 -0500)
Add 1.5 as a supported REST API version for the driver in general and for the
snap management code required version numbers.

REST API v1.5 is available in Purity versions >= 4.6.0

Change-Id: Id509b0b59843d13ce1a1925809190121da296ef9
Closes-Bug: 1524434

cinder/volume/drivers/pure.py

index 66c6c8214f7d34a39ce9a7b0ee8e931be30a9967..7130ab629d8ec532453bbe5b50c92e66aef9477b 100644 (file)
@@ -63,7 +63,7 @@ ERR_MSG_PENDING_ERADICATION = "has been destroyed"
 CONNECT_LOCK_NAME = 'PureVolumeDriver_connect'
 
 UNMANAGED_SUFFIX = '-unmanaged'
-MANAGE_SNAP_REQUIRED_API_VERSIONS = ['1.4']
+MANAGE_SNAP_REQUIRED_API_VERSIONS = ['1.4', '1.5']
 
 
 def log_debug_trace(f):
@@ -82,7 +82,7 @@ def log_debug_trace(f):
 class PureBaseVolumeDriver(san.SanDriver):
     """Performs volume management on Pure Storage FlashArray."""
 
-    SUPPORTED_REST_API_VERSIONS = ['1.2', '1.3', '1.4']
+    SUPPORTED_REST_API_VERSIONS = ['1.2', '1.3', '1.4', '1.5']
 
     def __init__(self, *args, **kwargs):
         execute = kwargs.pop("execute", utils.execute)