Opened 3 years ago

Closed 15 months ago

#3683 closed enhancement (complete)

Use MySQL host data source in HostMgr

Reported by: tomek Owned by: tomek
Priority: medium Milestone: Outstanding Tasks
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: 0
Total Hours: 0 Internal?: no

Description (last modified by tomek)

Once MySQL host data source is implemented, it should be hooked
into HostMgr?. See HostMgr::create() method. It should
initialize alternate_source to a pointer to the MySQL host data source.

This ticket seems like a very easy to do, but the majority of the
work is in the unit-tests area. The tests need to check scenarios,
where there is a host in config file only, in MySQL only, in both,
when there are duplications etc.

Subtickets

Change History (10)

comment:1 Changed 3 years ago by tomek

  • Milestone changed from Kea-proposed to Kea1.0

comment:2 Changed 3 years ago by tomek

  • Milestone changed from Kea1.0 to Kea0.9.1

comment:3 Changed 3 years ago by marcin

  • Milestone changed from Kea0.9.1 to Kea1.1

comment:4 Changed 23 months ago by tomek

  • Description modified (diff)
  • Owner set to tomek
  • Status changed from new to assigned

comment:5 Changed 23 months ago by tomek

  • Component changed from dhcpdb to host-reservations

comment:6 Changed 23 months ago by tomek

While the MySQL host data source is now used in HostMgr?, the unit-tests checking this interaction are lacking. In particular, there's no test for HostMgr? that would instantiate MySQL host data source. Also, there's one unit-test (HostMgrTest.get6Bget6ByPrefixyPrefix) that is disabled. In total, there are only 4 active unit-tests in lidhcpsrv/tests/host_mgr_unitest.cc. Is that enough?

comment:7 Changed 23 months ago by tomek

  • Owner changed from tomek to Unassigned

This ticket should be conducted only after the HR design (#4262) is done. It may result in a refactored HostMgr? approach.

comment:8 Changed 18 months ago by tomek

  • Milestone changed from Kea1.1 to Outstanding Tasks

As decided on 2016-06-02 call, moving to Outstanding.

comment:9 Changed 15 months ago by tomek

  • Owner changed from Unassigned to tomek

comment:10 Changed 15 months ago by tomek

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

A number of unit-tests have been added as part of #4323. Many of them test the cases with reservation being in the config file only, database only or both.

Note: See TracTickets for help on using tickets.