]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Add new exception to retryables in SolidFire driver
authorJohn Griffith <john.griffith8@gmail.com>
Mon, 4 May 2015 17:31:15 +0000 (11:31 -0600)
committerJohn Griffith <john.griffith8@gmail.com>
Sat, 9 May 2015 15:02:04 +0000 (15:02 +0000)
Newer versions of SolidFire Element OS introduce an
internal snapshot mechanism during cloning that also
includes a new exception (xNotReadyForIO).

This can be encountered when programmatically cloning
hundreds of large volumes. Typically this will succeed
on a retry of the clone command, so we should add this
new exception to our list of retryable exceptions in
the SolidFire driver.

Change-Id: I4e1ddf02087499b4efff6eabf2310a245bef93c9
Closes-Bug: #1451505

cinder/volume/drivers/solidfire.py

index e50643302e11c427da4faafbb16d9b0fabb93729..de7b9044e01ed28502f40d7cd4e791601e50315c 100644 (file)
@@ -137,7 +137,8 @@ class SolidFireDriver(san.SanISCSIDriver):
                         'xMaxSnapshotsPerVolumeExceeded',
                         'xMaxClonesPerVolumeExceeded',
                         'xMaxSnapshotsPerNodeExceeded',
-                        'xMaxClonesPerNodeExceeded']
+                        'xMaxClonesPerNodeExceeded',
+                        'xNotReadyForIO']
 
     def __init__(self, *args, **kwargs):
         super(SolidFireDriver, self).__init__(*args, **kwargs)