Skip to contentSkip to conversation

Problem migrating domains

DISCUSSION Miguel Gómez 2 participants 2 messages Feb 16, 2006 – Feb 17, 2006

lore
Share & tools
lore
#0 lore raw

Hello friends,
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 [email protected]
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

**********************
Debian Python Packages(same in both machines)
**********************

XenRunner:/# dpkg -l | grep python
ii  python         2.3.5-2        An interactive high-level object-oriented la
ii  python-twisted 1.3.0-8        Event-based framework for internet applicati
ii  python2.3      2.3.5-3sarge1  An interactive high-level object-oriented la
ii  python2.3-dev  2.3.5-3sarge1  Header files and a static library for Python
ii  python2.3-twis 1.3.0-8        Event-based framework for internet applicati
ii  python2.3-twis 1.3.0-8        Event-based framework for internet applicat

I've been looking for a long time in mailing list and there are some thread about migration problems, but not the same that I have.

Thank you very much.

Regards,
Miguel.

#1 lore raw
Quoted 51 lines

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 [email protected]
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
Quoted 8 lines
[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.