]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Don't use query-migrate on destination
authorJiri Denemark <jdenemar@redhat.com>
Mon, 12 Sep 2016 08:24:21 +0000 (10:24 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 12 Sep 2016 13:56:10 +0000 (15:56 +0200)
commit56258a388fbb1d44ef6d6e59c7a0795f1fae53d0
treecff8d2cf3a914429adde4d36630a647dbcacab7f
parentc8b8bbc3663dacab1bda4c1fa821180674fdc509
qemu: Don't use query-migrate on destination

When migration fails, we need to poke QEMU monitor to check for a reason
of the failure. We did this using query-migrate QMP command, which is
not supposed to return any meaningful result on the destination side.
Thus if the monitor was still functional when we detected the migration
failure, parsing the answer from query-migrate always failed with the
following error message:

    "info migration reply was missing return status"

This irrelevant message was then used as the reason for the migration
failure replacing any message we might have had.

Let's use harmless query-status for poking the monitor to make sure we
only get an error if the monitor connection is broken.

https://bugzilla.redhat.com/show_bug.cgi?id=1374613

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_migration.c
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h