Opened 3 years ago

Last modified 3 years ago

#5011 new defect

Logs always state: "Lease Expires On: 19700101000000"

Reported by: zaffron Owned by:
Priority: medium Milestone: Outstanding Tasks
Component: logging Version: 1.1.0-beta
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: Low
Sub-Project: DHCP Feature Depending on Ticket:
Estimated Difficulty: 0 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no

Description

I have debug turned on, but for each and every lease, it always states: "Lease Expires On: 19700101000000".

This is for both IPv4 & IPv6.

ddns.log extract:::
2016-09-20 17:08:12.632 INFO [kea-dhcp-ddns.d2-to-dns/27872] DHCP_DDNS_ADD_SUCCEEDED DHCP_DDNS Request ID 000201B1525FD8995C9662B281B2B4259FE2519E7F381E64A452C133DFC6EA67E424EA: successfully added the DNS mapping addition for this request: Type: 0 (CHG_ADD)
Forward Change: yes
Reverse Change: yes
FQDN: [pifeed24.ipv6.bgcomp.co.uk.]
IP Address: [2001:8b0:ca:7::ff:81]
DHCID: [000201B1525FD8995C9662B281B2B4259FE2519E7F381E64A452C133DFC6EA67E424EA]
Lease Expires On: 19700101000000
Lease Length: 36000

Subtickets

Change History (2)

comment:1 Changed 3 years ago by tmark

  • Milestone changed from Kea1.1-final to Kea-proposed

Hello Zaffron:

Thanks for reporting the issue. What's being displayed is the expiration value from the NameChangeRequest? sent to D2 by kea-dhcp6. At the moment kea-dhcp6 is setting this value to zero. While it looks a bit odd it is harmless as no decision making is currently based on its value. We use the value shown as Lease Length for determining the DNS TTL.

We did spot this during work on #5007 but had not yet opened a ticket for it. Code freeze for 1.1.0-final is tomorrow so we will have to address it in an upcoming release.

You shouldn't be seeing it with v4 as kea-dhcp4 was modified some time ago to use the function isc::dhcp::queueNCR() which sets the value correctly. kea-dhcp6 has not yet undergone this change.

Thomas Markwalder
ISC Software Engineering

comment:2 Changed 3 years ago by stephen

  • Milestone changed from Kea-proposed to Outstanding Tasks
Note: See TracTickets for help on using tickets.