]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
leave re-scheduled volume status to creating
authorLiang Chen <cbjchen@cn.ibm.com>
Thu, 4 Apr 2013 15:39:54 +0000 (23:39 +0800)
committerLiang Chen <cbjchen@cn.ibm.com>
Thu, 4 Apr 2013 15:39:54 +0000 (23:39 +0800)
A re-scheduled volume should not be exported and set to available

Fixes bug #1159027

Change-Id: Ie61d9132ce1bd6461d5e4d9836424ebf14100389

cinder/volume/manager.py

index 8a90b0c2567900aa02aa2b6e45171076ca312481..0f7de446ad50d2bde6820ac50201faf50cfc57e0 100644 (file)
@@ -260,6 +260,7 @@ class VolumeManager(manager.SchedulerDependentManager):
                                             snapshot_id, image_id,
                                             request_spec, filter_properties,
                                             allow_reschedule)
+                return
 
             if model_update:
                 volume_ref = self.db.volume_update(