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

35784 Commits

Author SHA1 Message Date
Marcin Siodelski
26b64e771a [#3178] Log the number of applied leases 2024-01-05 19:04:19 +01:00
Marcin Siodelski
98dc56159a [#3178] Handle no subnet selected in HA 2024-01-05 19:04:19 +01:00
Marcin Siodelski
a71d8b5f5d [#3178] Partition synchronized leases 2024-01-05 19:04:19 +01:00
Marcin Siodelski
ed064ccc77 [#3178] Added status-get test for H&S 2024-01-05 19:04:19 +01:00
Marcin Siodelski
8a3fe3ae11 [#3178] Different CS callback names
Different HA services register their critical sections under different
names.
2024-01-05 19:04:19 +01:00
Marcin Siodelski
acd2757626 [#3178] Implemented subnetX_select in HA
The subnet4_select and subnet6_select callouts are used when HA config
contains multiple relationships. In this case the logic filtering the
packets must be ran after subnet selection because the selected subnet
contains the info which relationship the packet belongs to.
2024-01-05 19:04:19 +01:00
Wlodzimierz Wencel
fb43fa2fa7 [#3186] arm packages can be build and uploaded, new systems support added 2024-01-03 10:49:14 +00:00
Razvan Becheriu
cdfee49b5e [#3108] addressed review comments 2023-12-18 21:02:38 +02:00
Razvan Becheriu
c0d98f70da [#3108] fixed log message 2023-12-18 18:48:26 +02:00
Razvan Becheriu
59c45ecb13 [#3108] added warning message to disable "ip-reservations-unique"
- suggest disabling "ip-reservations-unique" flag if multiple reservations
   for the same IP address are found
2023-12-18 18:48:26 +02:00
Razvan Becheriu
c1ff7f9b88 [#3191] fix botan code after function rename 2023-12-14 22:20:10 +02:00
Andrei Pavel
0326e15cbf [#3168] add anchors to RADIUS docs 2023-12-14 14:48:11 +01:00
Francis Dupont
93c47dba3d [#3168] Removed old RADIUS 2023-12-14 14:48:11 +01:00
Razvan Becheriu
303292599a [#3019] updated documentation and added ChangeLog entry 2023-12-14 10:06:33 +02:00
Razvan Becheriu
a7e983dd2a [#3019] addressed review comments 2023-12-14 08:01:42 +02:00
Razvan Becheriu
fb09b7805e [#3019] addressed review comments 2023-12-14 08:01:42 +02:00
Razvan Becheriu
d781e915cd [#3019] retry db open on startup 2023-12-14 08:01:42 +02:00
Razvan Becheriu
463ede2e5a [#3107] use const& whenever possible 2023-12-13 15:24:41 +00:00
Thomas Markwalder
49cdaab1a8 [#3107] Single-threaded mode for ping-check
doc/sphinx/arm/hooks-ping-check.rst
    Removed note about single-threaded mode

Added ChangeLog

src/lib/dhcp/iface_mgr.*
    IfaceMgr::isExternalSocket() - new function to facilitate UTs

src/lib/dhcp/tests/iface_mgr_unittest.cc
    Updated tests
2023-12-13 15:24:41 +00:00
Francis Dupont
7ae33b34f6 [#3149] Fixed TLS error messages 2023-12-13 14:35:58 +01:00
Francis Dupont
fff8d2ac77 [#3149] Removed link filter on relay/remote 2023-12-13 14:35:58 +01:00
Razvan Becheriu
ad78b208df [#3112] renamed getIOService to getInternalIOService 2023-12-11 09:52:05 +02:00
Razvan Becheriu
9ecab51d37 [#3112] renamed run_one and get_io_service to camelCase 2023-12-11 09:52:05 +02:00
Razvan Becheriu
33f06d0ffa [#3112] catch all exception when running IOService run, run_one and poll 2023-12-11 09:52:05 +02:00
Marcin Siodelski
681293f807 [#3106] Extended a comment
As a result of a review.
2023-12-06 16:25:14 +01:00
Marcin Siodelski
59f5b6557d [#3106] Fix network state for ha-sync-complete-notify 2023-12-06 11:35:38 +01:00
Wlodek Wencel
37de740e74 [#3128] fixed style 2023-12-05 09:15:47 +00:00
Wlodek Wencel
ea7c83576f [#3128] updated hammer docs 2023-12-05 09:15:47 +00:00
Wlodek Wencel
b2e16441bd [#3128] release checklist updated 2023-12-05 09:15:47 +00:00
Wlodek Wencel
ce359006a7 [#3128] freeradius removed from hammer.py 2023-12-05 09:15:47 +00:00
Thomas Markwalder
41f0410933 [#3110] Post rebase corrections 2023-12-01 11:48:00 -05:00
Thomas Markwalder
9d205f0e2b [#3110] Fixed sloppy errors 2023-12-01 10:14:02 -05:00
Thomas Markwalder
976b23fc10 [#3110] Addressed review comments
Reworked asyncSendLeaseUpdate() and made minor corrections
2023-12-01 10:14:02 -05:00
Thomas Markwalder
203c9d9e0c [#3110] Clean up and more tests
Added a ChangeLog entry

src/hooks/dhcp/high_availability/ha_impl.cc
    HAImpl::lease4ServerDecline() - always return NEXT_STEP_CONTINUE,
    and set peers_to_update argument.

src/hooks/dhcp/high_availability/ha_service.*
    Renamed HAService::asyncSendLeaseUpdate() to asyncSendSingleLeaseUpdate()

src/hooks/dhcp/high_availability/tests/ha_impl_unittest.cc
    TEST_F(HAImplTest, lease4ServerDecline) - new test

src/hooks/dhcp/high_availability/tests/ha_service_unittest.cc
    TEST_F(HAServiceTest, successfulSendSingleLeaseUpdateWithoutParking)
    TEST_F(HAServiceTest, successfulSendSingleLeaseUpdateWithParking) - new tests

doc/sphinx/arm/hooks-ping-check.rst
    Removed note about HA updates

doc/sphinx/arm/hooks.rst
    Updated ping-check description in table of hooks

doc/sphinx/arm/logging.rst
    Added ping-check-hooks logger to table of loggers
2023-12-01 10:14:02 -05:00
Thomas Markwalder
f08a02278d [#3110] HA decline updates working
Updates are working, need clean up and UTs in HA.

src/bin/dhcp4/dhcp4_hooks.dox
    Updated hooks dev guide

src/bin/dhcp4/dhcp4_srv.cc
    Added callout lease4_server_decline

    Dhcpv4Srv::serverDecline() - added lease4_server_decline hook point

src/bin/dhcp4/tests/hooks_unittest.cc
    TEST_F(HooksDhcpv4SrvTest, lease4OfferDiscoverDecline) - new test

src/hooks/dhcp/high_availability/ha_callouts.cc
    lease4_server_decline()  - new callout function

src/hooks/dhcp/high_availability/ha_impl.*
    HAImpl::lease4ServerDecline() - new callout handler

src/hooks/dhcp/high_availability/ha_messages.mes
    HA_LEASE4_SERVER_DECLINE_FAILED - new log

src/hooks/dhcp/high_availability/ha_service.*
    HAService::asyncSendLeaseUpdate() - new function for a single lease update
    HAService::asyncSendLeaseUpdates() - check parking lot null
2023-12-01 10:08:24 -05:00
Marcin Siodelski
0c8e5fd690 [#3106] HA commands syntax fix 2023-11-30 11:11:32 +01:00
Marcin Siodelski
feb7074b2e [#3106] Correct some API files 2023-11-29 20:58:56 +01:00
Marcin Siodelski
8e1feb00d5 [#3106] Use MultiThreadingLock in NetworkState 2023-11-29 20:58:56 +01:00
Marcin Siodelski
cf99fa535a [#3106] Fixed dhcp enable unit tests 2023-11-29 20:58:56 +01:00
Marcin Siodelski
5a6560574b [#3106] Convenience functions in HAService 2023-11-29 20:58:56 +01:00
Marcin Siodelski
d9514f0cfa [#3106] Corrected two messages' descriptions 2023-11-29 20:58:56 +01:00
Marcin Siodelski
7c07cd96e6 [#3106] Use getThisServerName() in a few places 2023-11-29 20:58:56 +01:00
Marcin Siodelski
66a4c4f973 [#3106] Nits in ha_impl fixed 2023-11-29 20:58:56 +01:00
Marcin Siodelski
1772fe63cf [#3106] Reworked network state functions
Removed reset() function and replaced it with resetForDbConnection().
Also, removed the enableAll() function and used other functions instead.
2023-11-29 20:58:56 +01:00
Marcin Siodelski
e9ea1a1b6a [#3106] Network state constants further apart 2023-11-29 20:58:56 +01:00
Marcin Siodelski
24f68c0854 [#3106] Fixed some doxygen warnings 2023-11-29 20:58:55 +01:00
Marcin Siodelski
a0f97d2bf9 [#3106] Extended getConfig description 2023-11-29 20:58:55 +01:00
Marcin Siodelski
050ec2fd1d [#3106] Fixed logging placeholder in HA 2023-11-29 20:58:55 +01:00
Marcin Siodelski
2baec4f3e1 [#3106] Fixes in the HA config parser
- renamed two functions
- removed redundant check
- better exception text
2023-11-29 20:58:55 +01:00
Marcin Siodelski
1105e5c665 [#3106] Typos "a HA" to "an HA" 2023-11-29 20:58:55 +01:00