Activity log for bug #231060

Date Who What changed Old value New value Message
2008-05-16 12:50:09 Louis-Dominique Dubeau bug added bug
2008-05-29 20:54:00 Eric Shattow bug assigned to dnsmasq (Ubuntu)
2009-02-16 14:56:07 Thierry Carrez dnsmasq: status New Fix Released
2009-02-16 14:56:07 Thierry Carrez dnsmasq: statusexplanation Support for dnsmasq.d is now in Jaunty's dnsmasq. Ready to work with whatever libvirt would drop there.
2009-10-06 19:29:04 Chuck Short libvirt (Ubuntu): importance Undecided Low
2009-10-06 19:31:21 Chuck Short libvirt (Ubuntu): status New Triaged
2010-02-22 16:45:23 Emmet Hikory dnsmasq (Ubuntu): status Fix Released Triaged
2010-02-22 16:45:44 Emmet Hikory dnsmasq (Ubuntu): importance Undecided Low
2010-02-23 11:07:34 Emmet Hikory libvirt (Ubuntu): assignee Emmet Hikory (persia)
2010-02-23 11:07:37 Emmet Hikory dnsmasq (Ubuntu): assignee Emmet Hikory (persia)
2010-02-23 11:07:39 Emmet Hikory dnsmasq (Ubuntu): status Triaged In Progress
2010-02-23 11:07:47 Emmet Hikory libvirt (Ubuntu): status Triaged In Progress
2010-11-11 12:23:55 Eduardo Riesco bug added subscriber Eduardo Riesco
2012-06-01 11:40:54 Thomas Hood bug added subscriber Thomas Hood
2012-06-01 12:15:56 Emmet Hikory dnsmasq (Ubuntu): assignee Emmet Hikory (persia)
2012-06-01 12:15:59 Emmet Hikory libvirt (Ubuntu): assignee Emmet Hikory (persia)
2012-06-01 12:33:17 Thomas Hood dnsmasq (Ubuntu): status In Progress Confirmed
2012-06-01 12:33:19 Thomas Hood libvirt (Ubuntu): status In Progress Confirmed
2012-06-01 15:45:14 Launchpad Janitor libvirt (Ubuntu): status Confirmed Fix Released
2012-06-06 17:04:57 Launchpad Janitor branch linked lp:ubuntu/libvirt
2012-06-12 10:34:00 Thomas Hood dnsmasq (Ubuntu): status Confirmed Fix Released
2012-06-12 11:02:19 Loïc Minier dnsmasq (Ubuntu): status Fix Released Confirmed
2012-06-14 21:08:59 Serge Hallyn description Binary package hint: libvirt-bin 1. Release: Description: Ubuntu 8.04 Release: 8.04 2. Policies: libvirt-bin: Installed: 0.4.0-2ubuntu8 Candidate: 0.4.0-2ubuntu8 Version table: *** 0.4.0-2ubuntu8 0 500 http://us.archive.ubuntu.com hardy/main Packages 100 /var/lib/dpkg/status dnsmasq: Installed: 2.41-2ubuntu1 Candidate: 2.41-2ubuntu1 Version table: *** 2.41-2ubuntu1 0 500 http://us.archive.ubuntu.com hardy/universe Packages 100 /var/lib/dpkg/status 3. Expected behavior: I expected the dnsmasq package not to interfere with the running of libvirt-bin. 4. Actual behavior: What happened is that libvirt-bin became unable to provide DHCP services to guest OSes running in a kvm virtual machine. This is what I see in /var/log/syslog when libvirt-bin is able to start a virtual machine normally: May 16 08:25:57 bodhi avahi-daemon[5446]: Joining mDNS multicast group on interface vnet0.IPv4 with address 192.168.122.1. May 16 08:25:57 bodhi avahi-daemon[5446]: New relevant interface vnet0.IPv4 for mDNS. May 16 08:25:57 bodhi avahi-daemon[5446]: Registering new address record for 192.168.122.1 on vnet0.IPv4. May 16 08:25:57 bodhi dnsmasq[19217]: started, version 2.41 cachesize 150 May 16 08:25:57 bodhi dnsmasq[19217]: compile time options: IPv6 GNU-getopt no-ISC-leasefile DBus I18N TFTP May 16 08:25:57 bodhi dnsmasq[19217]: DHCP, IP range 192.168.122.2 -- 192.168.122.254, lease time 1h May 16 08:25:57 bodhi dnsmasq[19217]: reading /etc/resolv.conf May 16 08:25:57 bodhi dnsmasq[19217]: using nameserver 192.168.2.1#53 May 16 08:25:57 bodhi dnsmasq[19217]: read /etc/hosts - 9 addresses This is what I see when dnsmasq is installed: May 16 08:16:55 bodhi dnsmasq[18482]: failed to bind listening socket for 192.168.122.1: Address already in use May 16 08:16:55 bodhi dnsmasq[18482]: FAILED to start up Observations and workaround: 1. It is possible to restore normal functioning while keeping both packages installed: $ sudo /etc/init.d/dnsmasq stop After this, libvirt-bin will work properly. However this is obviously not a permanent solution. If dnsmasq is not required to be present on the machine, then the package can be removed and libvirt-bin functionality will be restored (until something else breaks it). 2. It seems the problem is that dnsmasq is started by the OS when booting and then libvirt-bin tries to start it again for its own purposes. 3. I do not know what the proper fix is. Is it stupid to want both dnsmasq and libvirt-bin installed at the same time on the same system? Must libvirt-bin be fixed to handle this situation? I don't know. I installed dnsmasq based on a suggestion that dnsmasq was required for libvirt to provide DHCP services to guest OSes but apparently only dnsmasq-base is required for that. So the information I got was erroneous but it does not change the fact that the current packaging specs do not prevent users from shooting themselves in the foot. ============ SRU justification =========== Impact: libvirt fails to bring up virbr0 when dnsmasq is installed Development fix: install a dnsmasq.d file to prevent the system-wide dnsmasq from binding to virbr0. Stable fix: same as Development fix Test case: virsh net-destroy virbr0 || true sudo apt-get purge libvirt-bin sudo apt-get -y install dnsmasq sudo apt-get -y install libvirt-bin Regression potential: There should be none, since we are simply telling the system-wide dnsmasq (if any) not to bind to the virbr0 which our own dnsmasq instance will bind to. =================================== Binary package hint: libvirt-bin 1. Release: Description: Ubuntu 8.04 Release: 8.04 2. Policies: libvirt-bin:   Installed: 0.4.0-2ubuntu8   Candidate: 0.4.0-2ubuntu8   Version table:  *** 0.4.0-2ubuntu8 0         500 http://us.archive.ubuntu.com hardy/main Packages         100 /var/lib/dpkg/status dnsmasq:   Installed: 2.41-2ubuntu1   Candidate: 2.41-2ubuntu1   Version table:  *** 2.41-2ubuntu1 0         500 http://us.archive.ubuntu.com hardy/universe Packages         100 /var/lib/dpkg/status 3. Expected behavior: I expected the dnsmasq package not to interfere with the running of libvirt-bin. 4. Actual behavior: What happened is that libvirt-bin became unable to provide DHCP services to guest OSes running in a kvm virtual machine. This is what I see in /var/log/syslog when libvirt-bin is able to start a virtual machine normally: May 16 08:25:57 bodhi avahi-daemon[5446]: Joining mDNS multicast group on interface vnet0.IPv4 with address 192.168.122.1. May 16 08:25:57 bodhi avahi-daemon[5446]: New relevant interface vnet0.IPv4 for mDNS. May 16 08:25:57 bodhi avahi-daemon[5446]: Registering new address record for 192.168.122.1 on vnet0.IPv4. May 16 08:25:57 bodhi dnsmasq[19217]: started, version 2.41 cachesize 150 May 16 08:25:57 bodhi dnsmasq[19217]: compile time options: IPv6 GNU-getopt no-ISC-leasefile DBus I18N TFTP May 16 08:25:57 bodhi dnsmasq[19217]: DHCP, IP range 192.168.122.2 -- 192.168.122.254, lease time 1h May 16 08:25:57 bodhi dnsmasq[19217]: reading /etc/resolv.conf May 16 08:25:57 bodhi dnsmasq[19217]: using nameserver 192.168.2.1#53 May 16 08:25:57 bodhi dnsmasq[19217]: read /etc/hosts - 9 addresses This is what I see when dnsmasq is installed: May 16 08:16:55 bodhi dnsmasq[18482]: failed to bind listening socket for 192.168.122.1: Address already in use May 16 08:16:55 bodhi dnsmasq[18482]: FAILED to start up Observations and workaround: 1. It is possible to restore normal functioning while keeping both packages installed: $ sudo /etc/init.d/dnsmasq stop After this, libvirt-bin will work properly. However this is obviously not a permanent solution. If dnsmasq is not required to be present on the machine, then the package can be removed and libvirt-bin functionality will be restored (until something else breaks it). 2. It seems the problem is that dnsmasq is started by the OS when booting and then libvirt-bin tries to start it again for its own purposes. 3. I do not know what the proper fix is. Is it stupid to want both dnsmasq and libvirt-bin installed at the same time on the same system? Must libvirt-bin be fixed to handle this situation? I don't know. I installed dnsmasq based on a suggestion that dnsmasq was required for libvirt to provide DHCP services to guest OSes but apparently only dnsmasq-base is required for that. So the information I got was erroneous but it does not change the fact that the current packaging specs do not prevent users from shooting themselves in the foot.
2012-06-19 09:02:00 Chris Halse Rogers nominated for series Ubuntu Precise
2012-06-19 09:02:00 Chris Halse Rogers bug task added dnsmasq (Ubuntu Precise)
2012-06-19 09:02:00 Chris Halse Rogers bug task added libvirt (Ubuntu Precise)
2012-06-28 09:10:00 Alexey Kotlyarov bug added subscriber Alexey Kotlyarov
2012-06-28 09:11:09 Alexey Kotlyarov removed subscriber Alexey Kotlyarov
2012-06-28 14:19:33 Thomas Hood dnsmasq (Ubuntu Precise): status New Invalid
2012-06-28 14:19:37 Thomas Hood dnsmasq (Ubuntu): status Confirmed Invalid
2012-06-28 15:51:13 Arnaud Soyez removed subscriber Arnaud Soyez
2012-07-10 06:02:23 Chris Halse Rogers libvirt (Ubuntu Precise): status New Fix Committed
2012-07-10 06:02:27 Chris Halse Rogers bug added subscriber Ubuntu Stable Release Updates Team
2012-07-10 06:02:33 Chris Halse Rogers bug added subscriber SRU Verification
2012-07-10 06:02:44 Chris Halse Rogers tags verification-needed
2012-07-10 06:25:14 Launchpad Janitor branch linked lp:ubuntu/precise-proposed/libvirt
2012-07-16 20:28:49 Stéphane Graber tags verification-needed verification-done
2012-07-17 22:52:11 Launchpad Janitor libvirt (Ubuntu Precise): status Fix Committed Fix Released
2014-11-11 10:28:07 vidasov bug added subscriber vidasov