Opened 3 years ago

Last modified 3 years ago

#5250 new enhancement

Hooks can't access leases/hosts DB from load()

Reported by: tomek Owned by:
Priority: medium Milestone: Outstanding Tasks
Component: configuration Version: git
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: N/A
Sub-Project: DHCP Feature Depending on Ticket:
Estimated Difficulty: 0 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no


Hook libraries, e.g. host commands hook, needs to access hosts database in its load() function. This is necessary, because it needs to check whether host database is available and refuse to load when it isn't.

Unfortunately, processConfig (see calls cfg_db->createManagers() well after configureDhcp4Server (hooks are loaded here) returns.

We need to rethink the order in which various operations are done during configuration.


Change History (1)

comment:1 Changed 3 years ago by tomek

  • Milestone changed from Kea-proposed to Outstanding Tasks

As discussed on the 2017-05-18 call, moving to outstanding.

Note: See TracTickets for help on using tickets.