nova/nova/tests/unit/conductor/tasks
jichenjc c0d0e5ccf6 Handle MessageTimeout to MigrationPreCheckError
There are a few checks before live-migration, if any of the
check failed, the live-migration can't be done. However
during _call_livem_checks_on_host check, because it's a
RPC call ,so it might result in a MessageTimeout exception.
If this occurs, we should safely revert its state,
since no real opperation occured.

This patch translates the MessageTimeout to
MigrationPreCheckError and leverage existing MigrationPreCheckError
processing to revert instance to normal state instead of error

Closes-Bug: 1435633

Change-Id: I8b484abb6650e14e2d225ca5e476d1fa7a6ee990
2015-08-05 20:06:55 +08:00
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_base.py Create class hierarchy for tasks in conductor 2015-07-30 17:35:56 +03:00
test_live_migrate.py Handle MessageTimeout to MigrationPreCheckError 2015-08-05 20:06:55 +08:00
test_migrate.py Create class hierarchy for tasks in conductor 2015-07-30 17:35:56 +03:00