nova/nova/tests/functional/compute
Artom Lifshitz cf3c2f391a 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
(cherry picked from commit 5513f48dea)
2018-10-16 20:14:12 -04:00
..
__init__.py virt: implement get_inventory() for Ironic 2017-03-15 21:49:25 +00:00
test_host_api.py Support paging over compute nodes with a uuid marker 2017-06-22 12:47:37 -04:00
test_instance_list.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_live_migration.py Handle volume API failure in _post_live_migration 2018-10-16 20:14:12 -04:00
test_migration_list.py Add cross cell sort support for get_migrations 2018-01-09 15:34:03 -05:00
test_resource_tracker.py Make ResourceTracker.stats node-specific 2018-08-01 11:47:45 -07:00