Opened 4 months ago

Closed 3 months ago

#5531 closed enhancement (complete)

Mutiple Host backends

Reported by: tomek Owned by: fdupont
Priority: medium Milestone: Kea1.4
Component: host-reservations 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: 9
Total Hours: 0 Internal?: no

Description

The RadiusDesign defines a new type of a host backend that does not store its own reservations, but simply caches responses coming from other backends.

Before this backend is implemented, though, we need to extend the configuration to be able to configure multiple host backends.

The recommended way to configure this is to retain hosts-database parameter (that allows storing parameters for a single backend), but add hosts-databases (that allows storing parameters for multiple backends).

Over time we will deprecate hosts-database in favor of hosts-databases.

Subtickets

Change History (11)

comment:1 Changed 4 months ago by fdupont

Today the host manager looks for configured host reservations (CfgHosts) and if an alternate host source was configured it uses this source. The obvious extension is to change the alternate host source by a list of sources but the cache idea has a not null impact on this...

comment:2 Changed 4 months ago by fdupont

  • Owner set to fdupont
  • Status changed from new to accepted

Depends on #5528.

comment:3 Changed 4 months ago by fdupont

The add() type must be changed to return a boolean (true on success) so a host entry will be added in the first database which does not refuse it.

comment:4 Changed 4 months ago by fdupont

  • Add Hours to Ticket changed from 0 to 8
  • Owner changed from fdupont to UnAssigned
  • Status changed from accepted to reviewing

Done. Ready for review after #5528 and before #5532.

comment:5 Changed 4 months ago by fdupont

  • Owner changed from UnAssigned to fdupont
  • Status changed from reviewing to accepted

Take again the ticket to add a test memory host backend.
Note there will be a submodule ticket because host commands hook is impacted.

comment:6 Changed 4 months ago by fdupont

  • Add Hours to Ticket changed from 8 to 9
  • Owner changed from fdupont to UnAssigned
  • Status changed from accepted to reviewing

Done. Ready for review with a second branch in premium.

comment:7 Changed 4 months ago by fdupont

Please review directly trac5533a.

comment:8 Changed 4 months ago by tomek

  • Owner changed from UnAssigned to tomek

Since 5528, 5531, 5532, 5433 and 5534 are on the same branch, reviewing all them at once.

comment:9 Changed 4 months ago by tomek

  • Owner changed from tomek to fdupont

comment:10 Changed 3 months ago by fdupont

Kea part merged but the change for host cmds is in premium so not closing yet.

comment:11 Changed 3 months ago by fdupont

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

5533 was merged. Closing.

Note: See TracTickets for help on using tickets.