提交 e16f8539 编写于 作者: J Jiri Denemark

qemu: Reset migration parameters in qemuMigrationSrcCleanup

When connection to the client which controls a non-p2p migration gets
closed between Perform and Confirm phase, we don't know whether the
domain was successfully migrated or not. Thus, we have to leave the
domain paused and just cleanup the migration job and reset migration
parameters.

Previously we didn't reset the parameters and future save or snapshot
operations would see wrong environment (and could fail because of it) in
case the domain stayed running on the source host.
Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 43311e1c
...@@ -1834,6 +1834,7 @@ qemuMigrationSrcCleanup(virDomainObjPtr vm, ...@@ -1834,6 +1834,7 @@ qemuMigrationSrcCleanup(virDomainObjPtr vm,
VIR_WARN("Migration of domain %s finished but we don't know if the" VIR_WARN("Migration of domain %s finished but we don't know if the"
" domain was successfully started on destination or not", " domain was successfully started on destination or not",
vm->def->name); vm->def->name);
qemuMigrationParamsReset(driver, vm, QEMU_ASYNC_JOB_MIGRATION_OUT);
/* clear the job and let higher levels decide what to do */ /* clear the job and let higher levels decide what to do */
qemuDomainObjDiscardAsyncJob(driver, vm); qemuDomainObjDiscardAsyncJob(driver, vm);
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册