commit fcc937966056d86956cb403a68a81cb9f4fbd0b1
Author: Edward Hope-Morley <email address hidden>
Date: Tue Oct 8 20:41:26 2013 +0100
Fix image killed after deletion
If an image upload fails after the image was deleted during
the upload, the image status currently gets set to 'deleted'
then 'killed' once the upload fails. This patch fixes this so
that if the image was deleted it stays in 'deleted' state.
Permitted from_states for transitioning to 'killed' are
'queued' and 'saving'. We now enforce this transition and
raise an exception if it is violated.
Closes-Bug: 1236868
Co-authored-by: Hirofumi Ichihara <email address hidden>
Co-authored-by: Zhi Yan Liu <email address hidden>
(cherry picked from commit 345d8f7766aa06fa6654382efc480da493a3f2c8)
Reviewed: https:/ /review. openstack. org/114299 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=fcc93796605 6d86956cb403a68 a81cb9f4fbd0b1
Committed: https:/
Submitter: Jenkins
Branch: stable/icehouse
commit fcc937966056d86 956cb403a68a81c b9f4fbd0b1
Author: Edward Hope-Morley <email address hidden>
Date: Tue Oct 8 20:41:26 2013 +0100
Fix image killed after deletion
If an image upload fails after the image was deleted during
the upload, the image status currently gets set to 'deleted'
then 'killed' once the upload fails. This patch fixes this so
that if the image was deleted it stays in 'deleted' state.
Permitted from_states for transitioning to 'killed' are
'queued' and 'saving'. We now enforce this transition and
raise an exception if it is violated.
Closes-Bug: 1236868 a6654382efc480d a493a3f2c8)
Co-authored-by: Hirofumi Ichihara <email address hidden>
Co-authored-by: Zhi Yan Liu <email address hidden>
(cherry picked from commit 345d8f7766aa06f
Conflicts:
glance/ api/v1/ images. py api/v1/ upload_ utils.py
glance/
Change-Id: I5552220ce264c0 d09780bbd0eb761 0e7cff0b820