[Ovirt-devel] Re: are 'migration' between hosts working ?

Chris Lalancette clalance at redhat.com
Mon Jan 12 15:44:51 UTC 2009


pronix pronix wrote:
> found litle bug
> 
> diff --git a/src/task-omatic/task_vm.rb b/src/task-omatic/task_vm.rb
> index c187287..cbeda20 100644
> --- a/src/task-omatic/task_vm.rb
> +++ b/src/task-omatic/task_vm.rb
> @@ -656,7 +656,7 @@ def migrate(vm, dest = nil)
>      src_conn = Libvirt::open("qemu+tcp://" + src_host.hostname + "/system")
>      dst_conn = Libvirt::open("qemu+tcp://" + dst_host.hostname + "/system")
> 
> -    connect_storage_pools(dst_conn, vm)
> +    connect_storage_pools(dst_conn, vm.storage_volumes)
> 
>      dom = src_conn.lookup_domain_by_uuid(vm.uuid)
>      dom.migrate(dst_conn, Libvirt::Domain::MIGRATE_LIVE)

Arg!  You are completely right; I don't know how that ever worked, although at
some point it definitely did.  With this fix in place, does it actually work for
you?

-- 
Chris Lalancette




More information about the ovirt-devel mailing list