config-backend: PD pools cannot be configured
I try to configure subnet using that command:
{'arguments': {'remote': {'type': 'mysql'},
'server-tags': ['default'],
'subnets': [{'id': 1,
'interface': 'eth0',
'pd-pools': [{'delegated-len': 96,
'prefix': '2001:db8:1::',
'prefix-len': 90}],
'pools': [{'pool': '3000::2-3000::2'}],
'rapid-commit': False,
'shared-network-name': '',
'subnet': '3000::/64'}]},
'command': 'remote-subnet6-set',
'service': ['dhcp6']}
and then I get:
Config reload failed:configuration error using file '/usr/local/etc/kea/kea.conf': a pool of type IA_PD, with the following address range: 2001:db8::-2001:db8:ff:ffff:ffff:ffff:ffff:ffff overlaps with an existing pool in the subnet: 3000::/64 to which it is being added. Statement is <SELECT s.subnet_id, s.subnet_prefix, s.client_class, s.interface, s.modification_ts, s.preferred_lifetime, s.rapid_commit, s.rebind_timer, s.relay, s.renew_timer, s.require_client_classes, s.reservation_mode, s.shared_network_name, s.user_context, s.valid_lifetime, p.id, p.start_address, p.end_address, p.subnet_id, p.modification_ts, d.id, d.prefix, d.prefix_length, d.delegated_prefix_length, d.subnet_id, d.modification_ts, x.option_id, x.code, x.value, x.formatted_value, x.space, x.persistent, x.dhcp6_subnet_id, x.scope_id, x.user_context, x.shared_network_name, x.pool_id, x.modification_ts, x.pd_pool_id, y.option_id, y.code, y.value, y.formatted_value, y.space, y.persistent, y.dhcp6_subnet_id, y.scope_id, y.user_context, y.shared_network_name, y.pool_id, y.modification_ts, y.pd_pool_id, o.option_id, o.code, o.value, o.formatted_value, o.space, o.persistent, o.dhcp6_subnet_id, o.scope_id, o.user_context, o.shared_network_name, o.pool_id, o.modification_ts, o.pd_pool_id, s.calculate_tee_times, s.t1_percent, s.t2_percent, srv.tag FROM dhcp6_subnet AS s INNER JOIN dhcp6_subnet_server AS a ON s.subnet_id = a.subnet_id INNER JOIN dhcp6_server AS srv ON (a.server_id = srv.id) OR (a.server_id = 1) LEFT JOIN dhcp6_pool AS p ON s.subnet_id = p.subnet_id LEFT JOIN dhcp6_pd_pool AS d ON s.subnet_id = d.subnet_id LEFT JOIN dhcp6_options AS x ON x.scope_id = 5 AND p.id = x.pool_id LEFT JOIN dhcp6_options AS y ON y.scope_id = 6 AND d.id = y.pd_pool_id LEFT JOIN dhcp6_options AS o ON o.scope_id = 1 AND s.subnet_id = o.dhcp6_subnet_id WHERE (srv.tag = ? OR srv.id = 1) AND s.modification_ts > ? ORDER BY s.subnet_id, p.id, x.option_id, o.option_id>
Using the same subnet config in json config file works.