[stork-users] Stork Agent failure with include files in configs

Slawek Figiel slawek at isc.org
Thu May 11 21:09:38 UTC 2023


Hello Bertrand!

The "include" statements in the Kea Control Agent configuration are 
supported from the 0.20.0 version.

Stork uses a following pattern to recognize the imports: 
<\?include\s*\"([^"]+\.json)\"\s*\?>

It means the included file must have the ".json" extension. But you used 
".include," which is rejected.

Best regards
Slawek

On 11/05/2023 21:30, Buclin, Bertrand wrote:
>
> Hi,
>
> The Stork Agent is not happy when a KEA configuration file has an 
> include statement in it. This is the error I see on the syslog:
>
> level="error" msg="Invalid Kea Control Agent config" file="kea.go:215" 
> error="Cannot parse Kea Control Agent config file: problem parsing Kea 
> configuration: invalid character '<' looking for beginning of object 
> key string: invalid character '<' looking for beginning of object key 
> string"
>
> And the configuration file it is trying to read is starting as:
>
> {
>
> "Control-agent": {
>
> <?include "/mnt/data/etc/kea/local-ctrl-agent.include"?>
>
> *Regards, Bertrand*
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/stork-users/attachments/20230511/15006261/attachment.htm>


More information about the Stork-users mailing list