Re: CD, NFSROOT and expiring DHCP lease

Andrew Ruthven <[email protected]>
Newsgroups gmane.linux.debian.fai
Message-ID <[email protected]>
On Thu, 2021-04-29 at 12:04 +0200, Thomas Lange wrote:
> > > > > > On Thu, 29 Apr 2021 21:21:06 +1200, Andrew Ruthven <
> > > > > > [email protected]> said:
> 
>     > Dracut acts as a DHCP client, but is a single shot only. Once
> the
>     > lease expires nothing on the machine building rebuilt renews
>     > it.
> Hi Andrew,
> 
> you are right, in FAI the kernel (or maybe the initrd) configures the
> IP addresses and sets valid_lft and preferred_lft to forever.

It is the kernel which performs the DHCP request, and renews it as
required.

> Then a one-shot dhcp request is done, but with a different config and
> dhcp script to write the file boot.log.
> FAI does not start the dhclient to automatic renew the ip leases.
> This
> is a bug.

Cool. Good to know I'm not going crazy!

>     > Is there an approach so that ISO images created with fai-cd
> perform
>     > DHCP lease renewals?
> As a workaround, you could write a hook, that starts dhclient.
> Since the hooks are on the ISO and will be executed, this should work
> until I release a new FAI version with a fix.

Yup, sure thing. I'll see about doing this tomorrow.

> It would be nice if you could file a bug report for this.

Done. :)

Cheers,
Andrew

-- 
Andrew Ruthven, Wellington, New Zealand
[email protected]         |
Catalyst Cloud:           | This space intentionally left blank
 https://catalystcloud.nz |
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.