[Pkg-libvirt-maintainers] Bug#701570: libvirt-bin: please document hook error 512

Luca Capello luca at pca.it
Sun Feb 24 16:05:35 UTC 2013


Package: libvirt-bin
Version: 0.9.12-6~bpo60+1
Severity: wishlist
Usertags: pca.it-virtualization

Hi there!

After a reboot, the virtual XP hosted on a Debian squeeze did not come
up automatically, with the following error:
=====
root at tinello:/etc# tail /var/log/libvirt/libvirtd.log
2013-02-24 15:19:46.076+0000: 11560: error : virCommandWait:2306 : internal error Child process (tc qdisc del dev virbr0 root) status unexpected: exit status 2
2013-02-24 15:19:46.077+0000: 11560: error : virCommandWait:2306 : internal error Child process (tc qdisc del dev virbr0 ingress) status unexpected: exit status 2
2013-02-24 15:19:46.106+0000: 11560: error : virCommandWait:2306 : internal error Child process (/sbin/iptables --table mangle --delete POSTROUTING --out-interface virbr0 --protocol udp --destination-port 68 --jump CHECKSUM --checksum-fill) status unexpected: exit status 2
2013-02-24 15:20:00.307+0000: 11739: info : libvirt version: 0.9.12
2013-02-24 15:20:00.307+0000: 11739: error : virCommandWait:2306 : internal error Child process (/sbin/iptables --table mangle --insert POSTROUTING --out-interface virbr0 --protocol udp --destination-port 68 --jump CHECKSUM --checksum-fill) status unexpected: exit status 2
2013-02-24 15:20:00.307+0000: 11739: warning : networkAddGeneralIptablesRules:1301 : Could not add rule to fixup DHCP response checksums on network 'default'.
2013-02-24 15:20:00.307+0000: 11739: warning : networkAddGeneralIptablesRules:1302 : May need to update iptables package & kernel to support CHECKSUM rule.
2013-02-24 15:20:00.810+0000: 11739: error : virHookCall:280 : Hook script execution failed: Hook script /etc/libvirt/hooks/qemu qemu failed with error code 512
2013-02-24 15:20:00.829+0000: 11739: error : virHookCall:280 : Hook script execution failed: Hook script /etc/libvirt/hooks/qemu qemu failed with error code 512
2013-02-24 15:20:00.830+0000: 11739: error : qemuAutostartDomain:177 : Failed to autostart VM 'tinello-xp.pca.it': Hook script execution failed: Hook script /etc/libvirt/hooks/qemu qemu failed with error code 512
root at tinello:/etc#
=====

First, the CHECKSUM problem is an old one (see #598330): while this is
simply a warning, IMHO it should be fixed in the backports as well.

Second, after some debugging I discovered that I forgot to close a case
statement for the GUEST_NAME in the hook script I provided in:

  <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=637219#52>

However, the fact that there is no mention of the meaning of 'error code
512' in the official libvirt wiki means that it is almost impossible to
understand if the error is in the hook script or in libvirt-bin.  FTR, I
was expecting 'error code 256' instead:

  <http://www.libvirt.org/hooks.html#return_codes>

Thx, bye,
Gismo / Luca

-- System Information:
Debian Release: 6.0.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-0.bpo.4-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libvirt-bin depends on:
ii  adduser            3.112+nmu2            add and remove users and groups
ii  gettext-base       0.18.1.1-3            GNU Internationalization utilities
ii  libavahi-client3   0.6.27-2+squeeze1     Avahi client library
ii  libavahi-common3   0.6.27-2+squeeze1     Avahi common library
ii  libblkid1          2.17.2-9              block device id library
ii  libc6              2.11.3-4              Embedded GNU C Library: Shared lib
ii  libcap-ng0         0.6.4-1               An alternate posix capabilities li
ii  libdbus-1-3        1.2.24-4+squeeze2     simple interprocess messaging syst
ii  libdevmapper1.02.1 2:1.02.48-5           The Linux Kernel Device Mapper use
ii  libgcrypt11        1.4.5-2               LGPL Crypto library - runtime libr
ii  libgnutls26        2.8.6-1+squeeze2      the GNU TLS library - runtime libr
ii  libnl1             1.1-6                 library for dealing with netlink s
ii  libnuma1           2.0.5-1               Libraries for controlling NUMA pol
ii  libparted0debian1  2.3-5                 The GNU Parted disk partitioning s
ii  libpcap0.8         1.1.1-2+squeeze1      system interface for user-level pa
ii  libpciaccess0      0.12.0-1              Generic PCI access library for X
ii  libreadline6       6.1-3                 GNU readline and history libraries
ii  libsasl2-2         2.1.23.dfsg1-7        Cyrus SASL - authentication abstra
ii  libudev0           164-3                 libudev shared library
ii  libuuid1           2.17.2-9              Universally Unique ID library
ii  libvirt0           0.9.12-6~bpo60+1      library for interfacing with diffe
ii  libxenstore3.0     4.0.1-5.6             Xenstore communications library fo
ii  libxml2            2.7.8.dfsg-2+squeeze6 GNOME XML library
ii  libyajl1           1.0.8-1               Yet Another JSON Library
ii  logrotate          3.7.8-6               Log rotation utility

Versions of packages libvirt-bin recommends:
ii  bridge-utils     1.4-5                   Utilities for configuring the Linu
ii  dmidecode        2.9-1.2                 Dump Desktop Management Interface 
ii  dnsmasq-base     2.55-2                  A small caching DNS proxy and DHCP
ii  ebtables         2.0.9.2-2               Ethernet bridge frame table admini
ii  gawk             1:3.1.7.dfsg-5          GNU awk, a pattern scanning and pr
ii  iproute          20100519-3              networking and traffic control too
ii  iptables         1.4.8-3                 administration tools for packet fi
ii  libxml2-utils    2.7.8.dfsg-2+squeeze6   XML utilities
ii  netcat-openbsd   1.89-4                  TCP/IP swiss army knife
pn  parted           <none>                  (no description available)
ii  qemu             0.12.5+dfsg-3squeeze3   fast processor emulator
ii  qemu-kvm         0.12.5+dfsg-5+squeeze10 Full virtualization on x86 hardwar

Versions of packages libvirt-bin suggests:
ii  policykit-1              0.96-4+squeeze2 framework for managing administrat
pn  radvd                    <none>          (no description available)

-- Configuration Files:
/etc/libvirt/qemu/networks/default.xml changed [not included]

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20130224/a0419569/attachment-0001.pgp>


More information about the Pkg-libvirt-maintainers mailing list