]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add exception catch if Storwize/SVC driver failed when
authorLi Min Liu <liminliu@cn.ibm.com>
Fri, 11 Apr 2014 02:50:24 +0000 (10:50 +0800)
committerThomas Goirand <thomas@goirand.fr>
Mon, 9 Jun 2014 14:08:50 +0000 (22:08 +0800)
commitd1b8b5f86ff0766284a2bf52712a316fee52a99c
tree2148c716e8cbccff293deb10044eac0899ea0be9
parentcd5b0c8b4f9c4aa43ff9ee546b34eb848aa7a0e2
Add exception catch if Storwize/SVC driver failed when
retyping

If adding a copy for a volume of Storwize/SVC which is under
migration, Storwize/SVC command will fail because the
number of the copies of the volume exceed the limit which
is 2.

Modifying the volume type when adding a copy for the volume,
Storwize/SVC driver will also fail, should add exception catch.

Also add exception catch when getting the volume from the database.
This change is necessary to enable resolving bug 1305550
(https://bugs.launchpad.net/cinder/+bug/1305550 - Failed retype with
driver raised exception should set volume status to "error" ).

Change-Id: I1cf4b6606b5228c8adcb2bde21f345fa979bc13e
Closes-Bug: #1298201
(cherry picked from commit 24eb8234ff4b907b8c88f26fb0c427cb7a452140)
cinder/volume/drivers/ibm/storwize_svc/__init__.py
cinder/volume/drivers/ibm/storwize_svc/helpers.py