nova/nova/tests/unit/compute
Alexey Stupnikov 8670ca8bb2 Clean up when queued live migration aborted
This patch solves bug #1949808 and bug #1960412 by tuning
live_migration_abort() function and adding calls to:

- remove placement allocations for live migration;
- remove INACTIVE port bindings against destination compute node;
- restore instance's state.

Related unit test was adjusted and related functional tests were
fixed.

Closes-bug: #1949808
Closes-bug: #1960412
Change-Id: Ic97eff86f580bff67b1f02c8eeb60c4cf4181e6a
(cherry picked from commit 219520d9ce)
2022-04-01 22:01:39 +09:00
..
monitors Do not log a warning about not using compute monitors 2019-04-04 14:32:53 -04:00
provider_config_data Provider Config File: Coding style and test cases improvement 2020-09-01 01:05:34 +00:00
__init__.py
eventlet_utils.py
fake_resource_tracker.py Tests: autospecs all the mock.patch usages 2019-08-19 09:43:10 -05:00
test_api.py Merge "Avoid unbound instance_uuid var during delete" into stable/xena 2022-02-11 16:24:50 +00:00
test_claims.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_compute.py Revert "Revert resize: wait for events according to hybrid plug" 2022-02-09 09:28:50 -05:00
test_compute_mgr.py Clean up when queued live migration aborted 2022-04-01 22:01:39 +09:00
test_compute_utils.py smartnic support - cleanup arqs 2021-08-05 15:58:34 +08:00
test_flavors.py db: Remove constant aliases from 'nova.db.api' 2021-07-05 11:10:09 +01:00
test_host_api.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_instance_list.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_keypairs.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
test_multi_cell_list.py Refactor scatter-gather utility to return exception objects 2018-10-31 15:18:07 -04:00
test_provider_config.py Provider Config File: Coding style and test cases improvement 2020-09-01 01:05:34 +00:00
test_provider_tree.py Add resources dict into _Provider 2019-09-13 08:50:35 +00:00
test_resource_tracker.py Add force kwarg to delete_allocation_for_instance 2021-08-30 06:11:25 +00:00
test_rpcapi.py Remove (almost) all references to 'instance_type' 2021-03-29 12:24:15 +01:00
test_shelve.py Support move ops with extended resource request 2021-08-27 17:59:18 +02:00
test_stats.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_virtapi.py db: Remove 'nova.db.base' module 2021-06-16 10:10:29 +01:00