]> xenbits.xensource.com Git - osstest.git/commitdiff
Toolstack/libvirt: use URI in migration command flight-60671
authorWei Liu <wei.liu2@citrix.com>
Tue, 11 Aug 2015 20:25:09 +0000 (21:25 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 12 Aug 2015 10:13:55 +0000 (11:13 +0100)
Virsh migrate expects an URI, not a host. We don't actually care what
kind of transport it uses, the main objective is to test migration, so
use xen+ssh for the time being.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
[ ijc -- added --live and factored out $duri ]

Osstest/Toolstack/libvirt.pm

index bfb5ccbb2109cac93866cfc5476a14b4aae8cd30..776432d00ca4a6213eb65bf00673a5419ee2e6ae 100644 (file)
@@ -108,7 +108,8 @@ sub migrate ($$$$) {
     my $sho = $self->{Host};
     my $dst = $dho->{Name};
     my $gn = $gho->{Name};
-    target_cmd_root($sho, "virsh migrate $gn $dst", $timeout);
+    my $duri = "xen+ssh://$dst";
+    target_cmd_root($sho, "virsh migrate --live $gn $duri", $timeout);
 }
 
 sub save ($$$$) {