Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#757952: libvirt-daemon-system: upgrade from 1.2.4-3 to 1.2.7-6 fails- the old daemon is still running

153 views
Skip to first unread message

Christian Weeks

unread,
Aug 12, 2014, 1:40:02 PM8/12/14
to
Package: libvirt-daemon-system
Version: 1.2.7-6
Severity: normal

Dear Maintainer,

I just ran a dist-upgrade to uptake the latest sid updates. libvirt appears
to have upgraded from 1.2.4-3 to 1.2.7-6, and is failing during upgrade.

# dpkg --configure --pending
Setting up libvirt-daemon-system (1.2.7-6) ...
Job for libvirtd.service failed. See 'systemctl status libvirtd.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript libvirtd, action "start" failed.
dpkg: error processing package libvirt-daemon-system (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of libvirt-bin:
libvirt-bin depends on libvirt-daemon-system (>= 1.2.7-6); however:
Package libvirt-daemon-system is not configured yet.

dpkg: error processing package libvirt-bin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-boxes:
gnome-boxes depends on libvirt-bin; however:
Package libvirt-bin is not configured yet.

dpkg: error processing package gnome-boxes (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libvirt-daemon-system
libvirt-bin
gnome-boxes

The systemd journal doesn't contain much that is useful:

# systemctl status libvirtd.service
libvirtd.service - Virtualization daemon
Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled)
Active: failed (Result: start-limit) since Tue 2014-08-12 13:13:10 EDT; 4min 55s ago
Docs: man:libvirtd(8)
http://libvirt.org
Process: 11588 ExecStart=/usr/sbin/libvirtd $libvirtd_opts (code=exited, status=1/FAILURE)
Main PID: 11588 (code=exited, status=1/FAILURE)
CGroup: /system.slice/libvirtd.service

Aug 12 13:13:10 smartie systemd[1]: Failed to start Virtualization daemon.
Aug 12 13:13:10 smartie systemd[1]: Unit libvirtd.service entered failed state.
Aug 12 13:13:10 smartie systemd[1]: libvirtd.service holdoff time over, scheduling restart.
Aug 12 13:13:10 smartie systemd[1]: Stopping Virtualization daemon...
Aug 12 13:13:10 smartie systemd[1]: Starting Virtualization daemon...
Aug 12 13:13:10 smartie systemd[1]: libvirtd.service start request repeated too quickly, refus...art.
Aug 12 13:13:10 smartie systemd[1]: Failed to start Virtualization daemon.
Aug 12 13:13:10 smartie systemd[1]: Unit libvirtd.service entered failed state.

However, running the daemon doesn't work:

# libvirtd
2014-08-12 17:19:27.217+0000: 11832: info : libvirt version: 1.2.7, package: 6 (root 2014-08-08-16:09:22 bogon)
2014-08-12 17:19:27.217+0000: 11832: error : virPidFileAcquirePath:414 : Failed to acquire pid file '/var/run/libvirtd.pid': Resource temporarily unavailable

It appears the pid file already exists, owned by the previous libvirt daemon:

# ps aux | fgrep virt
root 1202 0.0 0.0 413344 15744 ? Ssl Aug08 0:00 /usr/sbin/libvirtd

My guess: you're not shutting down the old daemon during the upgrade.

Killing the old daemon fixes the issue:

root@smartie:~# kill 1202
root@smartie:~#
root@smartie:~#
root@smartie:~# dpkg --configure --pending
Setting up libvirt-daemon-system (1.2.7-6) ...
Setting up libvirt-bin (1.2.7-6) ...
Setting up gnome-boxes (3.12.3-1) ...

I hope this helps.

-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (501, 'unstable'), (500, 'stable'), (399, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libvirt-daemon-system depends on:
ii adduser 3.113+nmu3
ii gettext-base 0.19.2-1
ii init-system-helpers 1.20
ii libapparmor1 2.8.0-5.1+b1
ii libaudit1 1:2.3.7-1
ii libavahi-client3 0.6.31-4
ii libavahi-common3 0.6.31-4
ii libblkid1 2.20.1-5.8
ii libc6 2.19-7
ii libcap-ng0 0.7.3-1.1
ii libdbus-1-3 1.8.6-1
ii libdevmapper1.02.1 2:1.02.85-2
ii libgnutls-deb0-28 3.2.16-1
ii libnl-3-200 3.2.24-2
ii libnl-route-3-200 3.2.24-2
ii libnuma1 2.0.9-1
ii librados2 0.80.5-1
ii librbd1 0.80.5-1
ii libsasl2-2 2.1.26.dfsg1-11
ii libselinux1 2.3-1
ii libssh2-1 1.4.3-3
ii libsystemd-daemon0 208-7
ii libvirt-clients 1.2.7-6
ii libvirt-daemon 1.2.7-6
ii libvirt0 1.2.7-6
ii libxml2 2.9.1+dfsg1-4
ii libyajl2 2.1.0-1
ii logrotate 3.8.7-1

Versions of packages libvirt-daemon-system recommends:
ii bridge-utils 1.5-9
ii dmidecode 2.12-3
ii dnsmasq-base 2.71-1
ii ebtables 2.0.10.4-3
ii iproute2 3.16.0-1
ii iptables 1.4.21-2
ii parted 3.2-4
ii pm-utils 1.4.1-15

Versions of packages libvirt-daemon-system suggests:
pn apparmor <none>
pn auditd <none>
ii policykit-1 0.112-2
pn radvd <none>
ii systemd 208-7
pn systemtap <none>

-- Configuration Files:
/etc/libvirt/qemu.conf [Errno 13] Permission denied: u'/etc/libvirt/qemu.conf'

-- no debconf information


--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Guido Günther

unread,
Aug 12, 2014, 3:40:02 PM8/12/14
to
On Tue, Aug 12, 2014 at 01:21:35PM -0400, Christian Weeks wrote:
> Package: libvirt-daemon-system
> Version: 1.2.7-6
> Severity: normal
>
> Dear Maintainer,
>
> I just ran a dist-upgrade to uptake the latest sid updates. libvirt appears
> to have upgraded from 1.2.4-3 to 1.2.7-6, and is failing during upgrade.
>
> # dpkg --configure --pending
> Setting up libvirt-daemon-system (1.2.7-6) ...

Do you have the output of the original update available? It's supposed
to get stopped in the preinst. See

/var/lib/dpkg/info/libvirt-daemon-system.preinst

Maybe the new libvirt-bin got already unpacked and therefore the
service file removed? The output of /var/log/dpkg.log should tell us.

Laurent, maybe we even need to ship a libvirt-bin.service in the libvirt-bin
package to allow for the upgrade to work?
Cheers,
-- Guido

Guido Günther

unread,
Aug 13, 2014, 3:10:02 AM8/13/14
to
On Tue, Aug 12, 2014 at 09:35:21PM +0200, Guido G�nther wrote:
> On Tue, Aug 12, 2014 at 01:21:35PM -0400, Christian Weeks wrote:
> > Package: libvirt-daemon-system
> > Version: 1.2.7-6
> > Severity: normal
> >
> > Dear Maintainer,
> >
> > I just ran a dist-upgrade to uptake the latest sid updates. libvirt appears
> > to have upgraded from 1.2.4-3 to 1.2.7-6, and is failing during upgrade.
> >
> > # dpkg --configure --pending
> > Setting up libvirt-daemon-system (1.2.7-6) ...
>
> Do you have the output of the original update available? It's supposed
> to get stopped in the preinst. See
>
> /var/lib/dpkg/info/libvirt-daemon-system.preinst
>
> Maybe the new libvirt-bin got already unpacked and therefore the
> service file removed? The output of /var/log/dpkg.log should tell us.
>
> Laurent, maybe we even need to ship a libvirt-bin.service in the libvirt-bin
> package to allow for the upgrade to work?

Answering myself: A botter solution is to also stop libvirt-bin in
libvirt-bin's preinst so we're independent of the unpack order. The
dpkg.log of the update would still be helpful though to be sure that's
the cause of the fallure.
Cheers
0 new messages