All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Jim Fehlig <jfehlig@suse.com>, Wei Liu <wei.liu2@citrix.com>
Cc: Xen-devel <xen-devel@lists.xenproject.org>, ian.jackson@eu.citrix.com
Subject: Re: [PATCH OSSTEST] Toolstack/libvirt: use URI in migration command
Date: Wed, 12 Aug 2015 11:17:09 +0100	[thread overview]
Message-ID: <1439374629.9747.334.camel@citrix.com> (raw)
In-Reply-To: <1439373959.9747.331.camel@citrix.com>

On Wed, 2015-08-12 at 11:05 +0100, Ian Campbell wrote:
> On Tue, 2015-08-11 at 16:07 -0600, Jim Fehlig wrote:
> > Wei Liu wrote:
> > > 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>
> > > Cc: Ian Campbell <ian.campbell@citrix.com>
> > > Cc: Ian Jackson <ian.jackson@eu.citrix.com>
> > > ---
> > > Cc: Jim Fehlig <jfehlig@suse.com>
> > > 
> > > I once had email exchange with Jim and he said xen+ssh was a commonly
> > > use configuration.
> > > 
> > > Jim, I hope I got the URI right. The constructed command will be like
> > > 
> > >    virsh migrate guest xen+ssh://dst-host
> > >   
> > 
> > Yes, that is correct. Note you will need a '--live' option if live
> > migration is what you are after
> > 
> >   virsh migrate --live guest xen+ssh://dst-host
> 
> I think we probably do want live (xl does it by default).
> 
> I suggest we also do
>     my $duri = "xen+ssh://$dst";
> else the line is probably going to get a bit long.
> 
> So I propose to fold in this:

Ian agreed to this on IRC so I've pushed that to pretest. Full patch:

>From d042454d2474e0af7349838ee22131527f1208ff Mon Sep 17 00:00:00 2001
From: Wei Liu <wei.liu2@citrix.com>
Date: Tue, 11 Aug 2015 21:25:09 +0100
Subject: [PATCH] Toolstack/libvirt: use URI in migration command

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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Osstest/Toolstack/libvirt.pm b/Osstest/Toolstack/libvirt.pm
index bfb5ccb..776432d 100644
--- a/Osstest/Toolstack/libvirt.pm
+++ b/Osstest/Toolstack/libvirt.pm
@@ -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 ($$$$) {
-- 
2.1.4

  reply	other threads:[~2015-08-12 10:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-11 20:25 [PATCH OSSTEST] Toolstack/libvirt: use URI in migration command Wei Liu
2015-08-11 22:07 ` Jim Fehlig
2015-08-12 10:05   ` Ian Campbell
2015-08-12 10:17     ` Ian Campbell [this message]
2015-08-12 13:21   ` Ian Campbell
2015-08-12 15:08     ` Jim Fehlig
2015-08-12 15:25       ` Ian Campbell
2015-08-12 15:42         ` Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1439374629.9747.334.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jfehlig@suse.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.