[Pkg-libvirt-maintainers] Bug#623536: Bug#623536: Missing directory /var/lib/libvirt/dnsmasq

Ben Hutchings ben at decadent.org.uk
Mon Apr 25 01:31:25 UTC 2011


On Sun, 2011-04-24 at 10:07 +0200, Guido Günther wrote:
> tag 623536 +pending
> thanks
> 
> Hi Ben,
> 
> On Thu, Apr 21, 2011 at 01:39:18AM +0100, Ben Hutchings wrote:
> > Package: libvirt-bin
> > Version: 0.9.0-1
> > Severity: important
> > 
> > When configuring a NAT network, libvirtd invokes dnsmasq and tells it
> > to store state under /var/lib/libvirt/dnsmasq.  However, the package
> > does not create this directory.
> > 
> > This directory appears to have been required since version 0.8.1, but
> > it's not present in any versions of the package that I can see.
> > Perhaps libvirtd is now checking for failure of dnsmasq whereas
> > previously the failure was silent.
> 
> Thanks for you report. The directory is created by the daemon. Though I
> think I found a code path that missed the creation. I assume there was
> no error message in /var/log/syslog?

Here are the dnsmasq lines in syslog up to the failure:

Apr 16 01:42:51 localhost dnsmasq[1809]: no servers found in /etc/resolv.conf, will retry
Apr 16 01:42:58 localhost dnsmasq[1809]: reading /etc/resolv.conf
Apr 16 01:42:58 localhost dnsmasq[1809]: using nameserver 192.168.2.1#53
Apr 16 15:56:00 localhost dnsmasq[1809]: no servers found in /etc/resolv.conf, will retry
Apr 16 15:56:05 localhost dnsmasq[1809]: reading /etc/resolv.conf
Apr 16 15:56:05 localhost dnsmasq[1809]: using nameserver 192.168.2.1#53
Apr 16 20:58:32 localhost dnsmasq[1809]: no servers found in /etc/resolv.conf, will retry
Apr 16 20:58:37 localhost dnsmasq[1809]: reading /etc/resolv.conf
Apr 16 20:58:37 localhost dnsmasq[1809]: using nameserver 192.168.2.1#53
Apr 16 20:58:52 localhost dnsmasq[1809]: no servers found in /etc/resolv.conf, will retry
Apr 16 20:58:53 localhost NetworkManager[29244]: <info> Starting dnsmasq...
Apr 16 20:58:54 localhost dnsmasq[8247]: started, version 2.57 cachesize 150
Apr 16 20:58:54 localhost dnsmasq[8247]: compile time options: IPv6 GNU-getopt DBus I18N DHCP TFTP IDN
Apr 16 20:58:54 localhost dnsmasq-dhcp[8247]: DHCP, IP range 10.42.43.10 -- 10.42.43.100, lease time 1h
Apr 16 20:58:54 localhost dnsmasq[8247]: no servers found in /etc/resolv.conf, will retry
Apr 16 20:58:54 localhost dnsmasq[8247]: cleared cache
Apr 16 20:59:21 localhost dnsmasq[8247]: exiting on receipt of SIGTERM
Apr 16 21:00:23 localhost NetworkManager[29244]: <info> Starting dnsmasq...
Apr 16 21:00:23 localhost dnsmasq[9775]: started, version 2.57 cachesize 150
Apr 16 21:00:23 localhost dnsmasq[9775]: compile time options: IPv6 GNU-getopt DBus I18N DHCP TFTP IDN
Apr 16 21:00:23 localhost dnsmasq-dhcp[9775]: DHCP, IP range 10.42.43.10 -- 10.42.43.100, lease time 1h
Apr 16 21:00:23 localhost dnsmasq[9775]: no servers found in /etc/resolv.conf, will retry
Apr 16 21:00:23 localhost dnsmasq[9775]: cleared cache
Apr 16 21:02:34 localhost dnsmasq[9775]: exiting on receipt of SIGTERM
Apr 16 21:02:41 localhost dnsmasq[1809]: reading /etc/resolv.conf
Apr 16 21:02:41 localhost dnsmasq[1809]: using nameserver 192.168.2.1#53
Apr 17 14:21:07 localhost dnsmasq[1809]: no servers found in /etc/resolv.conf, will retry
Apr 17 14:21:13 localhost dnsmasq[1809]: reading /etc/resolv.conf
Apr 17 14:21:13 localhost dnsmasq[1809]: using nameserver 192.168.2.1#53
Apr 18 12:57:41 localhost dnsmasq[1809]: no servers found in /etc/resolv.conf, will retry
Apr 18 12:57:45 localhost dnsmasq[1809]: reading /etc/resolv.conf
Apr 18 12:57:45 localhost dnsmasq[1809]: using nameserver 192.168.2.1#53
Apr 18 23:59:28 localhost dnsmasq[1809]: no servers found in /etc/resolv.conf, will retry
Apr 18 23:59:33 localhost dnsmasq[1809]: reading /etc/resolv.conf
Apr 18 23:59:33 localhost dnsmasq[1809]: using nameserver 192.168.2.1#53
Apr 19 02:44:13 localhost dnsmasq[1809]: no servers found in /etc/resolv.conf, will retry
Apr 19 02:44:17 localhost dnsmasq[1809]: exiting on receipt of SIGTERM
Apr 19 04:33:01 localhost dnsmasq[1781]: cannot open or create lease file /var/lib/libvirt/dnsmasq/default.leases: No such file or directory
Apr 19 04:33:01 localhost dnsmasq[1781]: FAILED to start up

Here are the upgrade log lines in dpkg.log:

2011-04-17 20:49:19 upgrade libvirt-bin 0.8.8-3 0.9.0-1
2011-04-17 20:49:19 status half-configured libvirt-bin 0.8.8-3
2011-04-17 20:49:19 status unpacked libvirt-bin 0.8.8-3
2011-04-17 20:49:19 status half-installed libvirt-bin 0.8.8-3
2011-04-17 20:49:20 status half-installed libvirt-bin 0.8.8-3
2011-04-17 20:49:21 status unpacked libvirt-bin 0.9.0-1
2011-04-17 20:49:21 status unpacked libvirt-bin 0.9.0-1
2011-04-17 20:49:22 upgrade libvirt0 0.8.8-3 0.9.0-1
2011-04-17 20:49:22 status half-configured libvirt0 0.8.8-3
2011-04-17 20:49:22 status unpacked libvirt0 0.8.8-3
2011-04-17 20:49:22 status half-installed libvirt0 0.8.8-3
2011-04-17 20:49:23 status half-installed libvirt0 0.8.8-3
2011-04-17 20:49:24 status unpacked libvirt0 0.9.0-1
2011-04-17 20:49:24 status unpacked libvirt0 0.9.0-1
2011-04-17 20:49:49 upgrade python-libvirt 0.8.8-3 0.9.0-1
2011-04-17 20:49:49 status half-configured python-libvirt 0.8.8-3
2011-04-17 20:49:50 status unpacked python-libvirt 0.8.8-3
2011-04-17 20:49:50 status half-installed python-libvirt 0.8.8-3
2011-04-17 20:49:50 status half-installed python-libvirt 0.8.8-3
2011-04-17 20:49:50 status unpacked python-libvirt 0.9.0-1
2011-04-17 20:49:50 status unpacked python-libvirt 0.9.0-1
2011-04-18 01:41:47 configure libvirt0 0.9.0-1 <none>
2011-04-18 01:41:47 status unpacked libvirt0 0.9.0-1
2011-04-18 01:41:47 status half-configured libvirt0 0.9.0-1
2011-04-18 01:41:47 status installed libvirt0 0.9.0-1
2011-04-18 01:41:47 configure libvirt-bin 0.9.0-1 <none>
2011-04-18 01:41:47 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:47 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:47 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:47 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:47 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:47 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:47 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:47 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:47 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:47 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:47 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:47 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:47 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:48 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:48 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:48 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:48 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:48 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:48 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:48 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:48 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:48 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:48 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:48 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:48 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:48 status unpacked libvirt-bin 0.9.0-1
2011-04-18 01:41:48 status half-configured libvirt-bin 0.9.0-1
2011-04-18 01:41:50 status installed libvirt-bin 0.9.0-1
2011-04-18 01:42:06 configure python-libvirt 0.9.0-1 <none>
2011-04-18 01:42:06 status unpacked python-libvirt 0.9.0-1
2011-04-18 01:42:06 status half-configured python-libvirt 0.9.0-1
2011-04-18 01:42:07 status installed python-libvirt 0.9.0-1

Ben.

-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20110425/dfb6ca1d/attachment.pgp>


More information about the Pkg-libvirt-maintainers mailing list