]> xenbits.xensource.com Git - libvirt.git/commit
Better error reporting for failed migration
authorChris Lalancette <clalance@redhat.com>
Fri, 19 Feb 2010 15:15:21 +0000 (16:15 +0100)
committerDaniel Veillard <veillard@redhat.com>
Fri, 19 Feb 2010 15:15:21 +0000 (16:15 +0100)
commitb97c24b2e1eaea88fc9a62134097a5baf8a1f6b2
tree2b4465508ede087359aa03fb3299a4c13063944a
parent8ba9e794e6a92118e12958a118ce1fa760de988c
Better error reporting for failed migration

If the hostname as returned by "gethostname" resolves
to "localhost" (as it does with the broken Fedora-12
installer), then live migration will fail because the
source will try to migrate to itself.  Detect this
situation up-front and abort the live migration before
we do any real work.

* src/util/util.h src/util/util.c: add a new virGetHostnameLocalhost
  with an optional localhost check, and rewire virGetHostname() to use
  it
* src/libvirt_private.syms: expose the new function
* src/qemu/qemu_driver.c: use it in qemudDomainMigratePrepare2()
src/libvirt_private.syms
src/qemu/qemu_driver.c
src/util/util.c
src/util/util.h