[Kea-users] kea 1.5.0 dhcp6 DHCPSRV_LEASE_SANITY_FAIL log messages
attila.domjan.hu at gmail.com
attila.domjan.hu at gmail.com
Tue Nov 26 22:27:32 UTC 2019
Hi,
I'm testing kea 1.5 dhcp6 server.
I found this warnings in the log message, however everything works fine:
Nov 24 03:48:31 centos7 DhcpLFC: INFO [DhcpLFC] LFC_START Starting lease file cleanup
Nov 24 03:48:31 centos7 DhcpLFC: INFO [DhcpLFC] LFC_PROCESSING Previous file: /opt/kea-1.5/var/kea/kea-leases6.csv.2, copy file: /opt/kea-1.5/var/kea/kea-
leases6.
csv.1
Nov 24 03:48:31 centos7 DhcpLFC: INFO [DhcpLFC.dhcpsrv] DHCPSRV_MEMFILE_LEASE_FILE_LOAD loading leases from file /opt/kea-1.5/var/kea/kea-leases6.csv.2
Nov 24 03:48:31 centos7 DhcpLFC: WARN [DhcpLFC.dhcpsrv] DHCPSRV_LEASE_SANITY_FAIL The lease 2000:0:1::32 with subnet-id 1 failed subnet-id checks.
Nov 24 03:48:31 centos7 DhcpLFC: WARN [DhcpLFC.dhcpsrv] DHCPSRV_LEASE_SANITY_FAIL The lease 2000:0:1::82 with subnet-id 1 failed subnet-id checks.
Nov 24 03:48:31 centos7 DhcpLFC: WARN [DhcpLFC.dhcpsrv] DHCPSRV_LEASE_SANITY_FAIL The lease 2000:0:1:c:: with subnet-id 1 failed subnet-id checks.
Nov 24 03:48:31 centos7 DhcpLFC: WARN [DhcpLFC.dhcpsrv] DHCPSRV_LEASE_SANITY_FAIL The lease 2000:0:1:d:: with subnet-id 1 failed subnet-id checks.
Nov 24 03:48:31 centos7 DhcpLFC: INFO [DhcpLFC.dhcpsrv] DHCPSRV_MEMFILE_LEASE_FILE_LOAD loading leases from file /opt/kea-1.5/var/kea/kea-leases6.csv.1
Nov 24 03:48:31 centos7 DhcpLFC: WARN [DhcpLFC.dhcpsrv] DHCPSRV_LEASE_SANITY_FAIL The lease 2000:0:1::82 with subnet-id 1 failed subnet-id checks.
Nov 24 03:48:31 centos7 DhcpLFC: WARN [DhcpLFC.dhcpsrv] DHCPSRV_LEASE_SANITY_FAIL The lease 2000:0:1::82 with subnet-id 1 failed subnet-id checks.
Nov 24 03:48:31 centos7 DhcpLFC: WARN [DhcpLFC.dhcpsrv] DHCPSRV_LEASE_SANITY_FAIL The lease 2000:0:1:c:: with subnet-id 1 failed subnet-id checks.
Nov 24 03:48:31 centos7 DhcpLFC: WARN [DhcpLFC.dhcpsrv] DHCPSRV_LEASE_SANITY_FAIL The lease 2000:0:1:c:: with subnet-id 1 failed subnet-id checks.
Nov 24 03:48:31 centos7 DhcpLFC: INFO [DhcpLFC] LFC_READ_STATS Leases: 8, attempts: 10, errors: 0.
Nov 24 03:48:31 centos7 DhcpLFC: INFO [DhcpLFC] LFC_WRITE_STATS Leases: 4, attempts: 4, errors: 0.
Nov 24 03:48:31 centos7 DhcpLFC: INFO [DhcpLFC] LFC_ROTATING LFC rotating files
Nov 24 03:48:31 centos7 DhcpLFC: INFO [DhcpLFC] LFC_TERMINATE LFC finished processing
address,duid,valid_lifetime,expire,subnet_id,pref_lifetime,lease_type,iaid,prefix_len,fqdn_fwd,fqdn_rev,hostname,hwaddr,state,user_context
2000:0:1::32,00:00:34:38:35:37:35:34:34:33:34:38:33:32:39:32:33:34,86400,1574883498,1,43200,0,0,128,0,0,accessipoe-49,08:e8:4f:48:32:94,0,
2000:0:1::82,00:00:34:38:35:37:35:34:34:33:34:32:37:35:32:41:39:41,86400,1574891379,1,43200,0,0,128,0,0,accessipoe-129,f4:4c:7f:a7:0d:0c,0,
2000:0:1:c::,00:00:34:38:35:37:35:34:34:33:34:32:37:35:32:41:39:41,86400,1574891379,1,43200,2,0,64,0,0,accessipoe-129,f4:4c:7f:a7:0d:0c,0,
2000:0:1:d::,00:00:34:38:35:37:35:34:34:33:34:38:33:32:39:32:33:34,86400,1574883489,1,43200,2,0,64,0,0,accessipoe-49,08:e8:4f:48:32:94,0,
"shared-networks": [
{
"relay": { "ip-addresses": [ "2000:0:1::1" ] },
"name": "Teszt IPOE ipv6",
"subnet6": [
{
"id": 1,
"subnet": "2000:0:1::/48",
"reservation-mode": "out-of-pool"
}
]
}
]
The reservations come from database:
MariaDB [kea]> select * from ipv6_reservations;
+----------------+--------------+------------+------+------------+---------+
| reservation_id | address | prefix_len | type | dhcp6_iaid | host_id |
+----------------+--------------+------------+------+------------+---------+
| 33 | 2000:0:1:d:: | 64 | 2 | NULL | 3524 |
| 34 | 2000:0:1::32 | 128 | 0 | NULL | 3524 |
| 35 | 2000:0:1:c:: | 64 | 2 | NULL | 3526 |
| 36 | 2000:0:1::82 | 128 | 0 | NULL | 3526 |
+----------------+--------------+------------+------+------------+---------+
MariaDB [kea]> select host_id, dhcp6_subnet_id from hosts where host_id = 3524 OR host_id = 3526;
+---------+-----------------+
| host_id | dhcp6_subnet_id |
+---------+-----------------+
| 3524 | 1 |
| 3526 | 1 |
+---------+-----------------+
The subnet id is everywhere 1.
I don't use dynamic IPv6 allocation. I kept the lease database in csv for performance reason.
Regards:
Attila
More information about the Kea-users
mailing list