commit 017e853b950ddc10dab4ebab37e64cece40f274f
Author: John Garbutt <email address hidden>
Date: Tue Feb 7 19:12:50 2017 +0000
Stop failed live-migrates getting stuck migrating
When there are failures in driver.cleanup, we are seeing live-migrations
that get stuck in the live-migrating state. While there has been a patch
to stop the cause listed in the bug this closes, there are other
failures (such as a token timeout when talking to cinder or neutron)
that could trigger this same failure mode.
When we hit an error this late in live-migration, it should be a very
rare event, so its best to just put the instance and migration into an
error state, and help alert both the operator and API user to the
failure that has occurred.
For backport into Newton, 'migrate_instance_start' had to be patched
in the unit test (nova/tests/unit/compute/test_compute.py).
Closes-Bug: #1662626
Change-Id: Idfdce9e7dd8106af01db0358ada15737cb846395
(cherry picked from commit b56f8fc2d1392f4675a5baae0977e4817a362159)
(cherry picked from commit 012fa9353ff18d3d52120fd42a2ec25dbc5a02b7)
Reviewed: https:/ /review. openstack. org/470387 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=017e853b950 ddc10dab4ebab37 e64cece40f274f
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 017e853b950ddc1 0dab4ebab37e64c ece40f274f
Author: John Garbutt <email address hidden>
Date: Tue Feb 7 19:12:50 2017 +0000
Stop failed live-migrates getting stuck migrating
When there are failures in driver.cleanup, we are seeing live-migrations
that get stuck in the live-migrating state. While there has been a patch
to stop the cause listed in the bug this closes, there are other
failures (such as a token timeout when talking to cinder or neutron)
that could trigger this same failure mode.
When we hit an error this late in live-migration, it should be a very
rare event, so its best to just put the instance and migration into an
error state, and help alert both the operator and API user to the
failure that has occurred.
For backport into Newton, 'migrate_ instance_ start' had to be patched unit/compute/ test_compute. py).
in the unit test (nova/tests/
Closes-Bug: #1662626
Change-Id: Idfdce9e7dd8106 af01db0358ada15 737cb846395 675a5baae0977e4 817a362159) d52120fd42a2ec2 5dbc5a02b7)
(cherry picked from commit b56f8fc2d1392f4
(cherry picked from commit 012fa9353ff18d3