when i try migrate vm from one host to another, i see error "Selected Migration Target: No migration target selected." but i haven't select menu whith hosts listing
pronix pronix
2009-Jan-12 13:37 UTC
[Ovirt-devel] Re: are 'migration' between hosts working ?
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) 2009/1/12 pronix pronix <pronix.service at gmail.com>:> when i try migrate vm from one host to another, i see error "Selected > Migration Target: > No migration target selected." > but i haven't select menu whith hosts listing >
Chris Lalancette
2009-Jan-13 07:36 UTC
[Ovirt-devel] Re: are 'migration' between hosts working ?
pronix pronix wrote:> yes, it is working. > > i have a question: should destroy domain on old host ,when i migrate > vm to new host, and create on new host ? > because after reboot vm come back to old host. > pardon my english :)Well, that depends on what you mean. Every time you shut down a guest, and start it again, it re-runs the algorithm to decide what the "best" host to start a guest is. If the best host is still the "old" host, then yes, it will restart it over there. If you really don't want it to start on the old host, you can mark the old host as "unavailable", which will make it automatically skip that host. In any case, thanks for the bug fix. Ian, can you give this a quick review/test of this patch, and then we can commit it? -- Chris Lalancette