instance.create.end notification may not be sent if the instance is deleted during boot

Bug #1358795 reported by Andrew Laski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Andrew Laski

Bug Description

If an instance is deleted at a point during the virt driver.spawn() method that doesn't raise an exception, or while the power state is being updated, then the instance.save() which sets the final power state, vm_state, task_state, and launched_at will raise InstanceNotFound or UnexpectedDeletingTaskStateError and cause the final create.end notification to be skipped. This could have implications for billing/usage in a deployment.

Andrew Laski (alaski)
Changed in nova:
importance: Undecided → Medium
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/115339

Changed in nova:
assignee: nobody → Andrew Laski (alaski)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/115339
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=c51be0903f2d20bdf1ea968efc57f4c6b979cb6f
Submitter: Jenkins
Branch: master

commit c51be0903f2d20bdf1ea968efc57f4c6b979cb6f
Author: Andrew Laski <email address hidden>
Date: Tue Aug 19 12:24:51 2014 -0400

    Send create.end notification even if instance is deleted

    There was an unprotected instance.save() call which could raise an
    exception and bypass a create.end notification. This adds a try/except
    block around that call with appropriate handling of the exception.

    Change-Id: I308ee84f6ab2bb37ef6570ff896017615a5bf746
    Closes-bug: #1358795

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → juno-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-3 → 2014.2
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.