commit 90c51902e9ff9fcc23cba00904a0a5d9db6a5d6a
Author: Erlon R. Cruz <email address hidden>
Date: Tue Dec 7 17:39:58 2021 -0300
Fix pre_live_migration rollback
During the pre live migration process, Nova performs most of the
tasks related to the creation and operation of the VM in the destination
host. That is done without interrupting any of the hardware in the source
host. If the pre_live_migration fails, those same operations should be
rolled back.
Currently nova is sharing the _rollback_live_migration for both
live and pre_live migration rollbacks, and that is causing the source
host to try to re-attach network interfaces on the source host where
they weren't actually de-attached.
This patch fixes that by adding a conditional to allow nova to do
different paths for migration and pre_live_migration rollbacks.
Closes-bug: #1944619
Change-Id: I784190ac356695dd508e0ad8ec31d8eaa3ebee56
(cherry picked from commit 63ffba7496182f6f6f49a380f3c639fc3ded9772)
(cherry picked from commit 29b94aa34ad954e617c2a0d6df0809765dced188)
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /836015 /opendev. org/openstack/ nova/commit/ 90c51902e9ff9fc c23cba00904a0a5 d9db6a5d6a
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/xena
commit 90c51902e9ff9fc c23cba00904a0a5 d9db6a5d6a
Author: Erlon R. Cruz <email address hidden>
Date: Tue Dec 7 17:39:58 2021 -0300
Fix pre_live_migration rollback
During the pre live migration process, Nova performs most of the
tasks related to the creation and operation of the VM in the destination
host. That is done without interrupting any of the hardware in the source
host. If the pre_live_migration fails, those same operations should be
rolled back.
Currently nova is sharing the _rollback_ live_migration for both
live and pre_live migration rollbacks, and that is causing the source
host to try to re-attach network interfaces on the source host where
they weren't actually de-attached.
This patch fixes that by adding a conditional to allow nova to do
different paths for migration and pre_live_migration rollbacks.
Closes-bug: #1944619 dd508e0ad8ec31d 8eaa3ebee56 f6f49a380f3c639 fc3ded9772) 617c2a0d6df0809 765dced188)
Change-Id: I784190ac356695
(cherry picked from commit 63ffba7496182f6
(cherry picked from commit 29b94aa34ad954e