Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Makes sure instance deletion ok with deleted data
Commit 5ad1dea added changed the network deallocation code to work with deleted instances. This was done by setting the context to read deleted records. Unfortunately this was done a little too broadly, leading to a new bug where a deleted floating_ip will cause an instance to not be able to be deleted. This fixes the issue by limiting the use of read_deleted context to only the places it is trying to access the instance record. It adds a test to verify that the code works with a duplicate deleted floating_ip and updates the existing test for a deleted instance to exercise the entire code path. Fixes bug 1038266 Change-Id: I1aef94369e5bcf951e78e89b1eded5305cf36b53
- Loading branch information
1 parent
a10be15
commit 1f98e28
Showing
3 changed files
with
58 additions
and
21 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
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