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

Guido Günther agx at sigxcpu.org
Fri Jan 8 13:57:31 UTC 2016


Hi,
On Thu, Jan 07, 2016 at 08:15:19PM +0000, Nick Phillips wrote:
> On Thu, 2016-01-07 at 18:15 +0100, Guido Günther wrote:
> > 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
> 
> 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



More information about the Pkg-libvirt-maintainers mailing list