]> 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)
committerJay S. Bryant <jsbryant@us.ibm.com>
Tue, 15 Apr 2014 16:29:15 +0000 (11:29 -0500)
commit24eb8234ff4b907b8c88f26fb0c427cb7a452140
tree8bcc463b6e00f4132ab83b7dd026d1ec71e0feff
parentf50c884e223f4b7a6d68026a4096ced23a9496d5
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
cinder/volume/drivers/ibm/storwize_svc/__init__.py
cinder/volume/drivers/ibm/storwize_svc/helpers.py