installation report on debian wheezy

Marcin Siodelski marcin at isc.org
Thu Sep 11 14:19:52 UTC 2014


Michael,

Not that long ago we realized that the default kea.conf file is broken
and should have been updated after renaming configuration parameter
"pool" to "pools" and changing its type from the string to a *list of maps*.

Fix for this is to be covered in this ticket:
http://kea.isc.org/ticket/3538 (which is BTW in the review queue).


We also know that the loggers configuration needs an update in the guide
and in the kea.conf. And yes, it is completely wrong. See this ticket:
http://kea.isc.org/ticket/3536

If I understand correctly your last statement you feel that specifying
an option is a pain? I agree. Historically, it was because the old
BIND10 infrastructure didn't handle the default values of parameters
well. As a result you need to specify all parameters for each option.
We're also planning to address it in the next Kea release:
http://kea.isc.org/ticket/3467

Thanks for your efforts!
Marcin



On 10/09/14 03:43, Michael Richardson wrote:
> 4) despite repeated attempts, I can't make it like my config:
> 
> # DHCPv4 configuration starts here.
> "Dhcp4":
> {
> # Add names of interfaces to listen on.
>   "interfaces": [ "eth0" ],
> 
> # Use Memfile lease database backend to store leases in a CSV file.
>   "lease-database": {
>     "type": "memfile"
>   },
> 
> # Global (inherited by all subnets) lease lifetime is mandatory parameter.
>   "valid-lifetime": 4000,
> 
> # Below an example of the simple subnet declaration. Uncomment to
> # enable it.
>   "subnet4": [
>        "subnet": "172.30.55.0/24",               <--- seems to be line 25.
>        "pools": [
>           { "pool": "172.30.55.192/26" }
>        ]
>   ]
> },
> 
> halibut-[~/kea] mcr 10106 %sudo keactrl start       
> INFO/keactrl: Starting kea-dhcp4 -c /sandel/etc/kea/kea.conf
> INFO/keactrl: Starting kea-dhcp6 -c /sandel/etc/kea/kea.conf
> 2014-09-09 20:16:58.557 ERROR [kea-dhcp4.dhcp4/10390] DHCP4_INIT_FAIL failed to initialize Kea server: configuration error using file '/sandel/etc/kea/kea.conf': ':' read, one of ",]" expected in /sandel/etc/kea/kea.conf:25:17
> INFO/keactrl: Starting kea-dhcp-ddns -c /sandel/etc/kea/kea.conf
> 
> 
> 5) okay, I played some more, and with:
> 
>   "Dhcp4":
> {
> # Add names of interfaces to listen on.
>   "interfaces": [ "eth0" ],
> 
> # Use Memfile lease database backend to store leases in a CSV file.
>   "lease-database": {
>     "type": "memfile"
>   },
> 
> # Global (inherited by all subnets) lease lifetime is mandatory parameter.
>   "valid-lifetime": 4000,
> 
> # Below an example of the simple subnet declaration. Uncomment to
> # enable it.
>   "subnet4": {
>        "subnet": "172.30.55.0/24",
>        "pools": [
>           { "pool": "172.30.55.192/26" }
>        ]
>   }
> },
>  
> 
> (that is, subnet4, takes a directionary, not an array, I get:
> 
> halibut-[~/kea] mcr 10113 %sudo keactrl start       
> INFO/keactrl: Starting kea-dhcp4 -c /sandel/etc/kea/kea.conf
> INFO/keactrl: Starting kea-dhcp6 -c /sandel/etc/kea/kea.conf
> 2014-09-09 20:19:37.726 INFO  [kea-dhcp4.dhcpsrv/10541] DHCPSRV_CFGMGR_ADD_IFACE listening on interface eth0
> 2014-09-09 20:19:37.741 INFO  [kea-dhcp4.dhcpsrv/10541] DHCPSRV_MEMFILE_DB opening memory file lease database: type=memfile universe=4
> 2014-09-09 20:19:37.749 INFO  [kea-dhcp4.dhcpsrv/10541] DHCPSRV_MEMFILE_LEASES_RELOAD4 reloading leases from /sandel/var/kea/kea-leases4.csv
> 2014-09-09 20:19:37.760 ERROR [kea-dhcp4.dhcp4/10541] DHCP4_PARSER_FAIL failed to create or run parser for configuration element subnet4: listValue() called on non-list Element
> 2014-09-09 20:19:37.763 ERROR [kea-dhcp4.dhcp4/10541] DHCP4_CONFIG_LOAD_FAIL configuration error using file: /sandel/etc/kea/kea.conf, reason: listValue() called on non-list Element
> 2014-09-09 20:19:37.786 ERROR [kea-dhcp4.dhcp4/10541] DHCP4_INIT_FAIL failed to initialize Kea server: configuration error using file '/sandel/etc/kea/kea.conf': listValue() called on non-list Element
> INFO/keactrl: Starting kea-dhcp-ddns -c /sandel/etc/kea/kea.conf
> 
> which sort of seems to be an improvement, because it's no longer a parser
> error, but rather an semantic error, but it seemto suggest that the [] was
> right, but something about it was really wrong.
> 
> AHA, the installed example CONFIG is CORRECT, but the documentation is
> totally borked.  [] around :-items would be invalid JSON anyway.
> 
> AHA 2... trailing , on dictionaries is not accepted.  
> I'm pretty sure that Javascript deals with it just fine, btw.
> 
> Finally, got it working. WII liked it, phones liked it.
> WTF... I gotta write the options out like that... wow... nobody gonna live
> with that long.
> 
> 
> 
> _______________________________________________
> kea-dev mailing list
> kea-dev at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-dev
> 


More information about the kea-dev mailing list