提交 840955ff 编写于 作者: C Cole Robinson

Don't throw away StartVM errors when migrating/restoring in qemu driver.

上级 03f37365
Tue May 5 10:20:27 EDT 2009 Cole Robinson <crobinso@redhat.com>
* src/qemu_driver.c: Don't throw away StartVM errors when
migrating/restoring in qemu driver.
Tue May 5 10:19:14 EDT 2009 Cole Robinson <crobinso@redhat.com> Tue May 5 10:19:14 EDT 2009 Cole Robinson <crobinso@redhat.com>
* src/test.c: Small cleanups in test driver VolCreateXML * src/test.c: Small cleanups in test driver VolCreateXML
......
...@@ -225,7 +225,7 @@ qemudAutostartConfigs(struct qemud_driver *driver) { ...@@ -225,7 +225,7 @@ qemudAutostartConfigs(struct qemud_driver *driver) {
virErrorPtr err = virGetLastError(); virErrorPtr err = virGetLastError();
VIR_ERROR(_("Failed to autostart VM '%s': %s\n"), VIR_ERROR(_("Failed to autostart VM '%s': %s\n"),
vm->def->name, vm->def->name,
err ? err->message : NULL); err ? err->message : "");
} else { } else {
virDomainEventPtr event = virDomainEventPtr event =
virDomainEventNewFromObj(vm, virDomainEventNewFromObj(vm,
...@@ -3270,8 +3270,6 @@ static int qemudDomainRestore(virConnectPtr conn, ...@@ -3270,8 +3270,6 @@ static int qemudDomainRestore(virConnectPtr conn,
close(fd); close(fd);
fd = -1; fd = -1;
if (ret < 0) { if (ret < 0) {
qemudReportError(conn, NULL, NULL, VIR_ERR_OPERATION_FAILED,
"%s", _("failed to start VM"));
if (!vm->persistent) { if (!vm->persistent) {
virDomainRemoveInactive(&driver->domains, virDomainRemoveInactive(&driver->domains,
vm); vm);
...@@ -4767,8 +4765,6 @@ qemudDomainMigratePrepare2 (virConnectPtr dconn, ...@@ -4767,8 +4765,6 @@ qemudDomainMigratePrepare2 (virConnectPtr dconn,
*/ */
snprintf (migrateFrom, sizeof (migrateFrom), "tcp:0.0.0.0:%d", this_port); snprintf (migrateFrom, sizeof (migrateFrom), "tcp:0.0.0.0:%d", this_port);
if (qemudStartVMDaemon (dconn, driver, vm, migrateFrom, -1) < 0) { if (qemudStartVMDaemon (dconn, driver, vm, migrateFrom, -1) < 0) {
qemudReportError (dconn, NULL, NULL, VIR_ERR_OPERATION_FAILED,
"%s", _("failed to start listening VM"));
if (!vm->persistent) { if (!vm->persistent) {
virDomainRemoveInactive(&driver->domains, vm); virDomainRemoveInactive(&driver->domains, vm);
vm = NULL; vm = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册