← Back to team overview

maas-devel team mailing list archive

Re: Idea for dynamic/static IP allocation

 

On 06/05/14 02:50, Ryan Harper wrote:
> Not sure cleanup will be enough:
> 
> - lxc containers generate random mac addresses
> - dhcpd is designed to keep all MACs around forever in case it can hand
> the same IP back to a known host

Can you elaborate on this?  The lease file is cleaned every hour or so
and expired leases are removed.

> - dhcp lease time (default is quite large, IIUC to reduce the amount of
> dhcp traffic) 
> 
> Combine this with our lab in OIL which does a new openstack deployment
> every 30 minutes 24x7, times 8 runs in parallel (and we'll increase as
> we have new customer hardware).
> 
> I don't believe there is an easy way to tell dhcpd that an lxc is done
> with its IP.  And at the rate of which lxc containers are going to be
> going up and down this could create a lot of churn on maas re-writing
> dhcpd.leases and/or restarting DHCPd.

If the LXC is shut down correctly, dhcpc will release the lease.  If the
LXC is just ripped out, then the zombie lease will exist until it expires.


Follow ups

References