Image goes to saving state when we delete instance just after taking snapshot and remain the state forever
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| OpenStack Compute (nova) |
Low
|
Prateek Arora | ||
| Newton |
Low
|
Chuck Short |
Bug Description
Steps to reproduce
1) nova image-create test test-img & nova delete test
where test is the name of the instance
I get the following message
[stack@localhost compute]$ nova image-create test test-img & nova delete test
[1] 2506
ERROR (ClientException): Unexpected API Error. Please report this at http://
<class 'nova.exception
Request to delete server test has been accepted.
[1]+ Exit 1 nova image-create test test-img
In the nova api logs i can see the following stacktrace
'c59f52ce-
2016-03-09 02:04:25.304 ^[[01;31mERROR nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
^[[01;31m2016-03-09 02:04:25.304 TRACE nova.api.
2016-03-09 02:04:25.311 ^[[00;36mINFO nova.api.
<class 'nova.exception
Changed in nova: | |
assignee: | nobody → Prateek Arora (parora) |
Changed in nova: | |
assignee: | Prateek Arora (parora) → nobody |
assignee: | nobody → Prateek Arora (parora) |
tags: | added: api compute |
Changed in nova: | |
status: | New → Confirmed |
Changed in nova: | |
status: | Confirmed → In Progress |
Fix proposed to branch: master
Review: https:/
Change abandoned by Matt Riedemann (<email address hidden>) on branch: master
Review: https:/
Changed in nova: | |
assignee: | Prateek Arora (parora) → Matt Riedemann (mriedem) |
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit d8e695cb900ad71
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(
in except block and deleting the image which got stuck in saving state.
Closes-Bug: #1555065
Change-Id: If0b918dc951030
Changed in nova: | |
status: | In Progress → Fix Released |
Fix proposed to branch: stable/newton
Review: https:/
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Prateek Arora (parora) |
importance: | Undecided → Medium |
importance: | Medium → Low |
Change abandoned by Chuck Short (<email address hidden>) on branch: stable/newton
Review: https:/
This issue was fixed in the openstack/nova 15.0.0.0b1 development milestone.
Adding "api" tag because of HTTP status code 500. tingTaskStateEr ror" raised from the db layer.
Adding "compute" as I think this is the layer which should handle
the "UnexpectedDele