Xen 2.0.7,
Kernel 2.6.11.12-xen0,
host and node os: debian 3.1
I don't understand, how xm comunicates with xend.
The problem:
xm save webcool /tmp/foo.xen
,--------
| Error: errors: Connection was refused by other side: 111: Connection refused.
`--------
I did not found anything usefull, where is my mistake?
/var/log/xend-debug.log:
,--------
| Unhandled error in Deferred:
| Failure: xen.xend.XendError.XendError: errors: Connection was refused by
other side: 111: Connection refused.
`--------
netstat -tpaunl
,--------
| Active Internet connections (servers and established)
| Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
| tcp 0 0 127.0.0.1:8000 0.0.0.0:* LISTEN
2015/python
| tcp 0 0 127.0.0.1:9601 0.0.0.0:* LISTEN
2015/python
| tcp 0 0 127.0.0.1:8001 0.0.0.0:* LISTEN
2015/python
| tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN
2002/nrpe
| tcp 0 0 127.0.0.1:9608 0.0.0.0:* LISTEN
2015/python
| tcp 0 0 127.0.0.1:9610 0.0.0.0:* LISTEN
2015/python
| tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
1645/portmap
| tcp 0 0 0.0.0.0:113 0.0.0.0:* LISTEN
1996/inetd
| tcp 0 0 0.0.0.0:4949 0.0.0.0:* LISTEN
2152/munin-node
| tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
2008/sshd
| tcp 0 0 172.16.11.150:22 172.16.42.21:38633
ESTABLISHED5866/sshd:
| tcp 0 0 127.0.0.1:3003 127.0.0.1:8000 TIME_WAIT
-
| udp 0 0 0.0.0.0:111 0.0.0.0:*
1645/portmap
| udp 0 0 127.0.0.1:123 0.0.0.0:*
3850/ntpd
| udp 0 0 172.16.11.150:123 0.0.0.0:*
3850/ntpd
| udp 0 0 0.0.0.0:123 0.0.0.0:*
3850/ntpd
`--------
tcpdump -n -i lo (while executing xm save)
,--------
| 14:56:07.949754 IP 127.0.0.1.3425 > 127.0.0.1.8000: S
2324121771:2324121771(0) win 16396 <mss 16396,sackOK,timestamp 15292191
0,nop,wscale 1>
| 14:56:07.952777 IP 127.0.0.1.8000 > 127.0.0.1.3425: S
2320236973:2320236973(0) ack 2324121772 win 16384 <mss 16396,sackOK,timestamp
15292191 15292191,nop,wscale 1>
| 14:56:07.952804 IP 127.0.0.1.3425 > 127.0.0.1.8000: . ack 1 win 8198
<nop,nop,timestamp 15292191 15292191>
| 14:56:07.952817 IP 127.0.0.1.3425 > 127.0.0.1.8000: P 1:157(156) ack 1 win
8198 <nop,nop,timestamp 15292191 15292191>
| 14:56:07.952828 IP 127.0.0.1.8000 > 127.0.0.1.3425: . ack 157 win 8192
<nop,nop,timestamp 15292191 15292191>
| 14:56:07.952838 IP 127.0.0.1.3425 > 127.0.0.1.8000: P 157:192(35) ack 1 win
8198 <nop,nop,timestamp 15292191 15292191>
| 14:56:07.952849 IP 127.0.0.1.8000 > 127.0.0.1.3425: . ack 192 win 8192
<nop,nop,timestamp 15292191 15292191>
| 14:56:07.951258 IP 127.0.0.1.4161 > 127.0.0.1.8002: S
2324398338:2324398338(0) win 16396 <mss 16396,sackOK,timestamp 15292191
0,nop,wscale 1>
| 14:56:07.951267 IP 127.0.0.1.8002 > 127.0.0.1.4161: R 0:0(0) ack 2324398339
win 0
| 14:56:07.952076 IP 127.0.0.1.8000 > 127.0.0.1.3425: P 1:145(144) ack 192 win
8192 <nop,nop,timestamp 15292191 15292191>
| 14:56:07.952964 IP 127.0.0.1.3425 > 127.0.0.1.8000: . ack 145 win 8198
<nop,nop,timestamp 15292191 15292191>
| 14:56:07.952971 IP 127.0.0.1.8000 > 127.0.0.1.3425: P 145:259(114) ack 192
win 8192 <nop,nop,timestamp 15292191 15292191>
| 14:56:07.953038 IP 127.0.0.1.3425 > 127.0.0.1.8000: . ack 259 win 8198
<nop,nop,timestamp 15292191 15292191>
| 14:56:07.954009 IP 127.0.0.1.3425 > 127.0.0.1.8000: F 192:192(0) ack 259 win
8198 <nop,nop,timestamp 15292191 15292191>
| 14:56:07.954145 IP 127.0.0.1.8000 > 127.0.0.1.3425: F 259:259(0) ack 193 win
8192 <nop,nop,timestamp 15292191 15292191>
| 14:56:07.954297 IP 127.0.0.1.3425 > 127.0.0.1.8000: . ack 260 win 8198
<nop,nop,timestamp 15292191 15292191>
`--------
a strace on dom0 shows:
,--------
| 5911 connect(3, {sa_family=AF_INET, sin_port=htons(8000),
sin_addr=inet_addr("127.0.0.1")}, 16) = 0
| 5911 send(3, "POST /xend/domain/webcool HTTP/1"..., 156, 0) = 156
| 5911 send(3, "file=%2Froot%2Fwebcool.xen&op=sa"..., 34, 0) = 34
| 5911 recv(3, "H", 1, 0) = 1
| 5911 recv(3, "T", 1, 0) = 1
| 5911 recv(3, "T", 1, 0) = 1
| 5911 recv(3, "P", 1, 0) = 1
| 5911 recv(3, "/", 1, 0) = 1
| 5911 recv(3, "1", 1, 0) = 1
| 5911 recv(3, ".", 1, 0) = 1
| 5911 recv(3, "1", 1, 0) = 1
| 5911 recv(3, " ", 1, 0) = 1
|
| ... okay, i switch to human readable output now:
|
| 200 OK
| Transfer encoding chunked
| Date
| Content type application/sxp
| Server: TwistedWeb/1.3.0rcl
| 1
| 8
| xend.err
| 1
|
| 4
| 8
| errors: Connection was refused
| 5911 close(3) = 0
| 5911 write(2, "Error:", 6) = 6
| 5911 write(2, " ", 1) = 1
| 5911 write(2, "errors: Connection was refused b"..., 70) = 70
| 5911 write(2, "\n", 1) = 1
| 5911 rt_sigaction(SIGINT, NULL, {0xb7f9f7a0, [], 0}, 8) = 0
| 5911 rt_sigaction(SIGINT, {SIG_DFL}, NULL, 8) = 0
| 5911 exit_group(1) = ?
`--------
grep -v ^# vserver3.sxp
,--------
| name ="xendevel"
| kernel ="/boot/vmlinuz-2.6.11-xenU"
| root ="/dev/sda1"
| memory =128
| disk =
['file:/srv/vserver3/root.img,sda1,w','file:/srv/vserver3/swap.img,sda2,w']
| nics=1
| dhcp ="off"
| ip="172.16.11.153"
| netmask="255.255.0.0"
| gateway="172.16.255.252"
| hostname="xendevel"
`--------
grep -v ^# xend-config-sxp
,--------
| (xend-port 8000)
| (xend-event-port 8001)
| (xend-address 'localhost')
| (console-port-base 9600)
| (console-address 'localhost')
| (network-script network)
| (vif-bridge xen-br0)
| (vif-script vif-bridge)
| (vif-antispoof no)
| (block-file block-file)
| (block-enbd block-enbd)
`--------
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|