#1111232 kea: default kea configuration file /etc/kea/kea-dhcp4.conf has an extra comma

#1111232#5
Date:
2025-08-15 22:05:10 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

Saw this warning in journalctl output on kea-dhcp4-server.service restart:

       Aug 15 17:37:43 momjian.us kea-dhcp4[3957778]: 2025-08-15 17:37:43.426 WARN
       [kea-dhcp4.dhcp4/3957778.140676964693888] DHCP4_CONFIG_SYNTAX_WARNING configuration syntax warning:
       /etc/kea/kea-dhcp4.conf:568.39: Extraneous comma. A piece of configuration may have been omitted.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

I prevented the warning by changing the /etc/kea/kea-dhcp4.conf file default config line:

	"pattern": "%-5p %m\n",

	to

	"pattern": "%-5p %m\n"

All lines after this in the JSON block are commented out, so there is no JSON after the comma and it is flagged a warning.

   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***