]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix weird change of volume status in re-scheduling
authorwanghao <wanghao749@huawei.com>
Tue, 26 May 2015 09:25:26 +0000 (17:25 +0800)
committerwanghao <wanghao749@huawei.com>
Tue, 23 Jun 2015 09:47:23 +0000 (17:47 +0800)
commit3fb86557d790963bad086334422fe9ec11786077
treed4224f2df05a473984f6b78777bd1ea0739bda7e
parent5f6cbecc5ec5b6ca034290dc7bd04ab7d956cd15
Fix weird change of volume status in re-scheduling

When create a volume failed as some exception, cinder will re-schedule the
creation request, the retry number is 3 in default.
But when re-scheduling, this volume's status was changed like this:

creating ----> error -----> creating------>error------>error/available

This is weird to user, since if this volume is in re-scheduling process,
it's status should always be creating, and then become error or available
at last.

Change-Id: I7a2d40585b5ef515a9400349a1397cba63278c78
Closes-Bug: #1445601
cinder/tests/unit/test_volume.py
cinder/volume/flows/manager/create_volume.py