WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Re: [Xen-devel] Problem migrating domains

To: Miguel Gómez <elmiguelonmakinon@xxxxxxxxx>
Subject: [Xen-users] Re: [Xen-devel] Problem migrating domains
From: Steven Hand <Steven.Hand@xxxxxxxxxxxx>
Date: Fri, 17 Feb 2006 10:34:53 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 17 Feb 2006 10:47:38 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: Message from Miguel Gómez <elmiguelonmakinon@xxxxxxxxx> of "Thu, 16 Feb 2006 17:18:27 +0100." <3c358bb50602160818j6a45931j31ae0c6c12461739@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> I'm having problems migrating domains with Xen3.0. I've used migration
> Xen2.0.7 with no problems and now that I've upgraded it to Xen3.0, I
> get this when I do a migration (not even a live migration !!!, it's a
> standard migration).
> 
> XenRunner:/var/cache/apt/archives# xm migrate 29 192.168.50.212
> Unexpected error: httplib.BadStatusLine
> 
> Please report to xen-devel@xxxxxxxxxxxxxxxxxxx
> Traceback (most recent call last):
>  File "/usr/sbin/xm", line 10, in ?
>    main.main(sys.argv)
>  File "/usr/lib/python/xen/xm/main.py", line 897, in main
>    rc = cmd(args)
>  File "<string>", line 1, in <lambda>
>  File "/usr/lib/python/xen/xm/main.py", line 533, in xm_subcommand
>    cmd.main([command] + args)
>  File "/usr/lib/python/xen/xm/migrate.py", line 63, in main
>    server.xend_domain_migrate(dom, dst, opts.vals.live, opts.vals.resource)
>  File "/usr/lib/python/xen/xend/XendClient.py", line 261, in
> xend_domain_migrate
>    {'op'         : 'migrate',
>  File "/usr/lib/python/xen/xend/XendClient.py", line 153, in xendPost
>    return self.client.xendPost(url, data)
>  File "/usr/lib/python/xen/xend/XendProtocol.py", line 101, in xendPost
>    return self.xendRequest(url, "POST", args)
>  File "/usr/lib/python/xen/xend/XendProtocol.py", line 172, in xendRequest
>    resp = conn.getresponse()
>  File "/usr/lib/python2.3/httplib.py", line 781, in getresponse
>    response.begin()
>  File "/usr/lib/python2.3/httplib.py", line 273, in begin
>    version, status, reason = self._read_status()
>  File "/usr/lib/python2.3/httplib.py", line 237, in _read_status
>    raise BadStatusLine(line)
> httplib.BadStatusLine
> 
 > 
> *******************************
> /var/log/xfrd.log(same in both machines):
> *******************************
> XENslave:/etc/apt# 4749 [INF] XFRD> Forked child pid=4751
> 4749 [INF] XFRD> Accepted connection from 192.168.50.195:4880 on 2
> 4797 [INF] XFRD> Xfr service for 192.168.50.195:4880
> [DEBUG] Conn_init> flags=1
> [DEBUG] Conn_init> write stream...
> [DEBUG] stream_init>mode=w flags=1 compress=0
> [DEBUG] stream_init> unbuffer...
> [DEBUG] stream_init< err=0
> [DEBUG] Conn_init> read stream...
> [DEBUG] stream_init>mode=r flags=1 compress=0
> [DEBUG] stream_init> unbuffer...
> [DEBUG] stream_init< err=0
> [DEBUG] Conn_sxpr>
> receive
> [DEBUG] Conn_sxpr< err=0
> 4797 [WRN] XFRD> sxpr_elementp test failed
> 4797 [ERR] XFRD> Hello failed: -22
> 4797 [INF] XFRD> Xfr service err=-22

Have you checked /etc/xen/xend-config.sxp on both machines? 
You need to enable relocation + authorize the hosts, e.g. 

(xend-relocation-server yes)
(xend-relocation-address '')
(xend-relocation-hosts-allow '')

[as far as I recall the default for the last of these is localhost 
which would mean that migration to localhost would work but nothing
else... have you tried migration to localhost?] 


You might also want to check your iptables config on each machine. 




cheers,

S.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>