Commit 76ea8ee
libvirt: Abort live-migration job when monitoring fails
During live migration process, a _live_migration_monitor thread
checks progress of migration on source host, if for any reason
we hit infrastructure issue involving a DB/RPC/libvirt-timeout
failure, an Exception is raised to the nova-compute service and
instance/migration is set to ERROR state.
The issue is that we may let live-migration job running out of nova
control. At the end of job, guest is resumed on target host while
nova still reports it on source host, this may lead to a split-brain
situation if instance is restarted.
This change proposes to abort live-migration job if issue occurs
during _live_migration_monitor.
Change-Id: Ia593b500425c81e54eb401e38264db5cc5fc1f93
Closes-Bug: #1905944
(cherry picked from commit 39f0af5)1 parent 9609ae0 commit 76ea8ee
File tree
2 files changed
+33
-6
lines changed- nova
- tests/unit/virt/libvirt
- virt/libvirt
2 files changed
+33
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13338 | 13338 | | |
13339 | 13339 | | |
13340 | 13340 | | |
13341 | | - | |
13342 | | - | |
13343 | | - | |
| 13341 | + | |
| 13342 | + | |
| 13343 | + | |
| 13344 | + | |
| 13345 | + | |
13344 | 13346 | | |
13345 | 13347 | | |
13346 | 13348 | | |
| |||
13353 | 13355 | | |
13354 | 13356 | | |
13355 | 13357 | | |
| 13358 | + | |
13356 | 13359 | | |
13357 | 13360 | | |
13358 | 13361 | | |
13359 | 13362 | | |
13360 | 13363 | | |
13361 | 13364 | | |
13362 | 13365 | | |
13363 | | - | |
13364 | | - | |
13365 | | - | |
| 13366 | + | |
| 13367 | + | |
| 13368 | + | |
| 13369 | + | |
| 13370 | + | |
| 13371 | + | |
| 13372 | + | |
| 13373 | + | |
| 13374 | + | |
13366 | 13375 | | |
13367 | 13376 | | |
13368 | 13377 | | |
| |||
13379 | 13388 | | |
13380 | 13389 | | |
13381 | 13390 | | |
| 13391 | + | |
| 13392 | + | |
| 13393 | + | |
| 13394 | + | |
| 13395 | + | |
| 13396 | + | |
13382 | 13397 | | |
13383 | 13398 | | |
13384 | 13399 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9967 | 9967 | | |
9968 | 9968 | | |
9969 | 9969 | | |
| 9970 | + | |
| 9971 | + | |
| 9972 | + | |
| 9973 | + | |
| 9974 | + | |
| 9975 | + | |
| 9976 | + | |
| 9977 | + | |
| 9978 | + | |
| 9979 | + | |
| 9980 | + | |
| 9981 | + | |
9970 | 9982 | | |
9971 | 9983 | | |
9972 | 9984 | | |
| |||
0 commit comments