diff options
author | Vishvananda Ishaya <vishvananda@gmail.com> | 2012-08-17 15:03:46 -0700 |
---|---|---|
committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2012-08-17 16:12:28 -0700 |
commit | 1f98e28a80077760394201f79de04a0924b9ad3f (patch) | |
tree | a8a53d561827363a3e7f67773f4a06f92e556d91 /tools/lintstack.py | |
parent | a10be151ad9f62bb916498c8dae42e4b54dfc779 (diff) | |
download | nova-1f98e28a80077760394201f79de04a0924b9ad3f.tar.gz nova-1f98e28a80077760394201f79de04a0924b9ad3f.tar.xz nova-1f98e28a80077760394201f79de04a0924b9ad3f.zip |
Makes sure instance deletion ok with deleted data
Commit 5ad1dea4 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
Diffstat (limited to 'tools/lintstack.py')
0 files changed, 0 insertions, 0 deletions