Kea issueshttps://gitlab.isc.org/isc-projects/kea/-/issues2019-03-27T21:16:52Zhttps://gitlab.isc.org/isc-projects/kea/-/issues/546Parse Reconfig accept option and save client context in leases2019-03-27T21:16:52ZFrancis DupontParse Reconfig accept option and save client context in leasesFrom https://github.com/isc-projects/kea/pull/100From https://github.com/isc-projects/kea/pull/100Kea1.6Francis DupontFrancis Duponthttps://gitlab.isc.org/isc-projects/kea/-/issues/462DHCPv6 support for cb_cmds hook2019-02-08T14:57:56ZFrancis DupontDHCPv6 support for cb_cmds hookKea1.6Francis DupontFrancis Duponthttps://gitlab.isc.org/isc-projects/kea/-/issues/461DHCPv6 support in MySQL config backend hook.2019-02-08T14:50:18ZFrancis DupontDHCPv6 support in MySQL config backend hook.DHCPv6 support in/for src/hooks/dhcp/mysql_cbDHCPv6 support in/for src/hooks/dhcp/mysql_cbKea1.6Francis DupontFrancis Duponthttps://gitlab.isc.org/isc-projects/kea/-/issues/459Config backend support in DHCPv6 server.2019-02-08T14:17:02ZFrancis DupontConfig backend support in DHCPv6 server.Include code changes with unit tests for src/bin/dhcp6.Include code changes with unit tests for src/bin/dhcp6.Kea1.6Francis DupontFrancis Duponthttps://gitlab.isc.org/isc-projects/kea/-/issues/594New host cache commands.2019-05-22T08:04:14ZFrancis DupontNew host cache commands.At least add a new command to return the number of entries.At least add a new command to return the number of entries.Kea1.6Francis DupontFrancis Duponthttps://gitlab.isc.org/isc-projects/kea/-/issues/589Ubuntu 19.04 warnings2019-05-22T07:52:46ZFrancis DupontUbuntu 19.04 warningsTrying to compile Kea on Ubuntu 19.04 with g++ 8.3 with MySQL support it fails with 2 warnings:
- a static cast with a const type (illegal because type qualifiers are not allowed): fix is to remove the const which BTW is useless
- an u...Trying to compile Kea on Ubuntu 19.04 with g++ 8.3 with MySQL support it fails with 2 warnings:
- a static cast with a const type (illegal because type qualifiers are not allowed): fix is to remove the const which BTW is useless
- an unused parameter in a lambda: fix is to remove the parameter name.Kea1.6Francis DupontFrancis Duponthttps://gitlab.isc.org/isc-projects/kea/-/issues/561Make kea to build on last macOS / Xcode2019-05-23T09:40:16ZFrancis DupontMake kea to build on last macOS / XcodeI updated macOS, Xcode, all brewed dependencies, libyang/sysrepo. I am trying to make Kea with premium to build with all options on. Unfortunately the last clang (1001.0.46.3) does not accept some features.
This ticket is to fix all iss...I updated macOS, Xcode, all brewed dependencies, libyang/sysrepo. I am trying to make Kea with premium to build with all options on. Unfortunately the last clang (1001.0.46.3) does not accept some features.
This ticket is to fix all issues which block build and make check on macOS (the idea is they should block on some other systems too).Kea1.6Francis DupontFrancis Duponthttps://gitlab.isc.org/isc-projects/kea/-/issues/558some host retrieval operations can not be executed in read only database2019-04-16T07:09:19ZRazvan Becheriusome host retrieval operations can not be executed in read only databasequeries like:
GET_HOST_SUBID4, // Gets hosts by IPv4 SubnetID
GET_HOST_SUBID6, // Gets hosts by IPv6 SubnetID
GET_HOST_SUBID4_PAGE, // Gets hosts by IPv4 SubnetID beginning by HID
GET_HOST_...queries like:
GET_HOST_SUBID4, // Gets hosts by IPv4 SubnetID
GET_HOST_SUBID6, // Gets hosts by IPv6 SubnetID
GET_HOST_SUBID4_PAGE, // Gets hosts by IPv4 SubnetID beginning by HID
GET_HOST_SUBID6_PAGE, // Gets hosts by IPv6 SubnetID beginning by HID
have index in enum 'StatementIndex' after
INSERT_HOST
This will cause on both mysql and postgresql to not enable these queries in read only database:
easy code lookup: search for:
WRITE_STMTS_BEGINKea1.6Francis DupontFrancis Duponthttps://gitlab.isc.org/isc-projects/kea/-/issues/536Typo in ARM for option sip-ua-cs-domains2019-03-21T11:26:29ZShawn RouthierTypo in ARM for option sip-ua-cs-domainsThe Kea ARM specifies the option code for sip-ua-cs-domains as 142 instead of 141
The code appears to be properly using 141.The Kea ARM specifies the option code for sip-ua-cs-domains as 142 instead of 141
The code appears to be properly using 141.Kea1.6Francis DupontFrancis Duponthttps://gitlab.isc.org/isc-projects/kea/-/issues/519dhcp server response an empty RAI field2019-03-12T09:02:18ZGhost Userdhcp server response an empty RAI fieldIn rfc 3046 ------2.2 Server Operation ,it said If a server is unable to copy a full Relay Agent Information field into a response, it SHALL send the response without the Relay Information Field, and SHOULD increment an error counte...In rfc 3046 ------2.2 Server Operation ,it said If a server is unable to copy a full Relay Agent Information field into a response, it SHALL send the response without the Relay Information Field, and SHOULD increment an error counter for the situation.but kea dhcp response an illegal empty field,![image](/uploads/7fd7c7850d3361576b30766e7d8d0da3/image.png)
how to make dhcp ignore the option upon receive and will not echo it back on responses. thank you !Kea1.6Francis DupontFrancis Duponthttps://gitlab.isc.org/isc-projects/kea/-/issues/514setting echo-client-id via cb-cmds fails during config-reload2019-03-12T09:45:40ZMichal Nowikowskisetting echo-client-id via cb-cmds fails during config-reloadsetting value command:
```javascript
{'arguments': {'parameters': [{'name': 'echo-client-id', 'value': 'false'}],
'remote': {'type': 'mysql'},
'server-tags': ['abc']},
'command': 'remote-global-parameter4-s...setting value command:
```javascript
{'arguments': {'parameters': [{'name': 'echo-client-id', 'value': 'false'}],
'remote': {'type': 'mysql'},
'server-tags': ['abc']},
'command': 'remote-global-parameter4-set',
'service': ['dhcp4']}
```
answer:
```javascript
[
{
"result": 0,
"text": "DHCPv4 global parameter successfully set."
}
]
```
reload result:
```javascript
{'arguments': {}, 'command': 'config-reload', 'service': ['dhcp4']}
[
{
"result": 1,
"text": "Config reload failed:configuration error using file '/usr/local/etc/kea/kea.conf': Invalid value:\"false\" explict global:echo-client-id"
}
]
```Kea1.6Francis DupontFrancis Duponthttps://gitlab.isc.org/isc-projects/kea/-/issues/512remote-network4-del update2019-03-12T22:11:43ZFrancis Dupontremote-network4-del updateYou asked me what the code should do with the subnets when the shared network is being deleted. I updated the CB design doc: https://gitlab.isc.org/isc-projects/kea/wikis/designs/configuration-in-db-design#remote-network4-del
with two v...You asked me what the code should do with the subnets when the shared network is being deleted. I updated the CB design doc: https://gitlab.isc.org/isc-projects/kea/wikis/designs/configuration-in-db-design#remote-network4-del
with two variants that differ by "subnets-action" parameter. We need to add support for this parameter to explicitly control whether the subnets are kept or deleted. This idea is derived from the subnets_cmds hook and I believe that's the best option here too.
Note that the variant that removes a shared network but keeps subnets requires to update shared_network_name column for all these subnets to null. Perhaps the easiest way to do it via an SQL trigger.Kea1.6Francis DupontFrancis Duponthttps://gitlab.isc.org/isc-projects/kea/-/issues/509Configuration knob to disable client-id lookup2019-05-10T11:22:24ZTomek MrugalskiConfiguration knob to disable client-id lookupWhile investigating a performance issue for a [customer issue](https://support.isc.org/Ticket/Display.html?id=14124), @tmark came up with an optimization idea to optionally disable client-id lookup.
Kea does two lease lookups: client-id...While investigating a performance issue for a [customer issue](https://support.isc.org/Ticket/Display.html?id=14124), @tmark came up with an optimization idea to optionally disable client-id lookup.
Kea does two lease lookups: client-id (if client sent client-id) and if a lease is not found, another one by MAC address. If admin doesn't care about client-id, the first one could be disabled.
This ticket's goal is to make this lookup optional. Obviously it should be enabled by default, but there should be a knob to disable it.
Instead of adding a new config knob, we should expand the meaning of existing match-client-id parameter.Kea1.6Francis DupontFrancis Duponthttps://gitlab.isc.org/isc-projects/kea/-/issues/503Refuse option definitions which duplicate a name/space2019-04-12T13:45:13ZFrancis DupontRefuse option definitions which duplicate a name/spaceToday it is allowed to define two options in the same space and with the same name because duplicates are checked only for code (already existing definition with the same code or conflicts with a standard option definition still with the...Today it is allowed to define two options in the same space and with the same name because duplicates are checked only for code (already existing definition with the same code or conflicts with a standard option definition still with the same code).Kea1.6Francis DupontFrancis Duponthttps://gitlab.isc.org/isc-projects/kea/-/issues/499remote-global-parameter4-set command allows to configure kea with non existin...2019-03-07T15:52:55ZWlodzimierz Wencelremote-global-parameter4-set command allows to configure kea with non existing parameterscommand:
```
{
"arguments": {
"parameters": [
{
"name": "boot-fiabcsd",
"value": "/dev/null"
}
],
"remote": {
"type": "mysql"
},
"server-tags": [
"abc"
]
},
"command":...command:
```
{
"arguments": {
"parameters": [
{
"name": "boot-fiabcsd",
"value": "/dev/null"
}
],
"remote": {
"type": "mysql"
},
"server-tags": [
"abc"
]
},
"command": "remote-global-parameter4-set"
}
```
so I used non existing name. Result:
```
{
"result": 0,
"text": "DHCPv4 global parameter successfully set."
}
```
It wouldn't be bad but after kea reconfigure it accepts this as correct config and `config-get` returns:
```
{
"arguments": {
"Dhcp4": {
"boot-fiabcsd": "/dev/null",
"config-control": {
"config-databases": [
{
[...]
```Kea1.6Francis DupontFrancis Duponthttps://gitlab.isc.org/isc-projects/kea/-/issues/498pkg-config usage in kea libs is wrong2019-03-11T15:26:48ZOndřej Surýpkg-config usage in kea libs is wrong1. The file should be named `kea-dns++.pc` and not `dns++`
2. It references b10 libraries: `-lb10-dns++ -lb10-cryptolink -lb10-util -lb10-exceptions`
3. It references `-lm` which is probably not needed (I am guessing kea-dns++ doesn't ex...1. The file should be named `kea-dns++.pc` and not `dns++`
2. It references b10 libraries: `-lb10-dns++ -lb10-cryptolink -lb10-util -lb10-exceptions`
3. It references `-lm` which is probably not needed (I am guessing kea-dns++ doesn't export any of it's symbols)
It's also quite confusing that this is the only pkg-config file and it's only `dns++`. You should probably have accompanying .pc file (with correct intra-library dependencies declared) for every kea library.Kea1.6Francis DupontFrancis Duponthttps://gitlab.isc.org/isc-projects/kea/-/issues/485Stricter check for flex in configure.2019-03-11T13:10:02ZFrancis DupontStricter check for flex in configure.I propose to change
```
if test "x$LEX" == "x"; then
```
into
```
if test "x$LEX" != "xflex"; then
```
in the unlikely but possible case where lex but but not flex is available as recommended in AC_PROG_LEX documentation.I propose to change
```
if test "x$LEX" == "x"; then
```
into
```
if test "x$LEX" != "xflex"; then
```
in the unlikely but possible case where lex but but not flex is available as recommended in AC_PROG_LEX documentation.Kea1.6Francis DupontFrancis Duponthttps://gitlab.isc.org/isc-projects/kea/-/issues/478Improve error message: "Database access parameter 'type' does not specify a s...2019-03-06T20:25:35ZCathy AlmondImprove error message: "Database access parameter 'type' does not specify a supported database backend:mysql"---
name: Improve error message: "Database access parameter 'type' does not specify a supported database backend:mysql"
about: Please make it clearer why this error is being emitted. The 'type' is a valid configuration option. The prob...---
name: Improve error message: "Database access parameter 'type' does not specify a supported database backend:mysql"
about: Please make it clearer why this error is being emitted. The 'type' is a valid configuration option. The problem is that the build does not include support for mysql back-end.
---
These error messages don't explain well what the problem is and where to look to fix it:
> root@debian:/opt/kea-1.5.0# 2019-02-18 17:26:12.746 ERROR [kea-dhcp4.dhcp4/51240] DHCP4_CONFIG_LOAD_FAIL configuration error using file: /usr/local/etc/kea/kea-dhcp4.conf, reason: Unable to open database: Database access parameter 'type' does not specify a supported database backend:mysql
> 2019-02-18 17:26:12.746 ERROR [kea-dhcp4.dhcp4/51240] DHCP4_INIT_FAIL failed to initialize Kea server: configuration error using file '/usr/local/etc/kea/kea-dhcp4.conf': Unable to open database: Database access parameter 'type' does not specify a supported database backend:mysql
A better message would be something like:
"Unable to open database: The Kea server has not been built with support for database type: mysql"
See [#14213](https://support.isc.org/Ticket/Display.html?id=14213)Kea1.6Francis DupontFrancis Duponthttps://gitlab.isc.org/isc-projects/kea/-/issues/474RADIUS with shared networks2019-05-15T12:50:03ZTomek MrugalskiRADIUS with shared networksWhen RADIUS was implemented, we didn't have shared networks support. As a result, there was a mechanism designed (subnet-reselect) to do something a bit similar to shared networks.
We need to look at the code and see:
- what is needed t...When RADIUS was implemented, we didn't have shared networks support. As a result, there was a mechanism designed (subnet-reselect) to do something a bit similar to shared networks.
We need to look at the code and see:
- what is needed to make RADIUS work with shared network
- what the limitations would be
RADIUS has some substantial limitations as a database-like system, but the basic assumption that it can return attributes that are mapped to client classes should be viable.
#403 has a discussion about current (1.5) code and its limitations.Kea1.6Francis DupontFrancis Duponthttps://gitlab.isc.org/isc-projects/kea/-/issues/463Ordering using timestamps without fractional part fails on MySQL 82019-02-19T09:42:17ZFrancis DupontOrdering using timestamps without fractional part fails on MySQL 8Found on my Fedora 29 with community MySQL 8: some get-all unit tests of the MySQL VB hook failed to retrieve audit records in the expected order and all records have the same timestamp.
Fortunately the fix is easy: sort same timestamp ...Found on my Fedora 29 with community MySQL 8: some get-all unit tests of the MySQL VB hook failed to retrieve audit records in the expected order and all records have the same timestamp.
Fortunately the fix is easy: sort same timestamp records using the auto-increment id.
Kea1.6Francis DupontFrancis Dupont