2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00
Commit Graph

36562 Commits

Author SHA1 Message Date
Francis Dupont
a7391768fd [#3289] Added v6 part 2024-04-07 00:03:01 +02:00
Francis Dupont
b99d71bdfd [#3289] New fix 2024-04-05 18:10:46 +02:00
Francis Dupont
3e5a5c43ec [#3298] Made MemHostDataSource MT safe 2024-04-04 16:50:03 +02:00
Andrei Pavel
4dae2a3954 [#3299] fix parked-packet-limit mentions in ARM
- move PPL section to general hooks section
- remove note that PPL is used only for HA
- add PPL section in RADIUS
- add PPL reference in ping-check
- change values in doc/examples to resemble defaults
2024-04-04 15:33:57 +03:00
Razvan Becheriu
2cb3999f62 [#3281] addressed review comments 2024-04-04 10:10:50 +03:00
Razvan Becheriu
3127326ff8 [#3281] stop service just in case it was still running 2024-04-04 08:26:51 +03:00
Razvan Becheriu
94fa86e3c0 [#3281] use shared_from_this 2024-04-04 08:26:51 +03:00
Razvan Becheriu
4aa48a18e9 [#3281] use shared_from_this 2024-04-04 08:26:51 +03:00
Razvan Becheriu
966d886042 [#3316] fixed build 2024-04-04 00:09:40 +03:00
Razvan Becheriu
027674fa54 [#3316] fixed doxygen 2024-04-03 23:11:45 +03:00
Thomas Markwalder
e418cdf49e [#3297] Removed extra line in ChangeLog 2024-04-03 13:55:45 -04:00
Razvan Becheriu
a92269956c [#3297] addressed review 2024-04-03 20:48:44 +03:00
Thomas Markwalder
f39b4692f8 [#3297] Updated ARM, added a ChangeLog 2024-04-03 13:31:48 -04:00
Thomas Markwalder
555d9336af [#3297] Fixed broken test
modified:   monitored_duration_store_unittests.cc
2024-04-03 11:19:24 -04:00
Thomas Markwalder
961c01acd3 [#3297] Addressed initial review comments
minor changes in src/hooks/dhcp/perfmon/tests/monitored_duration_store_unittests.cc
2024-04-03 10:29:03 -04:00
Razvan Becheriu
b257b7445b [#3297] addressed review 2024-04-03 16:57:18 +03:00
Thomas Markwalder
07f0b4e031 [#3297] Verify enable-monitoring and cleanup
src/hooks/dhcp/perfmon/perfmon_callouts.cc
    pkt4_send(CalloutHandle& handle)
    pkt6_send(CalloutHandle& handle) - move query check, log
     and enable check into processPktEventStack()

src/hooks/dhcp/perfmon/perfmon_mgr.cc
    PerfMonMgr::processPktEventStack() - do log, query check,
    and enable check

src/hooks/dhcp/perfmon/tests/perfmon_mgr_unittests.cc
    testProcessPktEventStack() - updated to verify
    disabling monitoring inhibits duration data storage
2024-04-03 15:14:35 +03:00
Thomas Markwalder
2a83ae2034 [#3297] pktX_send now calls processPktEventStack
src/hooks/dhcp/perfmon/libloadtests/load_unload_unittests.cc
    TEST_F(PerfMonLibLoadTest, verifyCallouts4)
    TEST_F(PerfMonLibLoadTest, verifyCallouts6) - new tests

src/hooks/dhcp/perfmon/perfmon_callouts.cc
    pkt5_send(CalloutHandle& handle)
    pkt6_send(CalloutHandle& handle) - added logic to try-catch
    call processPktEventStack()

src/hooks/dhcp/perfmon/perfmon_messages.mes
    PERFMON_DHCP4_PKT_PROCESS_ERROR

    PERFMON_DHCP6_PKT_PROCESS_ERROR - new debug messages
2024-04-03 15:14:35 +03:00
Thomas Markwalder
24e1847986 [#3297] PerfMonMgr::processPktEventStack tests
src/hooks/dhcp/perfmon/monitored_duration_store.*
    Retooled to use composite key instead of DurationKey operators

src/hooks/dhcp/perfmon/perfmon_mgr.cc
    Altered some exception throws

src/hooks/dhcp/perfmon/tests/monitored_duration_store_unittests.cc
    TEST_F(MonitoredDurationStoreTest, adjacentEvent)
    TEST_F(MonitoredDurationStoreTest, adjacentEvent6) - new tests
    to check adjacent event ordering

src/hooks/dhcp/perfmon/tests/perfmon_mgr_unittests.cc
    TEST_F(PerfMonMgrTest4, invalidProcessPktEventStack)
    TEST_F(PerfMonMgrTest6, invalidProcessPktEventStack)
    TEST_F(PerfMonMgrTest4, processPktEventStack)
    TEST_F(PerfMonMgrTest6, processPktEventStack) - new tests
2024-04-03 15:14:35 +03:00
Thomas Markwalder
64da8a0554 [#3297] Fix UT compilation and error
modified:   perfmon_mgr_unittests.cc
2024-04-03 15:14:35 +03:00
Thomas Markwalder
abc2570ce3 [#3297] Initial Packet processing implemented
PerfMonMgr can now process packet event stacks,
poplating duration store and driving alarm checking
Not yet tied to pkt_send handlers

src/hooks/dhcp/perfmon/monitored_duration.*
    DurationKey::getStatName()
                 setSubnetId() - new functions

src/hooks/dhcp/perfmon/perfmon_messages.mes
    PERFMON_ALARM_CLEARED
    PERFMON_ALARM_TRIGGERED - new messages

src/hooks/dhcp/perfmon/perfmon_mgr.*
    PerfMonMgr::init() - new function

    PerfMonMgr::processPktEventStack()
    PerfMonMgr::reportToStatsMgr()
    PerfMonMgr::reportAlarm() - implemented

src/hooks/dhcp/perfmon/tests/monitored_duration_unittests.cc
    Updated to test getStatName()

src/hooks/dhcp/perfmon/tests/perfmon_mgr_unittests.cc
    class TestablePerfMonMgr : public PerfMonMgr - new
    Expanded PerfMonMgrTest with new tests functions

    TEST_F(PerfMonMgrTest4, testReportToStatsMgr)
    TEST_F(PerfMonMgrTest6, testReportToStatsMgr)
    TEST_F(PerfMonMgrTest4, testAddDurationSample)
    TEST_F(PerfMonMgrTest6, testAddDurationSample)
    - new tests
2024-04-03 15:14:35 +03:00
Thomas Markwalder
0df263ea9f [#3295] Added a ChangeLog entry 2024-04-02 11:26:41 +00:00
Razvan Becheriu
e6e0b34aef [#3295] addressed review 2024-04-02 08:31:46 +03:00
Thomas Markwalder
6974f66651 [#3295] Improve pickNextJob efficiency
src/bin/d2/d2_update_mgr.*
    D2UpdateMgr::pickNextJob() - check return of makeTransction()
    D2UpdateMgr::makeTransaction() - return true if transaction created

src/bin/d2/tests/d2_update_mgr_unittests.cc
    TEST_F(D2UpdateMgrTest, pickNextJobSkips) - new test
2024-04-01 17:40:39 +03:00
Razvan Becheriu
da808f1fbc [#3278] removed extra spaces 2024-03-26 19:33:28 +00:00
Thomas Markwalder
f0f0ac5aaf [#3278] Fixed ChangeLog 2024-03-26 19:33:28 +00:00
Thomas Markwalder
60902db63f [#3278] Addressed review comments
Minor corrections in ARM and UTs
2024-03-26 19:33:28 +00:00
Razvan Becheriu
e917b75f50 [#3278] addressed review 2024-03-26 19:33:28 +00:00
Thomas Markwalder
8ee36eb89f [#3278] Fix JSON in ARM again
modified:   hooks-perfmon.rst
2024-03-26 19:33:28 +00:00
Thomas Markwalder
8cfe7f9aaa [#3278] Fix JSON error in ARM
modified:   hooks-perfmon.rst
2024-03-26 19:33:28 +00:00
Thomas Markwalder
12e4dddcc5 [#3278] Updated ARM
Added ChangeLog entry, updated ARM, and changed
enable-monitoring to false by default.

doc/sphinx/arm/hooks-perfmon.rst
    Added a good deal more information

src/hooks/dhcp/perfmon/perfmon_config.cc
src/hooks/dhcp/perfmon/perfmon_mgr.cc
    enable-monitoring now defaults to false. Users must
    explicitly enable it.

src/hooks/dhcp/perfmon/tests/perfmon_config_unittests.cc
src/hooks/dhcp/perfmon/tests/perfmon_mgr_unittests.cc
    Updated tests
2024-03-26 19:33:28 +00:00
Thomas Markwalder
e7c5bbb5e2 [#3278] Added configurable PerfMonMgr singleton
load() now creates PerfMonMgr singleton and invokes it's configure() function.

src/hooks/dhcp/perfmon/monitored_duration.*
    DurationKey::getMessageTypeLabel(uint16_t family, uint16_t msg_type)  - new function
    Translates DHCP_NOTYPE/DHCPV6_NOTYPE to "*"

src/hooks/dhcp/perfmon/perfmon_callouts.cc
    Added PerfMonMgr singleton
    int load(LibraryHandle& handle)  - creates singleton and parses configuration

src/hooks/dhcp/perfmon/perfmon_config.cc
 DurationKeyParser::getMessageNameType4(const std::string& name)
 DurationKeyParser::getMessageNameType6(const std::string& name) - map "*" to NOTYPE
     static std::map<std::string, uint16_t> name_type_map = {

src/hooks/dhcp/perfmon/tests/duration_key_parser_unittests.cc
    TEST_F(DurationKeyParserTest, validScenarios4) - verify "*" message type parses

src/hooks/dhcp/perfmon/libloadtests/load_unload_unittests.cc
    Updated to pass in a valid configuration on load test.
2024-03-26 19:33:28 +00:00
Thomas Markwalder
dae3cb04ec [#3278] New classes PerfMonMgr, PerfMonConfig
New files:
    src/hooks/dhcp/perfmon/perfmon_config.cc
    src/hooks/dhcp/perfmon/perfmon_config.h
    src/hooks/dhcp/perfmon/perfmon_mgr.cc
    src/hooks/dhcp/perfmon/perfmon_mgr.h
    src/hooks/dhcp/perfmon/tests/alarm_parser_unittests.cc
    src/hooks/dhcp/perfmon/tests/duration_key_parser_unittests.cc
    src/hooks/dhcp/perfmon/tests/perfmon_config_unittests.cc
    src/hooks/dhcp/perfmon/tests/perfmon_mgr_unittests.cc

src/bin/dhcp4/dhcp4_srv.h
    Fixed unrelated doxygen error

src/hooks/dhcp/perfmon/Makefile.am
    Added new files

src/hooks/dhcp/perfmon/monitored_duration.*
    Added DurationKey << operator

src/hooks/dhcp/perfmon/perfmon_callouts.cc
    Fixed comments

src/hooks/dhcp/perfmon/tests/Makefile.am
    Added new files
2024-03-26 19:33:28 +00:00
Marcin Godzina
348d5b0828 [#3313] bump version in configure.ac to 2.5.8 2024-03-26 17:00:52 +00:00
Marcin Godzina
5390c1978f [#3307] release changes Kea-2.5.7 2024-03-22 15:55:27 +00:00
Razvan Becheriu
7c8af0de0a [#3304] bump up library versions for 2.5.7 release 2024-03-22 16:41:25 +02:00
Razvan Becheriu
1a0a6f9afd [#3300] revert fix and move poll 2024-03-22 14:17:03 +00:00
Tomek Mrugalski
9e0aa1c92c [#3079] rebuilt requirements.txt for Sphinx 2024-03-22 14:45:27 +01:00
Tomek Mrugalski
3e3d5acc12 [#3079] ChangeLog corrected 2024-03-22 14:45:26 +01:00
Tomek Mrugalski
f2e9e1d54d [#3079] ChangeLog updated 2024-03-22 14:45:02 +01:00
dependabot[bot]
e1f59ff678 [#3079] Bump jinja2 from 3.1.2 to 3.1.3 in /doc/sphinx/src
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.2...3.1.3)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-22 14:43:50 +01:00
Andrei Pavel
d54304e5d0 [#3210] fix clang error
error: constexpr function never produces a constant expression [-Winvalid-constexpr]
2024-03-21 23:33:44 +02:00
Thomas Markwalder
f09f40a044 [#3300] Added ChangeLog 2024-03-21 15:34:20 -04:00
Thomas Markwalder
68e735f1eb [#3300] Fixed db-reconnect issue
src/bin/dhcp4/ctrl_dhcp4_srv.cc
    ControlledDhcpv4Srv::processConfig(isc::data::ConstElementPtr config)

src/bin/dhcp6/ctrl_dhcp6_srv.cc
    ControlledDhcpv6Srv::processConfig(isc::data::ConstElementPtr config)
2024-03-21 15:33:37 -04:00
Andrei Pavel
fc59957aef [#3210] address review 2024-03-21 18:30:04 +02:00
Andrei Pavel
54d0219bf3 [#3210] fix different exception message on BSD 2024-03-21 18:30:04 +02:00
Andrei Pavel
7128d2054f [#3210] fix some warnings 2024-03-21 18:30:04 +02:00
Andrei Pavel
40f563418d [#3210] clean up some header includes 2024-03-21 18:30:04 +02:00
Andrei Pavel
34bf4c9103 [#3210] update copyright dates 2024-03-21 18:30:04 +02:00
Andrei Pavel
ebfe5a6be8 [#3210] miscellaneous warning fixes in lib/util
- Wsign-compare
- Wshadow
- doxygen warnings
- fix compilation for src/lib/util/tests/Makefile.am
2024-03-21 18:30:04 +02:00