[Pkg-xen-devel] Bug#441249: xen-hypervisor-3.0.3-1-i386-pae: "Problems using XEN when Quagga is running"

Mikko Korkalo keitsi at minttupuffet.net
Fri Sep 7 18:48:16 UTC 2007


Package: xen-hypervisor-3.0.3-1-i386-pae
Version: 3.0.3-0-2
Severity: normal

If quagga is running, and I start & stop a domain, the VIF interface doesn't go
down properly (in addition to other problems).

Here's what I do:
1. Boot the computer. By default, quagga is running (zebra + ospfd).
2. xm create test7.cfg, wait until the domU starts.
3. xm shutdown test7, wait until the domU stops.  (I also tried halt from
within
domU)
4. xm list - gives me "Device 0 not connected" error after shutdown is finished
5. "ifconfig vifX.0" still shows the interface.
6. xm create test7.cfg  --> I get the "Hotplug scripts not working" error
message
7. /etc/init.d/quagga restart
8. "ifconfig vifX.0" doesn't show the interface anymore
9. xm create test7.cfg now works as expected.

This might also be a bug of the quagga package.

See below to see the full attempt log:
<-------------
xen1:~# uname -a
Linux xen1 2.6.18-5-xen-vserver-686 #1 SMP Thu Aug 30 06:32:53 UTC 2007 i686
GNU/Linux
xen1:~# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0     1892     2 r-----     43.5
xen1:~# xm create test7.cfg
Using config file "/etc/xen/test7.cfg".
Started domain test7
xen1:~# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0     1892     2 r-----     44.8
test7                                     12      128     1 -b----      2.8
xen1:~# xm shutdown test7
xen1:~# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0     1892     2 r-----     45.0
test7                                     12      128     1 -b----      4.4
xen1:~# xm list
Error: Device 0 not connected
Usage: xm list [options] [Domain, ...]

List information about all/some domains.
  -l, --long                     Output all VM details in SXP
  --label                        Include security labels

xen1:~# ifconfig vif12.0
vif12.0   Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet addr:AAA.BBB.CCC.DDD  Bcast:AAA.BBB.CCC.DDD 
Mask:255.255.255.224
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:412 (412.0 b)  TX bytes:1284 (1.2 KiB)
xen1:~# xm create test7.cfg
Using config file "/etc/xen/test7.cfg".
Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
xen1:~# /etc/init.d/quagga restart
Stopping Quagga daemons (prio:0): (waiting) .. ospfd (waiting) .. zebra (bgpd)
(ripd) (ripngd) (ospf6d) (isisd).
Removing all routes made by zebra.
Nothing to flush.
Loading capability module if not yet done.
Starting Quagga daemons (prio:10): zebra ospfd.
xen1:~# ifconfig vif12.0
vif12.0: error fetching interface information: Device not found
xen1:~# xm create test7.cfg
Using config file "/etc/xen/test7.cfg".
Started domain test7
xen1:~# 
------------->


Logs:
<-------------
xen1:~# xm shutdown test7
xen1:~# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0     1892     2 r-----     47.7
test7                                     14      128     1 r-----      5.2
xen1:~# xm list
Error: Device 0 not connected
Usage: xm list [options] [Domain, ...]

List information about all/some domains.
  -l, --long                     Output all VM details in SXP
  --label                        Include security labels

xen1:~# tail -60 /var/log/xen/xend.log
[2007-09-08 00:37:40 xend 8997] DEBUG (__init__:1072) DevController: writing
{'domain': 'test7', 'handle': '0', 'script': '/etc/xen/scripts/vif-route',
'ip': '172.16.255.44', 'state': '1', 'frontend':
'/local/domain/13/device/vif/0', 'mac': '00:16:3e:37:4f:f3', 'online': '1',
'frontend-id': '13'} to /local/domain/0/backend/vif/13/0.
[2007-09-08 00:37:40 xend.XendDomainInfo 8997] DEBUG (__init__:1072) Storing VM
details: {'shadow_memory': '0', 'uuid': '31cc83aa-a269-571e-5c9b-b33d239df2e3',
'on_reboot': 'restart', 'start_time': '1189201060.77', 'on_poweroff':
'destroy',
'name': 'test7', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1',
'memory': '128', 'on_crash': 'restart', 'image': "(linux (kernel
/boot/vmlinuz-xen) (ramdisk /boot/initrd-xen) (root '/dev/hda1 ro'))",
'maxmem': '128'}
[2007-09-08 00:37:40 xend.XendDomainInfo 8997] DEBUG (__init__:1072) Storing
domain details: {'console/ring-ref': '268947', 'console/port': '2', 'name':
'test7', 'console/limit': '1048576', 'vm':
'/vm/31cc83aa-a269-571e-5c9b-b33d239df2e3', 'domid': '13',
'cpu/0/availability': 'online', 'memory/target': '131072', 'store/ring-ref':
'268948', 'store/port': '1'}
[2007-09-08 00:37:40 xend.XendDomainInfo 8997] DEBUG (__init__:1072)
XendDomainInfo.handleShutdownWatch
[2007-09-08 00:37:40 xend 8997] DEBUG (__init__:1072) Waiting for devices vif.
[2007-09-08 00:37:40 xend 8997] DEBUG (__init__:1072) Waiting for 0.
[2007-09-08 00:37:40 xend 8997] DEBUG (__init__:1072) hotplugStatusCallback
/local/domain/0/backend/vif/13/0/hotplug-status.
[2007-09-08 00:39:20 xend.XendDomainInfo 8997] DEBUG (__init__:1072)
XendDomainInfo.destroy: domid=13
[2007-09-08 00:39:20 xend.XendDomainInfo 8997] DEBUG (__init__:1072)
XendDomainInfo.destroyDomain(13)
[2007-09-08 00:39:54 xend.XendDomainInfo 8997] DEBUG (__init__:1072)
XendDomainInfo.create(['vm', ['name', 'test7'], ['memory', '128'],
['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'],
['vcpus', 1], ['image', ['linux', ['kernel', '/boot/vmlinuz-xen'], ['ramdisk',
'/boot/initrd-xen'], ['root', '/dev/hda1 ro']]], ['device', ['vbd', ['uname',
'file:/vserver/domains/test7/disk.img'], ['dev', 'hda1'], ['mode', 'w']]],
['device', ['vbd', ['uname', 'file:/vserver/domains/test7/swap.img'], ['dev',
'hda2'], ['mode', 'w']]], ['device', ['vif', ['ip', '172.16.255.44'], ['mac',
'00:16:3e:37:4f:f3']]]])
[2007-09-08 00:39:54 xend.XendDomainInfo 8997] DEBUG (__init__:1072)
parseConfig: config is ['vm', ['name', 'test7'], ['memory', '128'],
['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'],
['vcpus', 1], ['image', ['linux', ['kernel', '/boot/vmlinuz-xen'], ['ramdisk',
'/boot/initrd-xen'], ['root', '/dev/hda1 ro']]], ['device', ['vbd', ['uname',
'file:/vserver/domains/test7/disk.img'], ['dev', 'hda1'], ['mode', 'w']]],
['device', ['vbd', ['uname', 'file:/vserver/domains/test7/swap.img'], ['dev',
'hda2'], ['mode', 'w']]], ['device', ['vif', ['ip', '172.16.255.44'], ['mac',
'00:16:3e:37:4f:f3']]]]
[2007-09-08 00:39:54 xend.XendDomainInfo 8997] DEBUG (__init__:1072)
parseConfig: result is {'shadow_memory': None, 'uuid': None, 'on_crash':
'restart', 'on_reboot': 'restart', 'localtime': None, 'image': ['linux',
['kernel', '/boot/vmlinuz-xen'], ['ramdisk', '/boot/initrd-xen'], ['root',
'/dev/hda1 ro']], 'on_poweroff': 'destroy', 'bootloader_args': None, 'cpus':
None, 'name': 'test7', 'backend': [], 'vcpus': 1, 'cpu_weight': None,
'features': None, 'vcpu_avail': None, 'memory': 128, 'device': [('vbd', ['vbd',
['uname', 'file:/vserver/domains/test7/disk.img'], ['dev', 'hda1'], ['mode',
'w']]), ('vbd', ['vbd', ['uname', 'file:/vserver/domains/test7/swap.img'],
['dev', 'hda2'], ['mode', 'w']]), ('vif', ['vif', ['ip', '172.16.255.44'],
['mac', '00:16:3e:37:4f:f3']])], 'bootloader': None, 'cpu': None, 'maxmem':
None}
[2007-09-08 00:39:54 xend.XendDomainInfo 8997] DEBUG (__init__:1072)
XendDomainInfo.construct: None
[2007-09-08 00:39:54 xend.XendDomainInfo 8997] DEBUG (__init__:1072)
XendDomainInfo.initDomain: 14 1.0
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) Balloon: 132088 KiB free;
need 131072; done.
[2007-09-08 00:39:54 xend 8997] INFO (__init__:1072) buildDomain os=linux
dom=14
vcpus=1
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) dom            = 14
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) image          =
/boot/vmlinuz-xen
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) store_evtchn   = 1
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) console_evtchn = 2
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) cmdline        = 
root=/dev/hda1 ro
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) ramdisk        =
/boot/initrd-xen
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) vcpus          = 1
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) features       =
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) exception looking up
device number for hda1: [Errno 2] No such file or directory: '/dev/hda1'
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) DevController: writing
{'backend-id': '0', 'virtual-device': '769', 'device-type': 'disk', 'state':
'1', 'backend': '/local/domain/0/backend/vbd/14/769'} to
/local/domain/14/device/vbd/769.
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) DevController: writing
{'domain': 'test7', 'frontend': '/local/domain/14/device/vbd/769', 'dev':
'hda1', 'state': '1', 'params': '/vserver/domains/test7/disk.img', 'mode': 'w',
'online': '1', 'frontend-id': '14', 'type': 'file'} to
/local/domain/0/backend/vbd/14/769.
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) exception looking up
device number for hda2: [Errno 2] No such file or directory: '/dev/hda2'
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) DevController: writing
{'backend-id': '0', 'virtual-device': '770', 'device-type': 'disk', 'state':
'1', 'backend': '/local/domain/0/backend/vbd/14/770'} to
/local/domain/14/device/vbd/770.
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) DevController: writing
{'domain': 'test7', 'frontend': '/local/domain/14/device/vbd/770', 'dev':
'hda2', 'state': '1', 'params': '/vserver/domains/test7/swap.img', 'mode': 'w',
'online': '1', 'frontend-id': '14', 'type': 'file'} to
/local/domain/0/backend/vbd/14/770.
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) DevController: writing
{'backend-id': '0', 'mac': '00:16:3e:37:4f:f3', 'handle': '0', 'state': '1',
'backend': '/local/domain/0/backend/vif/14/0'} to
/local/domain/14/device/vif/0.
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) DevController: writing
{'domain': 'test7', 'handle': '0', 'script': '/etc/xen/scripts/vif-route',
'ip': '172.16.255.44', 'state': '1', 'frontend':
'/local/domain/14/device/vif/0', 'mac': '00:16:3e:37:4f:f3', 'online': '1',
'frontend-id': '14'} to /local/domain/0/backend/vif/14/0.
[2007-09-08 00:39:54 xend.XendDomainInfo 8997] DEBUG (__init__:1072) Storing VM
details: {'shadow_memory': '0', 'uuid': '6c956d6d-6542-ac55-8685-8cb355c8df1c',
'on_reboot': 'restart', 'start_time': '1189201194.81', 'on_poweroff':
'destroy',
'name': 'test7', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1',
'memory': '128', 'on_crash': 'restart', 'image': "(linux (kernel
/boot/vmlinuz-xen) (ramdisk /boot/initrd-xen) (root '/dev/hda1 ro'))",
'maxmem': '128'}
[2007-09-08 00:39:54 xend.XendDomainInfo 8997] DEBUG (__init__:1072) Storing
domain details: {'console/ring-ref': '67735', 'console/port': '2', 'name':
'test7', 'console/limit': '1048576', 'vm':
'/vm/6c956d6d-6542-ac55-8685-8cb355c8df1c', 'domid': '14',
'cpu/0/availability': 'online', 'memory/target': '131072', 'store/ring-ref':
'67736', 'store/port': '1'}
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) Waiting for devices vif.
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) Waiting for 0.
[2007-09-08 00:39:54 xend.XendDomainInfo 8997] DEBUG (__init__:1072)
XendDomainInfo.handleShutdownWatch
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) hotplugStatusCallback
/local/domain/0/backend/vif/14/0/hotplug-status.
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) hotplugStatusCallback
/local/domain/0/backend/vif/14/0/hotplug-status.
[2007-09-08 00:39:54 xend 8997] DEBUG (__init__:1072) hotplugStatusCallback 1.
[2007-09-08 00:39:55 xend 8997] DEBUG (__init__:1072) Waiting for devices usb.
[2007-09-08 00:39:55 xend 8997] DEBUG (__init__:1072) Waiting for devices vbd.
[2007-09-08 00:39:55 xend 8997] DEBUG (__init__:1072) Waiting for 769.
[2007-09-08 00:39:55 xend 8997] DEBUG (__init__:1072) hotplugStatusCallback
/local/domain/0/backend/vbd/14/769/hotplug-status.
[2007-09-08 00:39:56 xend 8997] DEBUG (__init__:1072) hotplugStatusCallback
/local/domain/0/backend/vbd/14/769/hotplug-status.
[2007-09-08 00:39:56 xend 8997] DEBUG (__init__:1072) hotplugStatusCallback 1.
[2007-09-08 00:39:56 xend 8997] DEBUG (__init__:1072) Waiting for 770.
[2007-09-08 00:39:56 xend 8997] DEBUG (__init__:1072) hotplugStatusCallback
/local/domain/0/backend/vbd/14/770/hotplug-status.
[2007-09-08 00:39:56 xend 8997] DEBUG (__init__:1072) hotplugStatusCallback 1.
[2007-09-08 00:39:56 xend 8997] DEBUG (__init__:1072) Waiting for devices irq.
[2007-09-08 00:39:56 xend 8997] DEBUG (__init__:1072) Waiting for devices pci.
[2007-09-08 00:39:56 xend 8997] DEBUG (__init__:1072) Waiting for devices
ioports.
[2007-09-08 00:39:56 xend 8997] DEBUG (__init__:1072) Waiting for devices tap.
[2007-09-08 00:39:56 xend 8997] DEBUG (__init__:1072) Waiting for devices vtpm.
[2007-09-08 00:39:56 xend 8997] INFO (__init__:1072) Domain test7 (14)
unpaused.
[2007-09-08 00:43:05 xend.XendDomainInfo 8997] DEBUG (__init__:1072)
XendDomainInfo.handleShutdownWatch
[2007-09-08 00:43:05 xend.XendDomainInfo 8997] DEBUG (__init__:1072)
XendDomainInfo.handleShutdownWatch
[2007-09-08 00:43:12 xend.XendDomainInfo 8997] INFO (__init__:1072) Domain has
shutdown: name=test7 id=14 reason=poweroff.
[2007-09-08 00:43:12 xend.XendDomainInfo 8997] DEBUG (__init__:1072)
XendDomainInfo.destroy: domid=14
[2007-09-08 00:43:12 xend.XendDomainInfo 8997] DEBUG (__init__:1072)
XendDomainInfo.destroyDomain(14)
------------->





-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-xen-vserver-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages xen-hypervisor-3.0.3-1-i386-pae depends on:
ii  xen-utils-3.0.3-1             3.0.3-0-2  XEN administrative tools

xen-hypervisor-3.0.3-1-i386-pae recommends no packages.

-- no debconf information




More information about the Pkg-xen-devel mailing list