nova/nova/tests/functional/compute
Artom Lifshitz 5513f48dea Handle volume API failure in _post_live_migration
Previously, if the call to Cinder in _post_live_migration failed, the
exception went unhandled and prevented us from calling
post_live_migration_at_destination - which is where we set instance
host and task state. This left the system in an inconsistent state,
with the instance actually running on the destination, but
with instance.host still set to the source. This patch simply wraps
the Cinder API calls in a try/except, and logs the exception instead
of blowing up. While "dumb", this has the virtue of being simple and
minimizing potential side effects. A comprehensive refactoring of
when, where and how we set instance host and task state to try to
guarantee consistency is left as a TODO.

Partial-bug: 1628606
Change-Id: Icb0bdaf454935b3713c35339394d260b33520de5
2018-10-15 19:47:51 -04:00
..
__init__.py virt: implement get_inventory() for Ironic 2017-03-15 21:49:25 +00:00
test_host_api.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_instance_list.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_live_migration.py Handle volume API failure in _post_live_migration 2018-10-15 19:47:51 -04:00
test_migration_list.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_resource_tracker.py remove virt driver requires_allocation_refresh 2018-09-13 18:34:11 -04:00