ImageNotFound is not correctly handled by compute manager

Bug #1632042 reported by Paul Murray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Low
Unassigned
Newton
New
Undecided
Unassigned

Bug Description

When building an instance, if the glance client throws an ImageNotFound exception the compute manager will reschedule the instance without cleaning up any networks that have been built out, leaking any ports that have been created.

The correct behaviour should include cleaning up allocated networks and abandoning the instance creation, leaving it in error.

The relevant exception handling is in nova/compute/manager.py starting at line 1923. The ImageNotFound exception should be included in the list at line 1960 so the BuildAbortException is thrown, which will be caught and handled correctly further up the stack.

Tags: compute
Paul Murray (pmurray)
Changed in nova:
assignee: nobody → Paul Murray (pmurray)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/384649

Changed in nova:
status: New → In Progress
Revision history for this message
Matt Riedemann (mriedem) wrote :

Seems valid, although the API checks that the image is available, so the image would have been deleted between the time the API calls conductor which calls scheduler to pick a host to cast to to build the instance, which seems pretty slim, but we should cleanup yeah.

tags: added: compute
Changed in nova:
importance: Undecided → Medium
importance: Medium → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Paul Murray (<email address hidden>) on branch: master
Review: https://review.openstack.org/384649
Reason: I will not be working on this any more - feel free to pick it up

Revision history for this message
Paul Murray (pmurray) wrote :

I will not be working on this anymore, please feel free to pick it up

Changed in nova:
assignee: Paul Murray (pmurray) → nobody
Changed in nova:
status: In Progress → Confirmed
assignee: nobody → Sivasathurappan Radhakrishnan (siva-radhakrishnan)
Sean Dague (sdague)
Changed in nova:
assignee: Sivasathurappan Radhakrishnan (siva-radhakrishnan) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.