#5597 closed defect (fixed)

subnets from shared networks are added to subnet4 root configuration when api is used

Reported by: atan Owned by: UnAssigned
Priority: medium Milestone: Kea1.4-final
Component: hooks Version:
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: High
Sub-Project: DHCP Feature Depending on Ticket:
Estimated Difficulty: 0 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no

Description

Kea 1.3.0 compiled from source archive.

  1. get configuration:
array:2 [▼
  "Dhcp4" => array:16 [▼
    "client-classes" => array:1 [▶]
    "control-socket" => array:2 [▶]
    "decline-probation-period" => 86400
    "dhcp-ddns" => array:14 [▶]
    "dhcp4o6-port" => 0
    "echo-client-id" => true
    "expired-leases-processing" => array:6 [▶]
    "hooks-libraries" => []
    "host-reservation-identifiers" => array:4 [▶]
    "hosts-database" => array:7 [▶]
    "interfaces-config" => array:3 [▶]
    "lease-database" => array:6 [▶]
    "option-data" => []
    "option-def" => []
    "shared-networks" => []
    "subnet4" => []
  ]
  "Logging" => array:1 [▶]
]
  1. set configuration (added 57 shared networks, subnet4 is empty)
array:2 [▼
  "Dhcp4" => array:16 [▼
    "client-classes" => array:1 [▶]
    "control-socket" => array:2 [▶]
    "decline-probation-period" => 86400
    "dhcp-ddns" => array:14 [▶]
    "dhcp4o6-port" => 0
    "echo-client-id" => true
    "expired-leases-processing" => array:6 [▶]
    "hooks-libraries" => []
    "host-reservation-identifiers" => array:4 [▶]
    "hosts-database" => array:7 [▶]
    "interfaces-config" => array:3 [▶]
    "lease-database" => array:6 [▶]
    "option-data" => []
    "option-def" => []
    "shared-networks" => array:57 [▶]
    "subnet4" => []
  ]
  "Logging" => array:1 [▶]
]
  1. get configuration again - subnet4 is filled with 580 subnets from shared networks subnets
    array:2 [▼
      "Dhcp4" => array:16 [▼
        "client-classes" => array:1 [▶]
        "control-socket" => array:2 [▶]
        "decline-probation-period" => 86400
        "dhcp-ddns" => array:14 [▶]
        "dhcp4o6-port" => 0
        "echo-client-id" => true
        "expired-leases-processing" => array:6 [▶]
        "hooks-libraries" => []
        "host-reservation-identifiers" => array:4 [▶]
        "hosts-database" => array:7 [▶]
        "interfaces-config" => array:3 [▶]
        "lease-database" => array:6 [▶]
        "option-data" => []
        "option-def" => []
        "shared-networks" => array:57 [▶]
        "subnet4" => array:580 [▶]
      ]
      "Logging" => array:1 [▶]
    ]
    
  2. try to restart Kea - error: failed to create or run parser for configuration element subnet4: ID of the new IPv4 subnet '399' is already in use (/usr/local/etc/kea/kea-dhcp4.conf:22373:7)

Subnet with id 399 is in one of shared subnets and also in the same subnet in root subnet4 section.

Subtickets

Change History (8)

comment:1 Changed 19 months ago by tomek

Thank you for reporting this issue. This seems like the same problem that was addressed in #5441. We'll need to take a closer look at this.

We're planning to release updated version on May 14th. Would that be ok to wait till then or do you need the fix sooner?

comment:2 Changed 19 months ago by atan

Thanks, I'm fine with this date. When the conf file is changed, incron runs a script that removes subnet4 array from it. It solves restart error. But I'm glad it is fixed.

comment:3 Changed 19 months ago by tomek

  • Component changed from Unclassified to hooks
  • Milestone changed from Kea-proposed to Kea1.4

Moving to 1.4. The fixed code will be delivered when the beta release becomes available. The current date for this is May 18th.

comment:4 Changed 19 months ago by tomek

  • Owner set to Unassigned
  • Status changed from new to reviewing

comment:5 Changed 19 months ago by tmark

  • Owner changed from Unassigned to tmark

comment:6 Changed 19 months ago by tmark

  • Owner changed from tmark to UnAssigned

Waiting til requestor can verify it's resolved.

comment:7 Changed 18 months ago by tomek

  • Milestone changed from Kea1.4 to Kea1.4-final

Remaining tickets that did not make it into beta are moved to final.

comment:8 Changed 18 months ago by tomek

  • Resolution set to fixed
  • Status changed from reviewing to closed

Hi Atan,

We do believe this problem was fixed in #5441. That fix was included in 1.4.0-beta. Have you had a chance to test it?

For the time being I'll assume it's fixed and will close this bug. If that is not correct assumption, please reopen it.

Note: See TracTickets for help on using tickets.