Delete traces of in-progress snapshot on VM being deleted
When user tries to create snapshot of instance and at the same time
if another request tries to delete the instance, at that time image
goes in saving status for forever because of race between instance
delete and snapshot requests.
Caught exceptions(InstanceNotFound and UnexpectedDeletingTaskStateError)
in except block and deleting the image which got stuck in saving state.
Reviewed: https:/ /review. openstack. org/294513 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=d8e695cb900 ad71996e6cf9708 94bc2e3f2df8b4
Committed: https:/
Submitter: Jenkins
Branch: master
commit d8e695cb900ad71 996e6cf970894bc 2e3f2df8b4
Author: Prateek Arora <email address hidden>
Date: Fri Mar 18 06:46:43 2016 -0400
Delete traces of in-progress snapshot on VM being deleted
When user tries to create snapshot of instance and at the same time
if another request tries to delete the instance, at that time image
goes in saving status for forever because of race between instance
delete and snapshot requests.
Caught exceptions( InstanceNotFoun d and UnexpectedDelet ingTaskStateErr or)
in except block and deleting the image which got stuck in saving state.
Closes-Bug: #1555065 e6b6ffba1474432 25e0e4a370a
Change-Id: If0b918dc951030