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

Bug#810141: libvirt-daemon-system postinst tries to touch files in nonexistent dirs

18 views
Skip to first unread message

Nick Phillips

unread,
Jan 6, 2016, 4:20:02 PM1/6/16
to
Package: libvirt-daemon-system
Version: 1.2.9-9+deb8u1
Severity: normal

On upgrade from wheezy to jessie, libvirt-daemon-system failed to complete
installation - postinst was trying to touch /var/log/libvirt/uml/.placeholder
and /var/log/libvirt/lxc/.placeholder - when neither of those directories
exist.

Had to manually create dirs in order for postinst to complete.


-- System Information:
Debian Release: 8.2
APT prefers stable
APT policy: (990, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/24 CPU cores)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libvirt-daemon-system depends on:
ii adduser 3.113+nmu3
ii gettext-base 0.19.3-2
ii init-system-helpers 1.22
ii libapparmor1 2.9.0-3
ii libaudit1 1:2.4-1+b1
ii libavahi-client3 0.6.31-5
ii libavahi-common3 0.6.31-5
ii libblkid1 2.25.2-6
ii libc6 2.19-18+deb8u1
ii libcap-ng0 0.7.4-2
ii libdbus-1-3 1.8.20-0+deb8u1
ii libdevmapper1.02.1 2:1.02.90-2.2
ii libgnutls-deb0-28 3.3.8-6+deb8u3
ii libnl-3-200 3.2.24-2
ii libnl-route-3-200 3.2.24-2
ii libnuma1 2.0.10-1
ii librados2 0.80.7-2
ii librbd1 0.80.7-2
ii libsasl2-2 2.1.26.dfsg1-13+deb8u1
ii libselinux1 2.3-2
ii libssh2-1 1.4.3-4.1
ii libsystemd0 215-17+deb8u2
ii libvirt-clients 1.2.9-9+deb8u1
ii libvirt-daemon 1.2.9-9+deb8u1
ii libvirt0 1.2.9-9+deb8u1
ii libxml2 2.9.1+dfsg1-5+deb8u1
ii libyajl2 2.1.0-2
ii logrotate 3.8.7-1+b1
ii policykit-1 0.105-8

Versions of packages libvirt-daemon-system recommends:
ii bridge-utils 1.5-9
ii dmidecode 2.12-3
ii dnsmasq-base 2.72-3+deb8u1
ii ebtables 2.0.10.4-3
ii iproute2 3.16.0-2
ii iptables 1.4.21-2+b1
ii parted 3.2-7
ii pm-utils 1.4.1-15

Versions of packages libvirt-daemon-system suggests:
pn apparmor <none>
pn auditd <none>
pn radvd <none>
ii systemd 215-17+deb8u2
pn systemtap <none>

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

-- no debconf information

Guido Günther

unread,
Jan 7, 2016, 12:20:04 PM1/7/16
to
Hi,
On Thu, Jan 07, 2016 at 09:42:08AM +1300, Nick Phillips wrote:
> Package: libvirt-daemon-system
> Version: 1.2.9-9+deb8u1
> Severity: normal
>
> On upgrade from wheezy to jessie, libvirt-daemon-system failed to complete
> installation - postinst was trying to touch /var/log/libvirt/uml/.placeholder
> and /var/log/libvirt/lxc/.placeholder - when neither of those directories
> exist.
>
> Had to manually create dirs in order for postinst to complete.

The dirs are created by the package itself, e.g.

dpkg -S /var/log/libvirt/uml

So if that failed, dpkg did not create the dirs (e.g. due to some
--path-exclude pattern).

We'd need more logs to tell. We had lots of successful upgrades from
wheezy to jessie already, can you think of s.th. that could be different
on your system?
Cheers,
-- Guido

Guido Günther

unread,
Jan 8, 2016, 9:10:05 AM1/8/16
to
Hi,
On Thu, Jan 07, 2016 at 08:15:19PM +0000, Nick Phillips wrote:
> No, I can't. It was odd though, that I also had messages complaining
> about failing to register a libvirt service as one was already being
> provided by a different package (I think removing libvirt-bin manually
> fixed that). Is it possible that removing that package removed them for
> some reason?

Yes, that's possible. You shouldn't have to remove the package and I
think that what made the dpkg fail to take over the dirs from another
libvirt-bin to libvirt-daemon-system.

So I think there's no bug in libvirt itself here related to the
directories. The problem with the registration of the service would be a
bug though but I would need to know how to reproduce.

Cheers
-- Guido
0 new messages