nova/nova/tests/unit/conductor
Wen Zhi Yu 08d24b733e Clean up network resources when reschedule fails
During the instance boot (spawn/run) process, neutron ports are
allocated for the instance if necessary. If the instance fails
to spawn (say as a result of a compute host failure), the default
behaviour is to reschedule the instance and leave its networking
resources in-tact for potential reuse on the rescheduled host.
All is good if the instance is successfully rescheduled, but if
the reschedule fails (say no more applicable hosts) the allocated
ports are left as-is and effectively orphaned.

This commit add code to clean up allocated network resources
when the reschedule fails.

Change-Id: Ic670dd4dc192603c2faecf18e14ef59ebca9e420
Closes-Bug: #1510979
2016-01-14 15:59:29 +08:00
..
tasks Modify conductor to use RequestSpec object 2015-12-31 09:36:58 +00:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_conductor.py Clean up network resources when reschedule fails 2016-01-14 15:59:29 +08:00