[Pkg-libvirt-maintainers] Bug#612305: /etc/init.d/libvirt-bin not LSB-compliant

Martin Dziobek dziobek at ihr.uni-stuttgart.de
Mon Feb 7 15:23:57 UTC 2011


Package: libvirt-bin
Version: 0.8.3-5
Severity: normal

The init-script /etc/init.d/libvirt-bin is not LSB-compliant.
According to 
http://refspecs.linux-foundation.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html
the script should have exit status 3 for the command "/etc/init.d/libvirt-bin status"
when libvirtd isnt running.
This makes the unaltered script unusable for pacemaker-based Linux-HA clusters
as denoted in http://www.linux-ha.org/wiki/LSB_Resource_Agent

Solution:
Add the right exit status:
---- snip -----

  status)
        log_daemon_msg "Checking status of $DESC" "$NAME"
        if running ;  then
            log_progress_msg "running"
            log_end_msg 0
        else
            log_progress_msg "not running"
            log_end_msg 1
            exit 3
	fi
    ;;


---- /snip ----

Thank you for debian !

Martin

===================================================

-- System Information:
Debian Release: 6.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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  libavahi-client3          0.6.27-2       Avahi client library
ii  libavahi-common3          0.6.27-2       Avahi common library
ii  libblkid1                 2.17.2-9       block device id library
ii  libc6                     2.11.2-10      Embedded GNU C Library: Shared lib
ii  libcap-ng0                0.6.4-1        An alternate posix capabilities li
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        the GNU TLS library - runtime libr
ii  libnl1                    1.1-6          library for dealing with netlink s
ii  libparted0debian1         2.3-5          The GNU Parted disk partitioning s
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.8.3-5        library for interfacing with diffe
ii  libxenstore3.0            4.0.1-2        Xenstore communications library fo
ii  libxml2                   2.7.8.dfsg-2   GNOME XML 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
pn  dnsmasq-base               <none>        (no description available)
pn  ebtables                   <none>        (no description available)
pn  gawk                       <none>        (no description available)
ii  iptables                   1.4.8-3       administration tools for packet fi
ii  libxml2-utils              2.7.8.dfsg-2  XML utilities
ii  netcat-openbsd             1.89-4        TCP/IP swiss army knife
ii  qemu-kvm                   0.12.5+dfsg-5 Full virtualization on x86 hardwar

Versions of packages libvirt-bin suggests:
pn  policykit-1                   <none>     (no description available)






More information about the Pkg-libvirt-maintainers mailing list