← Back to team overview

maas-devel team mailing list archive

Re: Idea for dynamic/static IP allocation

 

On 2 May 2014 15:12, Andres Rodriguez <andres.rodriguez@xxxxxxxxxxxxx> wrote:
>>
>> That's what happens now. However, it seems that dhcpd treats static
>> assignments within a dynamic range as advisory only, and will give
>> them out when it runs low of free addresses.
>
>
> Not really. This is why we are seeing the bugs at this point. The IP's
> become static on MAAS but never become static on the DHCP server. This is
> why we see the bugs where the IP listed in the node is not the one that's
> mapped with DNS, and is being assigned to a different node.  So I guess what
> I'm trying to say is that this static mapping should be made available to
> the DHCP server so there's no way that the DHCP gives the same IP to a
> different host. (Maybe updating the config, or having a .d/ directory with
> config of static leases?)

MAAS records the address in its database _and_ writes out a host entry
to dhcpd via omshell, so the mapping is available to dhcpd. However, it
seems that dhcpd is using the addresses reserved in these host entries
when there are no free addresses elsewhere.


Follow ups

References