Custom Query (4284 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (10 - 12 of 4284)

1 2 3 4 5 6 7 8 9 10 11 12 13 14
Ticket Resolution Summary Owner Reporter
#5388 fixed Shared networks: returning client performing 4-way exchange won't get the same lease marcin marcin
Description

We have received a bug report on the Kea Users List from a Kea 1.3 beta tester:

https://lists.isc.org/pipermail/kea-users/2017-October/001345.html

Briefly speaking, when the client has a lease, then reboots and performs 4-way exchange the server is supposed to return the existing lease. Instead, the server allocates a new lease from a different subnet belonging to the same shared network. This issue doesn't occur if there is only one subnet in the shared network or when the subnet is outside of any shared network.

The following patch is confirmed to solve this problem:

  • src/lib/dhcpsrv/alloc_engine.cc

    diff --git a/src/lib/dhcpsrv/alloc_engine.cc b/src/lib/dhcpsrv/alloc_engine.cc
    index f75f795..55effd8 100644
    a b void findClientLease(AllocEngine::ClientContext4& ctx, Lease4Ptr& client_lease) 
    24432443        // configured to ignore client identifier).
    24442444        if (client_id) {
    24452445            client_lease = lease_mgr.getLease4(*client_id, subnet->getID());
     2446            if (client_lease) {
     2447                ctx.subnet_ = subnet;
     2448                return;
     2449            }
    24462450        }
    24472451
    24482452        // If no lease found using the client identifier, try the lookup using
#5387 fixed kea sends IA_NA option with the same address twice marcin wlodekwencel
Description

Scenario:

  1. Server is configured with available two addresses:

3000::1 3000::2 with short lifetime.

  1. Two different clients (client A and B) request and got assigned addresses - pool is now empty.
  2. Server is reconfigured with the same pool but with address 3000::2 reserved for client C (different then before)
  3. All addresses are now expired but Client B try to renew it's address 3000::2, since it's reserved for someone else kea adds to respond option:
    |###[ DHCP6 IA Address Option (IA_TA or IA_NA suboption) ]###
    |     optcode   = IAADDR
    |     optlen    = 24
    |     address   = 3000::2
    |     preflft   = 0
    |     validlft  = 0
    |     iaaddropts= ''
    

which is correct, and now it suppose to assign new address for that client, since client A lease for 3000::1 is expired, kea adds that to message:

|###[ DHCP6 IA Address Option (IA_TA or IA_NA suboption) ]###
|     optcode   = IAADDR
|     optlen    = 24
|     address   = 3000::1
|     preflft   = 7
|     validlft  = 8
|     iaaddropts= ''

which is correct, but at the end kea adds also:

|###[ DHCP6 IA Address Option (IA_TA or IA_NA suboption) ]###
|     optcode   = IAADDR
|     optlen    = 24
|     address   = 3000::1
|     preflft   = 0
|     validlft  = 0
|     iaaddropts= ''

And that makes address 3000::1 valid and invalid.

Logs for point 4:

2017-10-12 16:14:02.671 DEBUG [kea-dhcp6.packets/24729] DHCP6_PACKET_RECEIVED duid=[00:03:00:01:66:55:44:33:22:22], tid=0x362c3e: RENEW (type 5) received from fe80::800:27ff:fe00:1 to ff02::1:2 on interface eth2
2017-10-12 16:14:02.671 DEBUG [kea-dhcp6.packets/24729] DHCP6_QUERY_DATA duid=[00:03:00:01:66:55:44:33:22:22], tid=0x362c3e, packet details: localAddr=[ff02::1:2]:0 remoteAddr=[fe80::800:27ff:fe00:1]:546
msgtype=5(RENEW), transid=0x362c3e
type=00001, len=00010: 00:03:00:01:66:55:44:33:22:22
type=00002, len=00014: 00:01:00:01:20:7e:60:5c:08:00:27:19:b8:2a
type=00003(IA_NA), len=00040: iaid=6662, t1=5, t2=6,
options:
  type=00005(IAADDR), len=00024: address=3000::2, preferred-lft=7, valid-lft=8
No relays traversed.

2017-10-12 16:14:02.671 DEBUG [kea-dhcp6.dhcpsrv/24729] DHCPSRV_CFGMGR_SUBNET6_IFACE selected subnet 3000::/30 for packet received over interface eth2
2017-10-12 16:14:02.671 DEBUG [kea-dhcp6.packets/24729] DHCP6_SUBNET_SELECTED duid=[00:03:00:01:66:55:44:33:22:22], tid=0x362c3e: the subnet with ID 1 was selected for client assignments
2017-10-12 16:14:02.671 DEBUG [kea-dhcp6.packets/24729] DHCP6_SUBNET_DATA duid=[00:03:00:01:66:55:44:33:22:22], tid=0x362c3e: the selected subnet details: 3000::/30
2017-10-12 16:14:02.671 DEBUG [kea-dhcp6.hosts/24729] HOSTS_CFG_GET_ONE_SUBNET_ID_IDENTIFIER get one host with IPv6 reservation for subnet id 1, identified by hwaddr=665544332222
2017-10-12 16:14:02.671 DEBUG [kea-dhcp6.hosts/24729] HOSTS_CFG_GET_ALL_IDENTIFIER get all hosts with reservations using identifier: hwaddr=665544332222
2017-10-12 16:14:02.671 DEBUG [kea-dhcp6.hosts/24729] HOSTS_CFG_GET_ALL_IDENTIFIER_COUNT using identifier hwaddr=665544332222, found 0 host(s)
2017-10-12 16:14:02.671 DEBUG [kea-dhcp6.hosts/24729] HOSTS_CFG_GET_ONE_SUBNET_ID_IDENTIFIER_NULL host not found using subnet id 1 and identifier hwaddr=665544332222
2017-10-12 16:14:02.671 DEBUG [kea-dhcp6.hosts/24729] HOSTS_MGR_ALTERNATE_GET6_SUBNET_ID_IDENTIFIER get one host with IPv6 reservation for subnet id 1, identified by hwaddr=665544332222
2017-10-12 16:14:02.672 DEBUG [kea-dhcp6.hosts/24729] HOSTS_MGR_ALTERNATE_GET6_SUBNET_ID_IDENTIFIER_NULL host not found using subnet id 1 and identifier hwaddr=665544332222
2017-10-12 16:14:02.672 DEBUG [kea-dhcp6.hosts/24729] HOSTS_CFG_GET_ONE_SUBNET_ID_IDENTIFIER get one host with IPv6 reservation for subnet id 1, identified by duid=00030001665544332222
2017-10-12 16:14:02.672 DEBUG [kea-dhcp6.hosts/24729] HOSTS_CFG_GET_ALL_IDENTIFIER get all hosts with reservations using identifier: duid=00030001665544332222
2017-10-12 16:14:02.673 DEBUG [kea-dhcp6.hosts/24729] HOSTS_CFG_GET_ALL_IDENTIFIER_COUNT using identifier duid=00030001665544332222, found 0 host(s)
2017-10-12 16:14:02.673 DEBUG [kea-dhcp6.hosts/24729] HOSTS_CFG_GET_ONE_SUBNET_ID_IDENTIFIER_NULL host not found using subnet id 1 and identifier duid=00030001665544332222
2017-10-12 16:14:02.673 DEBUG [kea-dhcp6.hosts/24729] HOSTS_MGR_ALTERNATE_GET6_SUBNET_ID_IDENTIFIER get one host with IPv6 reservation for subnet id 1, identified by duid=00030001665544332222
2017-10-12 16:14:02.673 DEBUG [kea-dhcp6.hosts/24729] HOSTS_MGR_ALTERNATE_GET6_SUBNET_ID_IDENTIFIER_NULL host not found using subnet id 1 and identifier duid=00030001665544332222
2017-10-12 16:14:02.673 DEBUG [kea-dhcp6.leases/24729] DHCP6_PROCESS_IA_NA_EXTEND duid=[00:03:00:01:66:55:44:33:22:22], tid=0x362c3e: extending lease lifetime for IA_NA option with iaid=6662
2017-10-12 16:14:02.673 DEBUG [kea-dhcp6.dhcpsrv/24729] DHCPSRV_MEMFILE_GET_IAID_SUBID_DUID obtaining IPv6 leases for IAID 6662, Subnet ID 1, DUID 00:03:00:01:66:55:44:33:22:22 and lease type IA_NA
2017-10-12 16:14:02.674 DEBUG [kea-dhcp6.alloc-engine/24729] ALLOC_ENGINE_V6_RENEW_REMOVE_RESERVED duid=[00:03:00:01:66:55:44:33:22:22], tid=0x362c3e: checking if existing client's leases are reserved for another client
2017-10-12 16:14:02.674 DEBUG [kea-dhcp6.hosts/24729] HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS6 get one host with reservation for subnet id 1 and including IPv6 address 3000::2
2017-10-12 16:14:02.674 DEBUG [kea-dhcp6.hosts/24729] HOSTS_CFG_GET_ALL_SUBNET_ID_ADDRESS6 get all hosts with reservations for subnet id 1 and IPv6 address 3000::2
2017-10-12 16:14:02.674 DEBUG [kea-dhcp6.hosts/24729] HOSTS_CFG_GET_ALL_SUBNET_ID_ADDRESS6_COUNT using subnet id 1 and address 3000::2, found 0 host(s)
2017-10-12 16:14:02.674 DEBUG [kea-dhcp6.hosts/24729] HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS6_NULL host not found using subnet id 1 and address 3000::2
2017-10-12 16:14:02.674 DEBUG [kea-dhcp6.hosts/24729] HOSTS_MGR_ALTERNATE_GET6_SUBNET_ID_ADDRESS6 trying alternate source for host using subnet id 1 and IPv6 address 3000::2
2017-10-12 16:14:02.676 INFO  [kea-dhcp6.alloc-engine/24729] ALLOC_ENGINE_V6_REVOKED_ADDR_LEASE address 3000::2 was revoked from client 00:03:00:01:66:55:44:33:22:22 as it is reserved for client duid=00030001F6F5F4F3F201
2017-10-12 16:14:02.676 DEBUG [kea-dhcp6.dhcpsrv/24729] DHCPSRV_MEMFILE_DELETE_ADDR deleting lease for address 3000::2
2017-10-12 16:14:02.676 DEBUG [kea-dhcp6.dhcpsrv/24729] DHCPSRV_QUEUE_NCR_SKIP duid=[00:03:00:01:66:55:44:33:22:22], [hwtype=1 66:55:44:33:22:22]: skip queuing name change request for lease: 3000::2
2017-10-12 16:14:02.676 DEBUG [kea-dhcp6.alloc-engine/24729] ALLOC_ENGINE_V6_EXTEND_ALLOC_UNRESERVED allocate new (unreserved) leases for the renewing client duid=[00:03:00:01:66:55:44:33:22:22], tid=0x362c3e
2017-10-12 16:14:02.676 DEBUG [kea-dhcp6.dhcpsrv/24729] DHCPSRV_MEMFILE_GET_ADDR6 obtaining IPv6 lease for address 3000::2 and lease type IA_NA
2017-10-12 16:14:02.676 DEBUG [kea-dhcp6.hosts/24729] HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS6 get one host with reservation for subnet id 1 and including IPv6 address 3000::2
2017-10-12 16:14:02.676 DEBUG [kea-dhcp6.hosts/24729] HOSTS_CFG_GET_ALL_SUBNET_ID_ADDRESS6 get all hosts with reservations for subnet id 1 and IPv6 address 3000::2
2017-10-12 16:14:02.676 DEBUG [kea-dhcp6.hosts/24729] HOSTS_CFG_GET_ALL_SUBNET_ID_ADDRESS6_COUNT using subnet id 1 and address 3000::2, found 0 host(s)
2017-10-12 16:14:02.676 DEBUG [kea-dhcp6.hosts/24729] HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS6_NULL host not found using subnet id 1 and address 3000::2
2017-10-12 16:14:02.676 DEBUG [kea-dhcp6.hosts/24729] HOSTS_MGR_ALTERNATE_GET6_SUBNET_ID_ADDRESS6 trying alternate source for host using subnet id 1 and IPv6 address 3000::2
2017-10-12 16:14:02.678 DEBUG [kea-dhcp6.alloc-engine/24729] ALLOC_ENGINE_V6_HINT_RESERVED duid=[00:03:00:01:66:55:44:33:22:22], tid=0x362c3e: lease for the client's hint 3000::2 is reserved for another client
2017-10-12 16:14:02.678 DEBUG [kea-dhcp6.hosts/24729] HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS6 get one host with reservation for subnet id 1 and including IPv6 address 3000::1
2017-10-12 16:14:02.679 DEBUG [kea-dhcp6.hosts/24729] HOSTS_CFG_GET_ALL_SUBNET_ID_ADDRESS6 get all hosts with reservations for subnet id 1 and IPv6 address 3000::1
2017-10-12 16:14:02.679 DEBUG [kea-dhcp6.hosts/24729] HOSTS_CFG_GET_ALL_SUBNET_ID_ADDRESS6_COUNT using subnet id 1 and address 3000::1, found 0 host(s)
2017-10-12 16:14:02.679 DEBUG [kea-dhcp6.hosts/24729] HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS6_NULL host not found using subnet id 1 and address 3000::1
2017-10-12 16:14:02.679 DEBUG [kea-dhcp6.hosts/24729] HOSTS_MGR_ALTERNATE_GET6_SUBNET_ID_ADDRESS6 trying alternate source for host using subnet id 1 and IPv6 address 3000::1
2017-10-12 16:14:02.680 DEBUG [kea-dhcp6.dhcpsrv/24729] DHCPSRV_MEMFILE_GET_ADDR6 obtaining IPv6 lease for address 3000::1 and lease type IA_NA
2017-10-12 16:14:02.680 DEBUG [kea-dhcp6.alloc-engine/24729] ALLOC_ENGINE_V6_REUSE_EXPIRED_LEASE_DATA duid=[00:03:00:01:66:55:44:33:22:22], tid=0x362c3e: reusing expired lease, updated lease information: Type:          IA_NA(0)
Address:       3000::1
Prefix length: 128
IAID:          6662
Pref life:     7
Valid life:    8
Cltt:          1507817642
DUID:          00:03:00:01:66:55:44:33:22:22
Hardware addr: 66:55:44:33:22:11
Subnet ID:     1
State:         default

2017-10-12 16:14:02.680 DEBUG [kea-dhcp6.dhcpsrv/24729] DHCPSRV_MEMFILE_UPDATE_ADDR6 updating IPv6 lease for address 3000::1
2017-10-12 16:14:02.680 DEBUG [kea-dhcp6.alloc-engine/24729] ALLOC_ENGINE_V6_EXTEND_LEASE duid=[00:03:00:01:66:55:44:33:22:22], tid=0x362c3e: extending lifetime of the lease type IA_NA, address 3000::1
2017-10-12 16:14:02.680 DEBUG [kea-dhcp6.alloc-engine/24729] ALLOC_ENGINE_V6_EXTEND_LEASE_DATA duid=[00:03:00:01:66:55:44:33:22:22], tid=0x362c3e: detailed information about the lease being extended: Type:          IA_NA(0)
Address:       3000::1
Prefix length: 128
IAID:          6662
Pref life:     7
Valid life:    8
Cltt:          1507817642
DUID:          00:03:00:01:66:55:44:33:22:22
Hardware addr: 66:55:44:33:22:11
Subnet ID:     1
State:         default

2017-10-12 16:14:02.680 DEBUG [kea-dhcp6.alloc-engine/24729] ALLOC_ENGINE_V6_EXTEND_NEW_LEASE_DATA duid=[00:03:00:01:66:55:44:33:22:22], tid=0x362c3e: new lease information for the lease being extended: Type:          IA_NA(0)
Address:       3000::1
Prefix length: 128
IAID:          6662
Pref life:     7
Valid life:    8
Cltt:          1507817642
DUID:          00:03:00:01:66:55:44:33:22:22
Hardware addr: 66:55:44:33:22:22
Subnet ID:     1
State:         default

2017-10-12 16:14:02.680 DEBUG [kea-dhcp6.dhcpsrv/24729] DHCPSRV_MEMFILE_UPDATE_ADDR6 updating IPv6 lease for address 3000::1
2017-10-12 16:14:02.680 INFO  [kea-dhcp6.leases/24729] DHCP6_LEASE_RENEW duid=[00:03:00:01:66:55:44:33:22:22], tid=0x362c3e: lease for address 3000::1 and iaid=6662 has been allocated
2017-10-12 16:14:02.680 DEBUG [kea-dhcp6.packets/24729] DHCP6_RESPONSE_DATA responding with packet type 7 data is localAddr=[ff02::1:2]:547 remoteAddr=[fe80::800:27ff:fe00:1]:546
msgtype=7(REPLY), transid=0x362c3e
type=00001, len=00010: 00:03:00:01:66:55:44:33:22:22
type=00002, len=00014: 00:01:00:01:20:7e:60:5c:08:00:27:19:b8:2a
type=00003(IA_NA), len=00096: iaid=6662, t1=5, t2=6,
options:
  type=00005(IAADDR), len=00024: address=3000::1, preferred-lft=7, valid-lft=8
  type=00005(IAADDR), len=00024: address=3000::2, preferred-lft=0, valid-lft=0
  type=00005(IAADDR), len=00024: address=3000::1, preferred-lft=0, valid-lft=0

situation can be observed only if reserved address was before in use, addresses previously assigned are expired.

#5385 complete update acknowledgements in user's guide vicky tomek
Description

title says it all.

1 2 3 4 5 6 7 8 9 10 11 12 13 14
Note: See TracQuery for help on using queries.