]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Capture exception when delete a volume detached
authorliu-sheng <liusheng@huawei.com>
Mon, 3 Nov 2014 08:45:22 +0000 (16:45 +0800)
committerliu-sheng <liusheng@huawei.com>
Mon, 3 Nov 2014 08:45:22 +0000 (16:45 +0800)
commitb6375ca0efa5fb9761f7ea2eff9165966189bb0d
tree37bd925a7c6440bef1870988866465b2c84fc882
parent0ecf323641813d7ab6b7da1f8c24cabe4e7c0316
Capture exception when delete a volume detached

Currently, the cinder api validate volume state before validating volume
attach status, so the VolumeAttached exception will never be raised. this
patch change the order of validation to fix this issue.

Change-Id: I41451f5f9d8e60b3cfc1a8004b704285fc3ddc2b
cinder/tests/api/v2/test_volumes.py
cinder/volume/api.py