Comment 8 for bug 1314692

Revision history for this message
Julian Edwards (julian-edwards) wrote : Re: [Bug 1314692] Re: Thousands of duplicate leases issued for the same IP/MAC

On 01/05/14 02:00, Jason Hobbs wrote:
> There is a relevant option for DHCPD (from the dhcpd.conf man page):
> The one-lease-per-client statement
>
> one-lease-per-client flag;
>
> If this flag is enabled, whenever a client sends a DHCPREQUEST for a
> particular lease, the server will automatically free any other leases
> the client holds. This presumes that when the client sends a DHCPRE-
> QUEST, it has forgotten any lease not mentioned in the DHCPREQUEST -
> i.e., the client has only a single network interface and it does not
> remember leases it's holding on networks to which it is not currently
> attached. Neither of these assumptions are guaranteed or provable,
> so we urge caution in the use of this statement.
>

This would still cause new leases to get appended to the leases file AFAICS.

The only way around the problem in MAAS is to make the lease parsing
faster, which is bug 1305102.

Any other fixes need to be done in DHCPD I think, unless there is more
config that MAAS can tweak.