mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Revert "qemu: Do not require hostuuid in migration cookie"
This reverts commit 8d75e47ede.
Libvirt was never released with support for migration cookies without
hostuuid.
This commit is contained in:
@@ -783,23 +783,22 @@ qemuMigrationCookieXMLParse(qemuMigrationCookiePtr mig,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!(tmp = virXPathString("string(./hostuuid[1])", ctxt))) {
|
if (!(tmp = virXPathString("string(./hostuuid[1])", ctxt))) {
|
||||||
VIR_WARN("Missing hostuuid element in migration data; cannot "
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
"detect migration to the same host");
|
"%s", _("missing hostuuid element in migration data"));
|
||||||
} else {
|
|
||||||
if (virUUIDParse(tmp, mig->remoteHostuuid) < 0) {
|
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
|
||||||
_("malformed hostuuid element in migration data"));
|
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
if (memcmp(mig->remoteHostuuid, mig->localHostuuid,
|
if (virUUIDParse(tmp, mig->remoteHostuuid) < 0) {
|
||||||
VIR_UUID_BUFLEN) == 0) {
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
|
"%s", _("malformed hostuuid element in migration data"));
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
if (memcmp(mig->remoteHostuuid, mig->localHostuuid, VIR_UUID_BUFLEN) == 0) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Attempt to migrate guest to the same host %s"),
|
_("Attempt to migrate guest to the same host %s"),
|
||||||
tmp);
|
tmp);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
VIR_FREE(tmp);
|
VIR_FREE(tmp);
|
||||||
}
|
|
||||||
|
|
||||||
/* Check to ensure all mandatory features from XML are also
|
/* Check to ensure all mandatory features from XML are also
|
||||||
* present in 'flags' */
|
* present in 'flags' */
|
||||||
|
|||||||
Reference in New Issue
Block a user