Comment 4 for bug 1056601

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/13702
Committed: http://github.com/openstack/nova/commit/8c9c380935b4aac40269754a291134c130bccec9
Submitter: Jenkins
Branch: master

commit 8c9c380935b4aac40269754a291134c130bccec9
Author: Chris Behrens <email address hidden>
Date: Wed Sep 26 10:46:49 2012 +0000

    Fix issues deleting instances in RESIZED state

    DB API call migration_get_by_instance_and_status requires admin
    context...and it'll also raise an exception if no migration matches.

    _delete() in compute/api was not using admin context, and was checking
    for a false return from the DB call vs checking for an exception.

    Added a test that covers both problems.

    Fixes bug 1056601

    Change-Id: Ib3c631dccbb2776761cf5acb8bab1d814bf3e282