]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Change the exception type for Storwize/SVC driver
authorLi Min Liu <liminliu@cn.ibm.com>
Tue, 5 Aug 2014 03:39:09 +0000 (11:39 +0800)
committerLi Min Liu <liminliu@cn.ibm.com>
Tue, 5 Aug 2014 07:05:49 +0000 (15:05 +0800)
commit30f399eced8b34b09c088dd180a4a1f9a72acbfc
tree8cb611aed58ea3e77003d879ad6706fbd8ed590e
parent9913f6a4ad412013e210c5715c08898f32c9260f
Change the exception type for Storwize/SVC driver

When create a volume from snapshot or clone a volume,
Storwize/SVC require the same size for the source volume
and target, if not, will raise VolumeDriverException.

For this case, InvalidInput is more appropriate.

Change-Id: I4383c2eb8758077b3029b862dd8b6f982e1850a7
cinder/tests/test_storwize_svc.py
cinder/volume/drivers/ibm/storwize_svc/__init__.py