2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-29 13:07:50 +00:00

34334 Commits

Author SHA1 Message Date
Thomas Markwalder
305b8d8846 [#2571] Fixed test lease manager
dhcpsrv/tests/lease_mgr_unittest.cc
    Added stubbed query functions to ConcreteLeaseMgr
2022-09-23 05:52:44 -04:00
Thomas Markwalder
9477ed85c0 [#2571] Added BLQ query stubs to lease mgrs
src/lib/dhcpsrv/lease_mgr.*
    Removed BQL query implemenetations

src/lib/dhcpsrv/memfile_lease_mgr.*
src/lib/dhcpsrv/mysql_lease_mgr.*
src/lib/dhcpsrv/pgsql_lease_mgr.*
    Added BQL query implemenetations
2022-09-23 05:52:43 -04:00
Thomas Markwalder
7528dd2525 [#2571] Cosmetics nits
Changes to be committed:
    modified:   lease_mgr.h
2022-09-23 05:52:43 -04:00
Thomas Markwalder
42bfc7c8b1 [#2571] Fixed doxygen errors
Changes to be committed:
	modified:   src/lib/dhcpsrv/lease_mgr.h
2022-09-23 05:52:43 -04:00
Thomas Markwalder
50d2cc973e [#2571] Addressed review comments 2022-09-23 05:52:43 -04:00
Thomas Markwalder
30d8222ed6 [#2571] Define new BLQ functions in LeaseMgr
src/lib/dhcpsrv/lease_mgr.*
    Added new Bulk LeaseQuery functions
2022-09-23 05:52:43 -04:00
Marcin Siodelski
f8cec59487 [#2408] Avoid creating JSON from args 2022-09-22 15:28:39 +02:00
Marcin Siodelski
6d2f4e014a [#2408] Improved logging in lease_cmds 2022-09-22 15:28:39 +02:00
Marcin Siodelski
7626484a4a [#2408] Addressed review comments in the HA 2022-09-22 15:28:39 +02:00
Marcin Siodelski
e15dcdb37c [#2408] Improved handling rejected leases
The new communication state functions are now MT safe. The rejected leases
have also expiration time attached.
2022-09-22 15:28:39 +02:00
Marcin Siodelski
3a72bd31c7 [#2408] Improved some HA log messages format 2022-09-22 15:28:39 +02:00
Marcin Siodelski
00b24b29c9 [#2408] Error message when HA service terminates 2022-09-22 15:28:39 +02:00
Marcin Siodelski
3be1e559dc [#2408] Added ChangeLog for #2408 2022-09-22 15:28:36 +02:00
Marcin Siodelski
9a29e50d4e [#2408] HA code cleanup 2022-09-22 15:26:49 +02:00
Marcin Siodelski
0fc3c32484 [#2408] Documented max-rejected-lease-updates 2022-09-22 15:26:49 +02:00
Marcin Siodelski
5624879020 [#2408] Handle lease6-bulk-apply empty case 2022-09-22 15:26:49 +02:00
Marcin Siodelski
3648b58e2f [#2408] Renamed HA parameter
The max-rejected-clients has been renamed to max-rejected-lease-updates.
2022-09-22 15:26:49 +02:00
Marcin Siodelski
2a9fbfc595 [#2408] HA interprets conflict status code 2022-09-22 15:26:49 +02:00
Marcin Siodelski
8d073a06dd [#2408] Rename new communication state functions 2022-09-22 15:26:49 +02:00
Marcin Siodelski
89d2727478 [#2408] HA service tracks rejected leases 2022-09-22 15:26:49 +02:00
Marcin Siodelski
74fc66a192 [#2408] Communication state tracks rejected leases 2022-09-22 15:26:49 +02:00
Marcin Siodelski
67ae357ccd [#2408] Documented the conflict status code usage 2022-09-22 15:26:49 +02:00
Marcin Siodelski
8eca47ac78 [#2408] Lease cmds can return CONFLICT status code
The new CONTROL_RESULT_CONFLICT returned by the lease_cmds hook library
indicates that the command was processed ok, but the library was unable to
apply configuration changes because of the conflicting state of the server.
2022-09-22 15:26:48 +02:00
Francis Dupont
8e5a9daa24 [#2526] Changed to kea-lfc 2022-09-22 13:41:10 +02:00
Francis Dupont
bb921ab42a [#2526] Added a ChangeLog entry 2022-09-22 13:39:42 +02:00
Francis Dupont
1c63a8f49f [#2526] Moved lfc first 2022-09-22 13:38:50 +02:00
Francis Dupont
adefb45908 [#2526] Swapped lfc and admin 2022-09-22 13:38:50 +02:00
Marcin Siodelski
79f191aa6d [#2545] Added ChangeLog for #2545 2022-09-22 11:49:51 +02:00
Marcin Siodelski
b241716e4b [#2545] Fix documentation for long options 2022-09-22 11:48:14 +02:00
Thomas Markwalder
47d0501ff1 [#2507] Replace CriticalSection with mutex lock in stat_cmds
src/hooks/dhcp/stat_cmds/stat_cmds.cc
    StatCmds::statLease4GetHandler(CalloutHandle& handle)
    StatCmds::statLease6GetHandler(CalloutHandle& handle)
    - removed MultiThreadingCriticalSection instance

src/lib/dhcpsrv/memfile_lease_mgr.cc
    Memfile_LeaseMgr::startLeaseStatsQuery4()
    Memfile_LeaseMgr::startSubnetLeaseStatsQuery4)
    Memfile_LeaseMgr::startLeaseStatsQuery6()
    Memfile_LeaseMgr::startSubnetLeaseStatsQuery6()
    Memfile_LeaseMgr::startSubnetRangeLeaseStatsQuery6()
    - lock mutex when runninng in MT
2022-09-19 09:13:09 -04:00
Andrei Pavel
5633e80b48
[#2519] add ChangeLog entry 2022-09-14 17:06:42 +03:00
Andrei Pavel
a4f4d9c2d2
[#2519] remove CallbackWrapper
Reportedly, this improves compatibility between gcc 8 and boost 1.75.
Taking the removed comment into account, this seems to come at the
cost of reduced compatibility with SunStudio. Seems like a trade-off
worth making on top of the fact that it simplifies the code.
2022-09-14 16:40:05 +03:00
Andrei Pavel
9dfe2611ab
[#1955] add ChangeLog entry 2022-09-07 19:18:34 +03:00
Francis Dupont
037cb3ca8e
[#1955] Improved loggerInit code 2022-09-06 10:29:45 +03:00
Andrei Pavel
286c2441fb
[#1955] add unit tests for logging errors 2022-09-06 10:29:45 +03:00
Andrei Pavel
a9ac326d83
[#1955] don't revert logging on initial config fail 2022-09-06 10:29:45 +03:00
Andrei Pavel
827f13461d
[#2550] remove unused argument in classifyByVendor 2022-08-31 19:58:30 +03:00
Wlodek Wencel
f19ab144e5 [#2556] update version in configure.ac 2022-08-31 17:04:54 +02:00
Wlodek Wencel
56ec10fb9d [#2551] removed admin-utils.sh from EXTRA_DIST Kea-2.3.0 2022-08-29 15:59:40 +02:00
Wlodek Wencel
188f05b891 [#2551] release changes 2022-08-29 06:49:09 -07:00
Razvan Becheriu
5acb6ea3f7 [#2546] bump lib versions for 2.3.0 2022-08-29 14:51:18 +03:00
Razvan Becheriu
266328cc61 [#2441] added warning message to instruct Kea MT rewuired HA+MT 2022-08-29 14:42:15 +03:00
Razvan Becheriu
fa07ea016a [#2441] fixed compilation warnings 2022-08-29 10:23:38 +03:00
Razvan Becheriu
6ab5f51661 [#2441] fixed comments in examples 2022-08-29 09:50:26 +03:00
Razvan Becheriu
05366c117a [#2441] added HA+MT and HA+MT+TLS examples 2022-08-27 10:15:39 +03:00
Andrei Pavel
84ae477d89
[#2537] add ChangeLog entry 2022-08-26 18:39:43 +03:00
Andrei Pavel
007d49bfb8
[#2537] document logging inheritance more clearly 2022-08-26 18:39:15 +03:00
Andrei Pavel
4ebd8c6447
[#2537] put root logger specification at the front
When multiple loggers are configured, it is possible that a child logger is
processed before the root logger. The order that is in `loggers` configuration
seems to be respected. This could have been a feature in itself, but to keep
it simple and according to the documentation, the root logger was placed in
front of the list on `applyLoggingCfg()`. The root logger that is currently
configured is now always the one that is inherited.

Deleting the root logger is another scenario that could have been problematic.
However, all the specifications are processed through a locally declared
`LoggerManager`. When it goes out of scope it destructs, causing `delete impl_`
which resets `root_spec_`. So when reconfiguration comes, it's like the
previous root logger was never there. We benefit from this default behavior,
and there is no other redundant resetting of root_spec_.
2022-08-26 18:39:15 +03:00
Andrei Pavel
132f5e1fe2
[#2537] add inheritance of output_options
Unlike severity and debug level that have inheritance support embedded
in log4cplus, output_options do not. This commit adds support for this
inheritance by storing a copy of the root logger's specification and
using it on child loggers if they don't have a specification themselves.
2022-08-26 18:39:15 +03:00
Andrei Pavel
fd1d47e7a5
[#2537] allow logger severity inheritance
Inheritance of severity + debug level is already supported by log4cplus.
This is already tested in:
* LoggerTest.SeverityInheritance
* LoggerTest.EffectiveSeverityInheritance
* LoggerTest.DebugLevelInheritance

To benefit from inheritance, the user first has to be able to omit the
severity. As a result, a missing severity no longer throws an
exception. The exception did not even do a good job of preventing wrong
severity values. Try configuring "severity": "FOO" to see that it does
not get caught on this point.
2022-08-26 18:39:15 +03:00