]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix create volume from image.
authorMate Lakat <mate.lakat@citrix.com>
Mon, 18 Feb 2013 15:33:28 +0000 (15:33 +0000)
committerMate Lakat <mate.lakat@citrix.com>
Tue, 19 Feb 2013 09:45:07 +0000 (09:45 +0000)
commit8466bb3411bb82411fe51ef86e4c0080678bf753
treeb6ec4e2825d7a4e12dbca246a0fb015d7834e803
parente1815e867344d0eee0304c5bb19de98f0dcfc1c5
Fix create volume from image.

Fix for bug 1129199

During creating a volume from an image, the volume status changed
from creating to active, skipping the download phase. This bug was most
likely introduced during:
https://review.openstack.org/20514
This patch fixes the issue by change image_location back to image_id at
the correct place.
This patch also fixes an error in the exception handling, and the update
of the volume status after creation.

Change-Id: Ib9b647031c029387b776c27f9233388bd2c67e9c
cinder/volume/manager.py