Can't use kea-dhcp6 as Prefix Delegation backend (like previously dibbler)
Hi I would like to use Kea for Openstack Neutron's pd "backend" (https://opendev.org/openstack/neutron ).
Currently we have a driver in Neutron for Dibbler which we use the following way (user workflow: https://docs.openstack.org/neutron/latest/admin/config-ipv6.html#prefix-delegation ):
Neutron l3-agent creates IP namespaces for the routers, and dibbler is started within the ip namespace with a config like this:
duid-type duid-en 8888 0x0f73d556b8364067bc6b3c2e61367d67 downlink-prefix-ifaces "none" script "/opt/stack/data/neutron/pd/877976ab-71c1-4c3f-ab76-281c5f2a61fa:0f73d556-b836-4067-bc6b-3c2e61367d67:qr-58b7a155-28/notify.sh" iface "qg-f63df9d7-a7" { bind-to-address fe80::f816:3eff:fe3a:f745 pd 1 }
sudo ip netns exec qrouter-7dc7553b-b3aa-4782-b534-e4fc61f8b54f dibbler-client start -w /opt/stack/data/neutron/pd/877976ab-71c1-4c3f-ab76-281c5f2a61fa:0f73d556-b836-4067-bc6b-3c2e61367d67:qr-58b7a155-28/client.conf
notify.sh is a hook script to make possible that the prefix is finally stored in db and user can fetch it via REST API.
I tried to use Kea isntead to reach something similar result:
_$ cat kea_test.conf
{
# DHCPv6 configuration starts on the next line
"Dhcp6": {
# Next we set up the interfaces to be used by the server.
"interfaces-config": {
"interfaces": [ "qg-f63df9d7-a7" ]
},
# Finally, we list the subnets from which we will be leasing addresses.
"subnet6": [
{
"subnet": "2001:db8:2222::/48",
"pools": [
{"pool": "2001:db8:2222::/64"}
],
"pd-pools": [
{
"prefix": "3000:1::",
"prefix-len": 64,
"delegated-len": 96
}
]
}
]
# DHCPv6 configuration ends with the next line
}}
sudo kea-dhcp6 -c kea_test.conf_
but without success. I saw that Kea has support for hooks (not sure I can use them as those are not in current distros), not sure if I can have similar hook like we have with dibbler.
environment: Ubuntu 20.04.3 LTS Linux mykeaenv 5.4.0-88-generic #99 (closed)-Ubuntu SMP Thu Sep 23 17:29:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux $ kea-dhcp6 -v 2.0.0