Ubuntu

dnsmasq option --dhcp-lease-max prevents startup for more than 1 network

Reported by Brian J. Murrell on 2011-02-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libvirt
Unknown
Unknown
libvirt (Ubuntu)
Low
Unassigned
Maverick
Low
Unassigned
Natty
Low
Unassigned

Bug Description

If one configures more than one network to use DHCP, multiple dnsmasq processes are started, one for each network. The problem is that each process has --dhcp-lease-max configured for the number of leases in it's own network. But since multiple dnsmasq processes share the standard lease file it's possible that more leases are already in the lease file than the newly configured network yielding an error when the new dnsmasq tries to start:

dnsmasq: too many stored leases

Steps to Reproduce:
1. define a /24 network in libvirt
2. obtain (or simulate by populating the leases file) 30 leases
3. define a second /28 network

Actual results:
libvirtd will report:

09:46:47.004: error : virRunWithHook:857 : internal error '/usr/sbin/dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/test.pid --conf-file= --listen-address 10.0.1.1 --except-interface lo --dhcp-range
10.0.1.1,10.0.1.14 --dhcp-lease-max=14' exited with non-zero status 5 and signal 0:
dnsmasq: too many stored leases

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: libvirt-bin 0.8.3-1ubuntu14
ProcVersionSignature: Ubuntu 2.6.35-24.42-generic 2.6.35.8
Uname: Linux 2.6.35-24-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Fri Feb 4 07:53:44 2011
ProcEnviron:
 PATH=(custom, user)
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: libvirt

There is a patch to fix this problem in the upstream bug report.

Changed in libvirt (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Serge Hallyn (serge-hallyn) wrote :

A natty libvirt tree with this patch added is at https://code.launchpad.net/~serge-hallyn/ubuntu/natty/libvirt/bug-713071/ .

I will create a ppa with the maverick libvirt with all patches for various bugs applied. I just don't know how to best approach this in terms of ordering SRUs.

Serge Hallyn (serge-hallyn) wrote :

A package for maverick with the proposed patch is building at ppa:serge-hallyn/libvirt-mav. The source is at https://code.launchpad.net/~serge-hallyn/ubuntu/maverick/libvirt/bugall/. The package and source tree also include the fix for bug 668032.

Changed in libvirt (Ubuntu):
status: Triaged → In Progress
Serge Hallyn (serge-hallyn) wrote :

The fix for this bug is in the oneiric package. The linked bzr tree can still be used if we choose to SRU for maverick and natty. However, I'd like to hear from anyone who needs this SRUd before risking a regression for a bug which doesn't seem to be affecting most people's uses.

Changed in libvirt (Ubuntu):
status: In Progress → Fix Released
Changed in libvirt (Ubuntu Maverick):
importance: Undecided → Low
Changed in libvirt (Ubuntu Natty):
importance: Undecided → Low
dino99 (9d9) on 2013-05-18
Changed in libvirt (Ubuntu Natty):
status: New → Invalid
Changed in libvirt (Ubuntu Maverick):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.