mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-08 14:29:56 +00:00
qemu: migration: error if tunnelled + storage specified
Since as the code indicates it doesn't work yet, so let's be explicit about it.
This commit is contained in:
parent
5751fc4f4e
commit
98bbda00cf
@ -1900,12 +1900,13 @@ char *qemuMigrationBegin(virQEMUDriverPtr driver,
|
|||||||
if (flags & (VIR_MIGRATE_NON_SHARED_DISK | VIR_MIGRATE_NON_SHARED_INC) &&
|
if (flags & (VIR_MIGRATE_NON_SHARED_DISK | VIR_MIGRATE_NON_SHARED_INC) &&
|
||||||
virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_NBD_SERVER)) {
|
virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_NBD_SERVER)) {
|
||||||
/* TODO support NBD for TUNNELLED migration */
|
/* TODO support NBD for TUNNELLED migration */
|
||||||
if (flags & VIR_MIGRATE_TUNNELLED)
|
if (flags & VIR_MIGRATE_TUNNELLED) {
|
||||||
VIR_DEBUG("NBD in tunnelled migration is currently not supported");
|
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s",
|
||||||
else {
|
_("NBD in tunnelled migration is currently not supported"));
|
||||||
cookieFlags |= QEMU_MIGRATION_COOKIE_NBD;
|
goto cleanup;
|
||||||
priv->nbdPort = 0;
|
|
||||||
}
|
}
|
||||||
|
cookieFlags |= QEMU_MIGRATION_COOKIE_NBD;
|
||||||
|
priv->nbdPort = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(mig = qemuMigrationEatCookie(driver, vm, NULL, 0, 0)))
|
if (!(mig = qemuMigrationEatCookie(driver, vm, NULL, 0, 0)))
|
||||||
@ -2200,16 +2201,11 @@ done:
|
|||||||
if (mig->nbd &&
|
if (mig->nbd &&
|
||||||
flags & (VIR_MIGRATE_NON_SHARED_DISK | VIR_MIGRATE_NON_SHARED_INC) &&
|
flags & (VIR_MIGRATE_NON_SHARED_DISK | VIR_MIGRATE_NON_SHARED_INC) &&
|
||||||
virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_NBD_SERVER)) {
|
virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_NBD_SERVER)) {
|
||||||
/* TODO support NBD for TUNNELLED migration */
|
if (qemuMigrationStartNBDServer(driver, vm, listenAddr) < 0) {
|
||||||
if (flags & VIR_MIGRATE_TUNNELLED)
|
/* error already reported */
|
||||||
VIR_DEBUG("NBD in tunnelled migration is currently not supported");
|
goto endjob;
|
||||||
else {
|
|
||||||
if (qemuMigrationStartNBDServer(driver, vm, listenAddr) < 0) {
|
|
||||||
/* error already reported */
|
|
||||||
goto endjob;
|
|
||||||
}
|
|
||||||
cookieFlags |= QEMU_MIGRATION_COOKIE_NBD;
|
|
||||||
}
|
}
|
||||||
|
cookieFlags |= QEMU_MIGRATION_COOKIE_NBD;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (qemuMigrationBakeCookie(mig, driver, vm, cookieout,
|
if (qemuMigrationBakeCookie(mig, driver, vm, cookieout,
|
||||||
|
Loading…
Reference in New Issue
Block a user