mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-19 02:55:17 +00:00
qemu_migration: Do not automatically resume domain after I/O error
When an I/O error happens (causing a domain to be paused) during live migration which is later cancelled by a user, trying to resume the domain doesn't make sense. Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
e46e64be50
commit
3766891c59
@ -241,6 +241,11 @@ qemuMigrationSrcRestoreDomainState(virQEMUDriver *driver, virDomainObj *vm)
|
||||
reason == VIR_DOMAIN_PAUSED_POSTCOPY_FAILED)
|
||||
return;
|
||||
|
||||
if (reason == VIR_DOMAIN_PAUSED_IOERROR) {
|
||||
VIR_DEBUG("Domain is paused due to I/O error, skipping resume");
|
||||
return;
|
||||
}
|
||||
|
||||
VIR_DEBUG("Restoring pre-migration state due to migration error");
|
||||
|
||||
/* we got here through some sort of failure; start the domain again */
|
||||
|
Loading…
x
Reference in New Issue
Block a user