[Kea-users] kea-dhcp4 -t file: check the configuration file syntax and exit but fails because of interface

perl-list perl-list at network1.net
Fri Aug 27 13:38:40 UTC 2021


I understand, but you don't have to put the configuration file in its final home, you could drop it in /tmp/ or equivalent and run kea-dhcp4 -t /tmp/kea-dhcp4.conf and then copy it into place if it passes the test.

I doubt that ISC is going to be keen to not check certain bits of the configuration file (such as the interface section).

----- Original Message -----
> From: "Veronique Lefebure" <veronique.lefebure at cern.ch>
> To: "perl-list" <perl-list at network1.net>, "kea-users" <Kea-users at lists.isc.org>
> Sent: Friday, August 27, 2021 9:29:40 AM
> Subject: Re: [Kea-users] kea-dhcp4 -t file: check the configuration file syntax and exit but fails because of interface

> We want to be able to validate the configuration file without
> touching/accessing the production servers, for example for
> developing/testing/validating changes in the software that generates the
> configuration file.

> On 27/08/2021 15:12, perl-list wrote:
> > Is it not possible to, instead, check the conf file on host2 where it will live?

> > ----- Original Message -----
> >> From: "Veronique Lefebure" <veronique.lefebure at cern.ch>
> >> To: "kea-users" <Kea-users at lists.isc.org>
> >> Sent: Friday, August 27, 2021 5:39:15 AM
>>> Subject: [Kea-users] kea-dhcp4 -t file: check the configuration file syntax and
> >> exit but fails because of interface
> >> Hi,
> >> Before deploying a new kea configuration file on our DHCP server, we
> >> want to validate it.
> >> The configuration file "kea-dhcp4.conf" is generated on host1 where we
> >> want to validate it by running
> >> kea-dhcp4 -t kea-dhcp4.conf
> >> And once validation has passed, we plan to deploy "kea-dhcp4.conf" ho
> >> the KEA server running on host2.
> >> The problem we have is that validation fails with the following error:
> >> Error encountered: Failed to select interface: interface 'xxxxx' doesn't
> >> exist in the system (kea-dhcp4.conf:225:9) (kea-dhcp4.conf:224:7)
> >> coming from
> >> "interfaces-config": {
> >> "interfaces": [
> >> "xxxxx"
> >> ],
> >> "dhcp-socket-type": "udp"
> >> },
> >> Interface 'xxxxx' may exist on host2 but not on host1.
> >> Is anyone encountering the same problem ?
> >> Is there a work-around ?
> >> Thanks,
> >> Veronique
> >> _______________________________________________
> >> ISC funds the development of this software with paid support subscriptions.
> >> Contact us at https://www.isc.org/contact/ for more information.
> >> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
> >> Kea-users mailing list
> >> Kea-users at lists.isc.org
> >> https://lists.isc.org/mailman/listinfo/kea-users
> > _______________________________________________
>> ISC funds the development of this software with paid support subscriptions.
> > Contact us at https://www.isc.org/contact/ for more information.

> > To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

> > Kea-users mailing list
> > Kea-users at lists.isc.org
> > https://lists.isc.org/mailman/listinfo/kea-users


More information about the Kea-users mailing list