nova/nova/tests
Matt Riedemann 0b92c7e741 Fix hard-delete of instance with soft-deleted referential constraints
When hard-deleting an instance we first delete related records
but the code was not taking into account soft-deleted related
records which will result in the instance delete failing due to
a referential constraint because soft-deleted records are not
really deleted when it comes to table constraints.

This fixes the issue by simply passing read_deleted='yes' to the
related record model query in the hard delete path.

The related unit test is updated to cover this scenario and a
typo in that same test is also fixed here.

Change-Id: I9fc5a9cc40ceffc450c1fde1df7fb36581e9cc94
Closes-Bug: #1830438
2019-05-29 17:27:00 -04:00
..
functional Do not start nova-network in the notification func test 2019-05-23 13:05:07 +02:00
live_migration/hooks Replace git.openstack.org URLs with opendev.org URLs 2019-04-24 13:59:57 +08:00
unit Fix hard-delete of instance with soft-deleted referential constraints 2019-05-29 17:27:00 -04:00
__init__.py
fixtures.py Merge "Test macvtap port with resource request" 2019-05-16 23:08:14 +00:00
json_ref.py Transform instance.exists notification 2018-06-05 12:51:30 +00:00