nova/nova/compute
Stephen Finucane f50bd6e657 Unplug VIFs as part of cleanup of networks
If an instance fails to build, which is possible for a variety of
reasons, we may end up in a situation where we have remnants of a
plugged VIF (typically files) left on the host. This is because we
cleanup from the neutron perspective but don't attempt to unplug the
VIF, a call which may have many side-effects depending on the VIF
driver. Resolve this by always attempting to unplug VIFs as part of the
network cleanup.

A now invalid note is also removed and a unit test corrected.

Conflicts:
	nova/tests/unit/compute/test_compute_mgr.py

NOTE(stephenfin): Conflict is because we're missing change
Ic5cab99944df9e501ba2032eb96911c36304494d ("Port binding based on events
during live migration") which we don't want to backport.

Closes-Bug: #1831771
Related-Bug: #1830081
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Change-Id: Ibdbde4ed460a99b0cbe0d6b76e0e5b3c0650f9d9
(cherry picked from commit b3e14931d6)
(cherry picked from commit 3e935325a8)
(cherry picked from commit 265fd4f6bd)
(cherry picked from commit 85521691a8)
2020-03-27 18:02:50 +00:00
..
monitors Remove translation of log messages 2017-06-09 09:06:16 +00:00
__init__.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
api.py Merge "Stop logging traceback when skipping quiesce" into stable/queens 2019-07-01 20:27:48 +00:00
build_results.py Compute Add build_instance hook in compute manager 2014-12-04 10:12:00 -05:00
cells_api.py Fix missing marker functions 2018-01-25 03:37:48 +00:00
claims.py [Trivial] docstrings, typos, minor refactoring 2017-08-28 08:33:58 -05:00
flavors.py Add microversion to allow setting flavor description 2017-11-15 22:10:39 +00:00
instance_actions.py Add instance action record for snapshot instances 2017-12-11 17:46:38 +08:00
instance_list.py Split instance_list into instance and multi_cell 2017-12-04 10:59:55 +08:00
manager.py Unplug VIFs as part of cleanup of networks 2020-03-27 18:02:50 +00:00
migration_list.py Fix comment in MigrationSortContext 2018-01-10 14:04:23 -05:00
multi_cell_list.py Make nova list and migration-list ignore down cells 2018-06-26 18:44:47 +02:00
power_state.py Removed enum duplication from nova.compute 2016-09-02 07:30:44 +00:00
provider_tree.py ProviderTree.get_provider_uuids: Top-down ordering 2018-01-31 08:35:35 -06:00
resource_tracker.py rt: only map compute node if we created it 2019-10-23 11:57:45 -04:00
rpcapi.py Fix up compute rpcapi version for pike release 2018-10-23 15:03:11 +11:00
stats.py Change consecutive build failure limit to a weigher 2018-06-07 07:17:51 -07:00
task_states.py Fix resource tracker updates during instance evacuation 2019-03-14 10:30:08 +08:00
utils.py Replace non-nova server fault message 2019-08-06 12:02:34 -04:00
vm_states.py Removed enum duplication from nova.compute 2016-09-02 07:30:44 +00:00