mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
Check for --live flag for postcopy-after-precopy migration
Unlike postcopy migration there is no --live flag check for postcopy-after-precopy. Signed-off-by: Kothapally Madhu Pavan <kmp@linux.vnet.ibm.com>
This commit is contained in:
parent
2ff85c28a0
commit
67af358d11
@ -10318,6 +10318,12 @@ cmdMigrate(vshControl *ctl, const vshCmd *cmd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (vshCommandOptBool(cmd, "postcopy-after-precopy")) {
|
if (vshCommandOptBool(cmd, "postcopy-after-precopy")) {
|
||||||
|
if (!live_flag) {
|
||||||
|
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s",
|
||||||
|
_("post-copy migration is not supported with "
|
||||||
|
"non-live or paused migration"));
|
||||||
|
goto cleanup;
|
||||||
|
}
|
||||||
iterEvent = virConnectDomainEventRegisterAny(
|
iterEvent = virConnectDomainEventRegisterAny(
|
||||||
priv->conn, dom,
|
priv->conn, dom,
|
||||||
VIR_DOMAIN_EVENT_ID_MIGRATION_ITERATION,
|
VIR_DOMAIN_EVENT_ID_MIGRATION_ITERATION,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user