Commit 29b94aa
committed
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 63ffba7)1 parent 3402aa7 commit 29b94aa
File tree
4 files changed
+27
-13
lines changed- nova
- compute
- tests
- functional/regressions
- unit/compute
- releasenotes/notes
4 files changed
+27
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8413 | 8413 | | |
8414 | 8414 | | |
8415 | 8415 | | |
8416 | | - | |
| 8416 | + | |
| 8417 | + | |
8417 | 8418 | | |
8418 | 8419 | | |
8419 | 8420 | | |
| |||
9167 | 9168 | | |
9168 | 9169 | | |
9169 | 9170 | | |
9170 | | - | |
| 9171 | + | |
| 9172 | + | |
9171 | 9173 | | |
9172 | 9174 | | |
9173 | 9175 | | |
| |||
9217 | 9219 | | |
9218 | 9220 | | |
9219 | 9221 | | |
9220 | | - | |
9221 | | - | |
| 9222 | + | |
| 9223 | + | |
| 9224 | + | |
| 9225 | + | |
| 9226 | + | |
| 9227 | + | |
| 9228 | + | |
| 9229 | + | |
9222 | 9230 | | |
9223 | 9231 | | |
9224 | 9232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 75 | + | |
82 | 76 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9539 | 9539 | | |
9540 | 9540 | | |
9541 | 9541 | | |
9542 | | - | |
| 9542 | + | |
| 9543 | + | |
9543 | 9544 | | |
9544 | 9545 | | |
9545 | 9546 | | |
| |||
9574 | 9575 | | |
9575 | 9576 | | |
9576 | 9577 | | |
9577 | | - | |
| 9578 | + | |
| 9579 | + | |
9578 | 9580 | | |
9579 | 9581 | | |
9580 | 9582 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments