Custom Query (4284 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (25 - 27 of 4284)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Ticket Resolution Summary Owner Reporter
#5367 fixed Document subnet selection with client classification better UnAssigned wlodekwencel
Description

Previous title: client classification in shared-networks doesn't work

I have those classes configured:

        "client-classes": [
        {
            "name": "Client_f2f1",
            "test": "substring(option[1].hex,8,2) == 0xf2f1",
                "option-data":[
                {
                    "csv-format":true,
                    "code":23,
                    "data":"2001:db8::666",
                    "name":"dns-servers",
                    "space":"dhcp6"
                }
                ]
        },
        {
            "name": "Client_f2f2",
            "test": "substring(option[1].hex,8,2) == 0xf2f2"
        }
    ],

Two different classes based on 2 last bytes of client-id (I'm using variations of 00:03:00:01:f6:f5:f4:f3:XX:XX)

Shared-network is configured:

        "shared-networks":[
        {
            "name":"name-abc",
            "interface":"eth2",
                "option-data":[
                {
                    "csv-format":true,
                    "code":23,
                    "data":"2001:db8::1",
                    "name":"dns-servers",
                    "space":"dhcp6"
                }],
            "subnet6":[
            {
                "subnet":"2001:db8:a::/64",
                "pools":[
                {
                    "pool":"2001:db8:a::1-2001:db8:a::1"
                }
                ]
            }
            ,

            {
                "subnet":"2001:db8:b::/64",
                "pools":[
                {
                    "pool":"2001:db8:b::1-2001:db8:b::1"
                }
                ],
                "client-class": "Client_f2f1"
            }
            ,

            {
                "subnet":"2001:db8:c::/64",
                "pools":[
                {
                    "pool":"2001:db8:c::1-2001:db8:c::1"
                }
                ],
                "client-class": "Client_f2f2"
            }
            ]
        }
        ]

So clients that cilent-id ends with f2f1 should get address 2001:db8:b::1 with different option 23 value. And client with f2f2 at the end should get address 2001:db8:c::1. They don't. Logs:

DEBUG [kea-dhcp6.packets/32697] DHCP6_PACKET_RECEIVED duid=[00:03:00:01:f6:f5:f4:f3:f2:f1], tid=0x746e2e: SOLICIT (type 1) received from fe80::800:27ff:fe00:1 to ff02::1:2 on interface eth2
DEBUG [kea-dhcp6.packets/32697] DHCP6_QUERY_DATA duid=[00:03:00:01:f6:f5:f4:f3:f2:f1], tid=0x746e2e, packet details: localAddr=[ff02::1:2]:0 remoteAddr=[fe80::800:27ff:fe00:1]:546
msgtype=1(SOLICIT), transid=0x746e2e
type=00001, len=00010: 00:03:00:01:f6:f5:f4:f3:f2:f1
type=00003(IA_NA), len=00012: iaid=68535, t1=0, t2=0
type=00006, len=00002: 23(uint16)
No relays traversed.

DEBUG [kea-dhcp6.eval/32697] EVAL_DEBUG_OPTION Pushing option 1 with value 0x00030001F6F5F4F3F2F1
DEBUG [kea-dhcp6.eval/32697] EVAL_DEBUG_STRING Pushing text string '8'
DEBUG [kea-dhcp6.eval/32697] EVAL_DEBUG_STRING Pushing text string '2'
DEBUG [kea-dhcp6.eval/32697] EVAL_DEBUG_SUBSTRING Popping length 2, start 8, string 0x00030001F6F5F4F3F2F1 pushing result 0xF2F1
DEBUG [kea-dhcp6.eval/32697] EVAL_DEBUG_HEXSTRING Pushing hex string 0xF2F1
DEBUG [kea-dhcp6.eval/32697] EVAL_DEBUG_EQUAL Popping 0xF2F1 and 0xF2F1 pushing result 'true'
INFO  [kea-dhcp6.dhcp6/32697] EVAL_RESULT Expression Client_f2f1 evaluated to 1
DEBUG [kea-dhcp6.eval/32697] EVAL_DEBUG_OPTION Pushing option 1 with value 0x00030001F6F5F4F3F2F1
DEBUG [kea-dhcp6.eval/32697] EVAL_DEBUG_STRING Pushing text string '8'
DEBUG [kea-dhcp6.eval/32697] EVAL_DEBUG_STRING Pushing text string '2'
DEBUG [kea-dhcp6.eval/32697] EVAL_DEBUG_SUBSTRING Popping length 2, start 8, string 0x00030001F6F5F4F3F2F1 pushing result 0xF2F1
DEBUG [kea-dhcp6.eval/32697] EVAL_DEBUG_HEXSTRING Pushing hex string 0xF2F2
DEBUG [kea-dhcp6.eval/32697] EVAL_DEBUG_EQUAL Popping 0xF2F2 and 0xF2F1 pushing result 'false'
DEBUG [kea-dhcp6.dhcp6/32697] EVAL_RESULT Expression Client_f2f2 evaluated to 0
DEBUG [kea-dhcp6.dhcpsrv/32697] DHCPSRV_CFGMGR_SUBNET6_IFACE selected subnet 2001:db8:a::/64 for packet received over interface eth2
DEBUG [kea-dhcp6.packets/32697] DHCP6_SUBNET_SELECTED duid=[00:03:00:01:f6:f5:f4:f3:f2:f1], tid=0x746e2e: the subnet with ID 1 was selected for client assignments
DEBUG [kea-dhcp6.packets/32697] DHCP6_SUBNET_DATA duid=[00:03:00:01:f6:f5:f4:f3:f2:f1], tid=0x746e2e: the selected subnet details: 2001:db8:a::/64
DEBUG [kea-dhcp6.hosts/32697] HOSTS_CFG_GET_ONE_SUBNET_ID_IDENTIFIER get one host with IPv6 reservation for subnet id 1, identified by hwaddr=F6F5F4F3F2F1
DEBUG [kea-dhcp6.hosts/32697] HOSTS_CFG_GET_ALL_IDENTIFIER get all hosts with reservations using identifier: hwaddr=F6F5F4F3F2F1
DEBUG [kea-dhcp6.hosts/32697] HOSTS_CFG_GET_ALL_IDENTIFIER_COUNT using identifier hwaddr=F6F5F4F3F2F1, found 0 host(s)
DEBUG [kea-dhcp6.hosts/32697] HOSTS_CFG_GET_ONE_SUBNET_ID_IDENTIFIER_NULL host not found using subnet id 1 and identifier hwaddr=F6F5F4F3F2F1
DEBUG [kea-dhcp6.hosts/32697] HOSTS_CFG_GET_ONE_SUBNET_ID_IDENTIFIER get one host with IPv6 reservation for subnet id 1, identified by duid=00030001F6F5F4F3F2F1
DEBUG [kea-dhcp6.hosts/32697] HOSTS_CFG_GET_ALL_IDENTIFIER get all hosts with reservations using identifier: duid=00030001F6F5F4F3F2F1
DEBUG [kea-dhcp6.hosts/32697] HOSTS_CFG_GET_ALL_IDENTIFIER_COUNT using identifier duid=00030001F6F5F4F3F2F1, found 0 host(s)
DEBUG [kea-dhcp6.hosts/32697] HOSTS_CFG_GET_ONE_SUBNET_ID_IDENTIFIER_NULL host not found using subnet id 1 and identifier duid=00030001F6F5F4F3F2F1
DEBUG [kea-dhcp6.hosts/32697] HOSTS_CFG_GET_ONE_SUBNET_ID_IDENTIFIER get one host with IPv6 reservation for subnet id 2, identified by hwaddr=F6F5F4F3F2F1
DEBUG [kea-dhcp6.hosts/32697] HOSTS_CFG_GET_ALL_IDENTIFIER get all hosts with reservations using identifier: hwaddr=F6F5F4F3F2F1
DEBUG [kea-dhcp6.hosts/32697] HOSTS_CFG_GET_ALL_IDENTIFIER_COUNT using identifier hwaddr=F6F5F4F3F2F1, found 0 host(s)
DEBUG [kea-dhcp6.hosts/32697] HOSTS_CFG_GET_ONE_SUBNET_ID_IDENTIFIER_NULL host not found using subnet id 2 and identifier hwaddr=F6F5F4F3F2F1
DEBUG [kea-dhcp6.hosts/32697] HOSTS_CFG_GET_ONE_SUBNET_ID_IDENTIFIER get one host with IPv6 reservation for subnet id 2, identified by duid=00030001F6F5F4F3F2F1
DEBUG [kea-dhcp6.hosts/32697] HOSTS_CFG_GET_ALL_IDENTIFIER get all hosts with reservations using identifier: duid=00030001F6F5F4F3F2F1
DEBUG [kea-dhcp6.hosts/32697] HOSTS_CFG_GET_ALL_IDENTIFIER_COUNT using identifier duid=00030001F6F5F4F3F2F1, found 0 host(s)
DEBUG [kea-dhcp6.hosts/32697] HOSTS_CFG_GET_ONE_SUBNET_ID_IDENTIFIER_NULL host not found using subnet id 2 and identifier duid=00030001F6F5F4F3F2F1
DEBUG [kea-dhcp6.leases/32697] DHCP6_PROCESS_IA_NA_REQUEST duid=[00:03:00:01:f6:f5:f4:f3:f2:f1], tid=0x746e2e: server is processing IA_NA option with iaid=68535 and hint=(no hint)
DEBUG [kea-dhcp6.dhcpsrv/32697] DHCPSRV_MEMFILE_GET_IAID_SUBID_DUID obtaining IPv6 leases for IAID 68535, Subnet ID 1, DUID 00:03:00:01:f6:f5:f4:f3:f2:f1 and lease type IA_NA
DEBUG [kea-dhcp6.dhcpsrv/32697] DHCPSRV_MEMFILE_GET_IAID_SUBID_DUID obtaining IPv6 leases for IAID 68535, Subnet ID 2, DUID 00:03:00:01:f6:f5:f4:f3:f2:f1 and lease type IA_NA
DEBUG [kea-dhcp6.dhcpsrv/32697] DHCPSRV_MEMFILE_GET_IAID_SUBID_DUID obtaining IPv6 leases for IAID 68535, Subnet ID 3, DUID 00:03:00:01:f6:f5:f4:f3:f2:f1 and lease type IA_NA
DEBUG [kea-dhcp6.alloc-engine/32697] ALLOC_ENGINE_V6_ALLOC_UNRESERVED no static reservations available - trying to dynamically allocate leases for client duid=[00:03:00:01:f6:f5:f4:f3:f2:f1], tid=0x746e2e
DEBUG [kea-dhcp6.hosts/32697] HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS6 get one host with reservation for subnet id 1 and including IPv6 address 2001:db8:a::1
DEBUG [kea-dhcp6.hosts/32697] HOSTS_CFG_GET_ALL_SUBNET_ID_ADDRESS6 get all hosts with reservations for subnet id 1 and IPv6 address 2001:db8:a::1
DEBUG [kea-dhcp6.hosts/32697] HOSTS_CFG_GET_ALL_SUBNET_ID_ADDRESS6_COUNT using subnet id 1 and address 2001:db8:a::1, found 0 host(s)
DEBUG [kea-dhcp6.hosts/32697] HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS6_NULL host not found using subnet id 1 and address 2001:db8:a::1
DEBUG [kea-dhcp6.dhcpsrv/32697] DHCPSRV_MEMFILE_GET_ADDR6 obtaining IPv6 lease for address 2001:db8:a::1 and lease type IA_NA
DEBUG [kea-dhcp6.dhcpsrv/32697] DHCPSRV_MEMFILE_GET_ADDR6 obtaining IPv6 lease for address 2001:db8:a::1 and lease type IA_NA
INFO  [kea-dhcp6.leases/32697] DHCP6_LEASE_ADVERT duid=[00:03:00:01:f6:f5:f4:f3:f2:f1], tid=0x746e2e: lease for address 2001:db8:a::1 and iaid=68535 will be advertised
DEBUG [kea-dhcp6.leases/32697] DHCP6_LEASE_DATA duid=[00:03:00:01:f6:f5:f4:f3:f2:f1], tid=0x746e2e: detailed lease information for iaid=68535: Type:          IA_NA(0)
Address:       2001:db8:a::1
Prefix length: 128
IAID:          68535
Pref life:     3000
Valid life:    4000
Cltt:          1506384950
DUID:          00:03:00:01:f6:f5:f4:f3:f2:f1
Hardware addr: f6:f5:f4:f3:f2:f1
Subnet ID:     2
State:         default

DEBUG [kea-dhcp6.dhcp6/32697] DHCP6_CLASS_ASSIGNED duid=[00:03:00:01:f6:f5:f4:f3:f2:f1], tid=0x746e2e: client packet has been assigned to the following class(es): Client_f2f1
DEBUG [kea-dhcp6.packets/32697] DHCP6_RESPONSE_DATA responding with packet type 2 data is localAddr=[ff02::1:2]:547 remoteAddr=[fe80::800:27ff:fe00:1]:546
msgtype=2(ADVERTISE), transid=0x746e2e
type=00001, len=00010: 00:03:00:01:f6:f5:f4:f3:f2:f1
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=68535, t1=1000, t2=2000,
options:
  type=00005(IAADDR), len=00024: address=2001:db8:a::1, preferred-lft=3000, valid-lft=4000
type=00023, len=00016: 2001:db8::1
No relays traversed.

Despite of correctly evaluated packet to class Client_f2f1

DEBUG [kea-dhcp6.eval/32697] EVAL_DEBUG_EQUAL Popping 0xF2F1 and 0xF2F1 pushing result 'true'
INFO  [kea-dhcp6.dhcp6/32697] EVAL_RESULT Expression Client_f2f1 evaluated to 1

it wasn't considered during address allocation:

DHCPSRV_CFGMGR_SUBNET6_IFACE selected subnet 2001:db8:a::/64 for packet received over interface eth2
...
DHCP6_LEASE_ADVERT duid=[00:03:00:01:f6:f5:f4:f3:f2:f1], tid=0x746e2e: lease for address 2001:db8:a::1 and iaid=68535 will be advertised

Update: we decided to accept this in 1.3-final, but the only change will be an improved documentation that explains how the code is working and why. There are some things that the user can do to improve the situation (like put subnets in different order in his config).

#5366 fixed override global options in shared networks marcin wlodekwencel
Description

I've started kea with one shared-network that contain 3 different subnets. I've configured preference option in global scope and in each subnet (with different values)

Part of the configuration:

....
       "option-data":[
        {
            "csv-format":true,
            "code":7,
            "data":"1",
            "name":"preference",
            "space":"dhcp6"
        }
        ],
        "lease-database":
        {
            "type":"memfile"
        }
        ,
        "shared-networks":[
        {
            "name":"name-abc",
            "relay":
            {
                "ip-address":"2001:db8::abcd"
            }
            ,
            "subnet6":[
            {
                "subnet":"2001:db8:a::/64",
                "option-data”:[
                {
                    "csv-format":true,
                    "code":7,
                    "data":"33",
                    "name":"preference",
                    "space":"dhcp6"
                }
                ],
                "pools":[
                {
                    "pool":"2001:db8:a::1-2001:db8:a::1"
                }
                ]
            }
            ,
            
            {
                "subnet":"2001:db8:b::/64",
                "option-data":[
                {
                    "csv-format":true,
                    "code":23,
                    "data":"2001:db8::1,2001:db8::2",
                    "name":"dns-servers",
                    "space":"dhcp6"
                }
                ,
                
                {
                    "csv-format":true,
                    "code":7,
                    "data":"44",
                    "name":"preference",
                    "space":"dhcp6"
                }
                ],
                "pools":[
                {
                    "pool":"2001:db8:b::1-2001:db8:b::1"
                }
                ]
            }
            ,
            
            {
                "subnet":"2001:db8:c::/64",
                "option-data":[
                {
                    "csv-format":true,
                    "code":7,
                    "data":"55",
                    "name":"preference",
                    "space":"dhcp6"
                }
                ],
                "pools":[
                {
                    "pool":"2001:db8:c::1-2001:db8:c::1"
                }
                ]
            }
            ]
        }
        ]
    }
    ....

To every assigned address from each subnet kea sends preference value taken from last subnet in the list (in this case it's always 55). When shared-network is available locally (configured with interface, not relay or interface-id) it's getting more interesting because Kea advertise option value in the same way (taking value from the last subnet in the list) BUT when Kea perform Request-Reply message it adds correct value.

Looks like options in subnets that are configured in shared-network are overwritten by the option from the subnet on the end of the list. Exception: locally accessible shared-network and only in Request-Reply exchange.

#5365 complete Add more option 43 unit tests fdupont fdupont
Description

Marcin asked in #5073 more unit tests using a fake client so not on the new DHCPv4 server routine but about the whole new option 43 (and private options) support. As it is not critical it should be postpone to the final milestone. BTW we should try to take benefit to introduce real world and recommended style use cases.

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