]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Allow to delete a volume in error_extending status
authorKen'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
Tue, 20 Aug 2013 03:26:36 +0000 (12:26 +0900)
committerKen'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
Wed, 21 Aug 2013 07:03:58 +0000 (16:03 +0900)
commite95a64d17d67ac8e9e5cc01e145deef8b465c5a5
tree1013d9b06f9c312ba1e3357faa6a32e7b39176e5
parentfc705de5e4058efcd9b4f268f1428bc8e673193c
Allow to delete a volume in error_extending status

We must be able to remove "error_extending" volume, because we
cannot retrieve it without changing database status.
If trying to remove the volume, now it fails like the following:

$ cinder delete vol-test01
ERROR: Invalid volume: Volume status must be available or error,
but current status is: error_extending
$

"error_extending" also would be error status, so it is good to
remove the volume.

Fixes bug #1214228

Change-Id: I861e7af75f2c50d4e03ef3680dccde73078b4888
cinder/tests/test_volume.py
cinder/volume/api.py