Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 (cherry picked from commit 8c9c380)
- Loading branch information
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters