2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 05:27:55 +00:00

36198 Commits

Author SHA1 Message Date
Slawek Figiel
11e65cd321 [#2773] Update Changelog 2024-05-23 14:18:15 +02:00
Slawek Figiel
808f97e13d [#2773] Update DB creation for Postgres 15+ 2024-05-23 14:17:45 +02:00
Marcin Godzina
7e36a43ec1 [#3290] docs - ha-scopes warning 2024-05-23 11:19:52 +00:00
Razvan Becheriu
53f571b5ad [#2959] addressed comments 2024-05-22 22:15:00 +03:00
Razvan Becheriu
6671e30bc6 [#2959] addressed comments 2024-05-22 21:54:28 +03:00
Razvan Becheriu
23f7d80c41 [#2959] removed deprecated parameter reservation-mode 2024-05-22 21:37:12 +03:00
Razvan Becheriu
47d6f71be6 [#2958] added ChangeLog entry 2024-05-22 19:48:02 +03:00
Razvan Becheriu
ef732b43b5 [#2958] add upgrade script 2024-05-22 19:05:30 +03:00
Razvan Becheriu
d149028d61 [#2958] removed deprecated dhcp-ddns parameters 2024-05-22 19:04:53 +03:00
Slawek Figiel
f40b537fdd [#3021] Add link to the code-signing keys 2024-05-22 17:20:33 +02:00
Slawek Figiel
09b7ce4445 [#3021] Update Changelog 2024-05-22 17:20:33 +02:00
Slawek Figiel
5ecc3cbf36 [#3021] Add docs section 2024-05-22 17:20:08 +02:00
Marcin Siodelski
8176c26763 [#3252] Fix typos in the ARM 2024-05-22 15:39:51 +02:00
Marcin Siodelski
41c8135f71 [#3252] Added changelog for #3252 2024-05-22 15:39:47 +02:00
Marcin Siodelski
281f34b083 [#3252] hub-and-spoke/radius incompatibility
The subnet reselect in RADIUS is incompatible with the hub-and-spoke.
Added suitable notes in the ARM.
2024-05-22 15:38:53 +02:00
Thomas Markwalder
38838d7647 [#3396] Addressed review comment
mysql_tests.sh.in - cleaned up upgrade test functions
2024-05-22 07:34:26 -04:00
Thomas Markwalder
5753d7c03d [#3396] Add script to Makefile.am
modified:   src/share/database/scripts/mysql/Makefile.am
2024-05-21 16:28:13 -04:00
Thomas Markwalder
fef41fcf0e [#3396] Moved column alters to new schema 22
configure.ac
    Added mysql/upgrade_019_to_020.sh

src/bin/admin/tests/mysql_tests.sh.in
    Updated, adjusted for version check

src/lib/mysql/mysql_constants.h
    Bumped schema version to 22

src/share/database/scripts/mysql/.gitignore
    upgrade_019_to_020.sh

src/share/database/scripts/mysql/dhcpdb_create.mysql
    Moved expire column statements into version 22 update section

src/share/database/scripts/mysql/upgrade_020_to_021.sh.in
    Removed expire column updates

src/share/database/scripts/mysql/upgrade_020_to_021.sh.in
    New file, modifies expire columns
2024-05-21 13:58:34 -04:00
Thomas Markwalder
1cab163b88 [#3396] Modify leaseX expire columns to accept null
src/share/database/scripts/mysql/dhcpdb_create.mysql
    Change expire column in lease4 and lease6 to accept NULL

src/share/database/scripts/mysql/upgrade_018_to_019.sh.in
    Change expire column in lease6 to accept NULL

src/share/database/scripts/mysql/upgrade_020_to_021.sh.in
    Change expire column in lease4 and lease6 to accept NULL

Added ChangeLog entry
2024-05-21 13:58:34 -04:00
Andrei Pavel
42bd2b5867
[#3256] address review 2024-05-20 23:28:51 +03:00
Andrei Pavel
f5eb6598f7
[#3256] add ChangeLog entry 2024-05-20 23:28:50 +03:00
Andrei Pavel
3e4deddd5f
[#3256] fix common warnings across compilers
```
io_service_thread_pool_unittests.cc:24:12: warning: unused variable 'TEST_TIMEOUT' [-Wunused-const-variable]
mysql_connection_unittest.cc:217:75: warning: declaration of ‘out_bindings’ shadows a previous local [-Wshadow]
mysql_host_data_source.cc:171:6: warning: extra ';' after member function definition [-Wextra-semi]
mysql_host_data_source.cc:202:6: warning: extra ';' after member function definition [-Wextra-semi]
mysql_host_data_source.cc:220:6: warning: extra ';' after member function definition [-Wextra-semi]
mysql_host_data_source.cc:254:6: warning: extra ';' after member function definition [-Wextra-semi]
mysql_host_data_source.cc:422:6: warning: extra ';' after member function definition [-Wextra-semi]
mysql_host_data_source.cc:554:6: warning: extra ';' after member function definition [-Wextra-semi]
mysql_host_data_source.cc:579:30: warning: useless cast to type ‘isc::dhcp::SubnetID’ {aka ‘unsigned int’} [-Wuseless-cast]
mysql_host_data_source.cc:586:30: warning: useless cast to type ‘isc::dhcp::SubnetID’ {aka ‘unsigned int’} [-Wuseless-cast]
mysql_host_data_source.cc:674:6: warning: extra ';' after member function definition [-Wextra-semi]
mysql_host_data_source.cc:714:6: warning: extra ';' after member function definition [-Wextra-semi]
mysql_host_data_source.cc:1313:18: warning: 'processFetchedData' overrides a member function but is not marked 'override' [-Wsuggest-override]
mysql_host_data_source.cc:1353:37: warning: 'createBindForReceive' overrides a member function but is not marked 'override' [-Wsuggest-override]
mysql_host_data_source.cc:1371:6: warning: extra ';' after member function definition [-Wextra-semi]
mysql_host_data_source.cc:1456:6: warning: extra ';' after member function definition [-Wextra-semi]
mysql_host_data_source.cc:1487:6: warning: extra ';' after member function definition [-Wextra-semi]
mysql_host_data_source.cc:1508:18: warning: 'processFetchedData' overrides a member function but is not marked 'override' [-Wsuggest-override]
mysql_host_data_source.cc:1542:37: warning: 'createBindForReceive' overrides a member function but is not marked 'override' [-Wsuggest-override]
mysql_host_data_source.cc:1583:6: warning: extra ';' after member function definition [-Wextra-semi]
mysql_host_data_source.cc:1803:25: warning: unused variable 'OPTION_ID_COL' [-Wunused-const-variable]
mysql_host_data_source.cc:1804:25: warning: unused variable 'CODE_COL' [-Wunused-const-variable]
mysql_host_data_source.cc:1805:25: warning: unused variable 'VALUE_COL' [-Wunused-const-variable]
mysql_host_data_source.cc:1806:25: warning: unused variable 'FORMATTED_VALUE_COL' [-Wunused-const-variable]
mysql_host_data_source.cc:1807:25: warning: unused variable 'SPACE_COL' [-Wunused-const-variable]
mysql_host_data_source.cc:1808:25: warning: unused variable 'PERSISTENT_COL' [-Wunused-const-variable]
mysql_host_data_source.cc:1809:25: warning: unused variable 'CANCELLED_COL' [-Wunused-const-variable]
mysql_host_data_source.cc:1810:25: warning: unused variable 'USER_CONTEXT_COL' [-Wunused-const-variable]
mysql_host_data_source.cc:1811:25: warning: unused variable 'DHCP_SUBNET_ID_COL' [-Wunused-const-variable]
mysql_host_data_source.cc:1812:25: warning: unused variable 'HOST_ID_COL' [-Wunused-const-variable]
mysql_host_data_source.cc:3222:24: warning: useless cast to type ‘char*’ [-Wuseless-cast]
mysql_host_data_source.cc:3385:24: warning: useless cast to type ‘char*’ [-Wuseless-cast]
mysql_host_data_source.cc:3426:24: warning: useless cast to type ‘char*’ [-Wuseless-cast]
mysql_lease_mgr.cc:89:14: warning: unused variable 'HOSTNAME_MAX_LEN' [-Wunused-const-variable]
mysql_lease_mgr.cc:95:14: warning: unused variable 'ADDRESS6_TEXT_MAX_LEN' [-Wunused-const-variable]
mysql_lease_mgr.cc:98:14: warning: unused variable 'USER_CONTEXT_MAX_LEN' [-Wunused-const-variable]
mysql_lease_mgr.cc:544:29: warning: useless cast to type ‘isc::db::my_bool*’ {aka ‘bool*’} [-Wuseless-cast]
mysql_lease_mgr.cc:1929:10: warning: 'start' overrides a member function but is not marked 'override' [-Wsuggest-override]
mysql_lease_mgr.cc:2010:30: warning: useless cast to type ‘isc::dhcp::SubnetID’ {aka ‘unsigned int’} [-Wuseless-cast]
mysql_lease_mgr.cc:2020:10: warning: 'getNextRow' overrides a member function but is not marked 'override' [-Wsuggest-override]
mysql_lease_mgr.cc:3427:13: warning: useless cast to type ‘uint64_t’ {aka ‘long unsigned int’} [-Wuseless-cast]
mysql_lease_mgr.cc:4114:23: warning: variable length arrays are a C99 feature [-Wvla-extension]
mysql_lease_mgr.cc:4226:23: warning: variable length arrays are a C99 feature [-Wvla-extension]
option_opaque_data_tuples_unittest.cc:533:32: warning: zero size arrays are an extension [-Wzero-length-array]
option_opaque_data_tuples_unittest.cc:552:32: warning: zero size arrays are an extension [-Wzero-length-array]
option_opaque_data_tuples_unittest.cc:572:32: warning: zero size arrays are an extension [-Wzero-length-array]
tcp_connection.cc:28:14: warning: unused variable 'MAX_LOGGED_MESSAGE_SIZE' [-Wunused-const-variable]
test_control.cc:1826:23: warning: useless cast to type ‘class isc::asiolink::IOAddress’ [-Wuseless-cast]
test_control.cc:1830:24: warning: useless cast to type ‘class isc::asiolink::IOAddress’ [-Wuseless-cast]
test_control.cc:1871:34: warning: useless cast to type ‘class isc::asiolink::IOAddress’ [-Wuseless-cast]
test_control.cc:1873:30: warning: useless cast to type ‘class isc::asiolink::IOAddress’ [-Wuseless-cast]
../../../src/lib/http/http_message_parser_base.h:26:45: warning: extra ‘;’ after in-class function definition [-Wextra-semi]
../../../src/lib/http/http_message_parser_base.h:174:18: warning: ‘virtual void isc::http::HttpMessageParserBase::defineEvents()’ can be marked override [-Wsuggest-override]
../../../src/lib/http/http_message_parser_base.h:177:18: warning: ‘virtual void isc::http::HttpMessageParserBase::verifyEvents()’ can be marked override [-Wsuggest-override]
../../../src/lib/http/http_message_parser_base.h:180:18: warning: ‘virtual void isc::http::HttpMessageParserBase::defineStates()’ can be marked override [-Wsuggest-override]
../../../src/lib/http/http_message_parser_base.h:233:18: warning: ‘virtual void isc::http::HttpMessageParserBase::onModelFailure(const string&)’ can be marked override [-Wsuggest-override]
```
2024-05-20 23:28:17 +03:00
Andrei Pavel
bceff40010
[#3256] fix Wtype-limits warnings
```
data.cc:905:21: warning: comparison is always true due to limited range of data type [-Wtype-limits]
data.cc:905:48: warning: comparison is always false due to limited range of data type [-Wtype-limits]
http_message_parser_base.cc:266:15: warning: comparison is always true due to limited range of data type [-Wtype-limits]
http_message_parser_base.cc:271:17: warning: comparison is always true due to limited range of data type [-Wtype-limits]
```
2024-05-20 23:28:17 +03:00
Andrei Pavel
05362b115f
[#3256] attempt to fix nonsense Wstringop-overread
```
warning: ‘void* __builtin_memcpy(void*, const void*, long unsigned int)’ reading 1 or more bytes from a region of size 0 [-Wstringop-overread]
```

and Wsign-compare in the same file:

```
test_control.cc:116:35: warning: comparison of integers of different signs: 'uint64_t' (aka 'unsigned long') and 'int' [-Wsign-compare]                                                                                                                         338ms
test_control.cc:491:43: warning: comparison of integers of different signs: 'size_type' (aka 'unsigned long') and 'const int' [-Wsign-compare]
test_control.cc:529:50: warning: comparison of integers of different signs: 'size_type' (aka 'unsigned long') and 'const int' [-Wsign-compare]
```
2024-05-20 23:28:17 +03:00
Andrei Pavel
934d8276fa
[#3256] check result of mysql_options
... and throw exception if result is unfortunate.

... and check exceptions thrown in unit tests because it is important
now to distinguish that the old exceptions are thrown instead of the new.
2024-05-20 23:28:17 +03:00
Andrei Pavel
6e708a1e07
[#3256] convert mysql_ssl_set to mysql_options 2024-05-20 23:28:16 +03:00
Razvan Becheriu
0fcf61ea21 [#3223] add ChangeLog entry 2024-05-20 21:50:17 +03:00
Razvan Becheriu
91306673eb [#3223] removed dead code in v4 2024-05-20 18:36:29 +00:00
Razvan Becheriu
27aaeb08c2 [#3223] fixed status-get when no lease manager is available 2024-05-20 18:36:29 +00:00
Marcin Godzina
4500ae99b4 [#3418] remove os check before Postgres ddb grant 2024-05-20 14:15:40 +00:00
Andrei Pavel
0186cbb31e
[#3019] remove limitation on db retry from doc 2024-05-17 12:07:47 +03:00
Andrei Pavel
c85bdf4df2
[#3393] ignore error in libyang tests
... and add bison and flex to ubuntu for completion
2024-05-17 08:47:55 +03:00
Suzanne Goldlust
7730a1d60d Resolve "Editorial review of the ARM prior to 2.6 release" 2024-05-16 20:09:54 +00:00
Marcin Godzina
3f7db23b61 [#3382] change to mariadb in ubuntu 24 2024-05-16 06:03:15 +00:00
Francis Dupont
ffd879d930 [#2961] Improved ChangeLog entry 2024-05-13 21:43:18 +02:00
Francis Dupont
50c50a3132 [#2961] Chased last auto-gen ids 2024-05-13 18:25:09 +02:00
Francis Dupont
5b60e5fbba [#2961] Checkpoint: updated code, tests and doc 2024-05-13 18:23:59 +02:00
Francis Dupont
5bee75d3dc [#3378] Removed ip-address from relay syntax 2024-05-13 18:15:43 +02:00
Francis Dupont
7415bca627 [#3378] Regen flex/bison 2024-05-13 18:15:43 +02:00
Francis Dupont
2a881d3d91 [#3378] Updated syntaxes 2024-05-13 18:15:43 +02:00
Marcin Godzina
4f35701630 [#3393] add fedora 40 to hammer 2024-05-13 15:31:11 +00:00
Marcin Godzina
b500325a62 [#3382] add ubuntu 24.04 to hammer 2024-05-13 15:24:04 +00:00
Piotrek Zadroga
c8ab347e53 [#3364] ubsan error fix 2024-05-13 14:48:48 +00:00
Thomas Markwalder
71c70c0920 [#3279] Corrected doxygen and added UTs
src/bin/dhcp4/dhcp4_hooks.dox
src/bin/dhcp4/dhcp6_hooks.dox
    Correctec parameter names

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

src/bin/dhcp6/tests/hooks_unittest.cc
    TEST_F(HooksDhcpv6SrvTest, ddns6Update) - new test

src/lib/asiolink/io_service.cc
src/lib/asiolink/io_service.h
- replaced unresolvable @ref with @c for boost::asio::io_service,
  (boost code does not use doxygen)

src/lib/dns/tsigkey.h
    Replaced @class with @ref, at @class needs to point to a file
2024-05-10 18:12:06 +00:00
Thomas Markwalder
f8e75772e1 [#3203] Addressed review comments
src/bin/dhcp4/dhcp4_messages.mes
src/bin/dhcp6/dhcp6_messages.mes
- Minor clean up to log messages.
2024-05-10 14:00:26 -04:00
Thomas Markwalder
f49b1825cb [#3203] Log packet recv and send at INFO
Added ChangeLog entry

src/bin/dhcp4/dhcp4_srv.cc
    DHCP4_PACKET_RECEIVED and DHCP4_PACKET_SEND moved to INFO

src/bin/dhcp6/dhcp6_srv.cc
    DHCP6_PACKET_RECEIVED and DHCP6_PACKET_SEND moved to INFO
2024-05-10 14:00:26 -04:00
Thomas Markwalder
b324d5bea0 Resolve "kea-dhcp4 and 6: WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version." 2024-05-10 14:58:09 +00:00
Andrei Pavel
a3aa696655
[#3163] remove EXPECT_EQ_MARGIN, EXPECT_IN_RANGE
They're longer used. Replaced with the official EXPECT_NEAR.
2024-05-01 13:23:17 +03:00
Andrei Pavel
4891f55241
[#3163] EXPECT_EQ_MARGIN -> EXPECT_NEAR 2024-05-01 13:23:17 +03:00
Andrei Pavel
f40fa49ab9
[#3163] fix warnings on modified files
- ctrl_dhcp4_srv_unittest.cc:145:6: warning: extra ‘;’ after in-class function definition [-Wextra-semi]
- ctrl_dhcp4_srv_unittest.cc:2172:28: warning: comparison of integer expressions of different signedness: ‘std::streamoff’ {aka ‘long int’} and ‘const size_t’ {aka ‘const long unsigned int’} [-Wsign-compare]
- ctrl_dhcp4_srv_unittest.cc:2191:33: warning: comparison of integer expressions of different signedness: ‘std::streamoff’ {aka ‘long int’} and ‘const size_t’ {aka ‘const long unsigned int’} [-Wsign-compare]
- ctrl_dhcp4_srv_unittest.cc:2295:33: warning: comparison of integer expressions of different signedness: ‘std::streamoff’ {aka ‘long int’} and ‘const size_t’ {aka ‘const long unsigned int’} [-Wsign-compare]
- ctrl_dhcp4_srv_unittest.cc:2352:28: warning: declaration of ‘timeout’ shadows a previous local [-Wshadow]
- ctrl_dhcp4_srv_unittest.cc:2402:28: warning: declaration of ‘timeout’ shadows a previous local [-Wshadow]
- ctrl_dhcp6_srv_unittest.cc:116:6: warning: extra ‘;’ after in-class function definition [-Wextra-semi]
- ctrl_dhcp6_srv_unittest.cc:181:6: warning: extra ‘;’ after in-class function definition [-Wextra-semi]
- ctrl_dhcp6_srv_unittest.cc:264:10: warning: ‘virtual void {anonymous}::CtrlChannelDhcpv6SrvTest::reset()’ can be marked override [-Wsuggest-override]
- ctrl_dhcp6_srv_unittest.cc:2210:28: warning: comparison of integer expressions of different signedness: ‘std::streamoff’ {aka ‘long int’} and ‘const size_t’ {aka ‘const long unsigned int’} [-Wsign-compare]
- ctrl_dhcp6_srv_unittest.cc:2229:33: warning: comparison of integer expressions of different signedness: ‘std::streamoff’ {aka ‘long int’} and ‘const size_t’ {aka ‘const long unsigned int’} [-Wsign-compare]
- ctrl_dhcp6_srv_unittest.cc:2333:33: warning: comparison of integer expressions of different signedness: ‘std::streamoff’ {aka ‘long int’} and ‘const size_t’ {aka ‘const long unsigned int’} [-Wsign-compare]
- ctrl_dhcp6_srv_unittest.cc:2390:28: warning: declaration of ‘timeout’ shadows a previous local [-Wshadow]
- ctrl_dhcp6_srv_unittest.cc:2440:28: warning: declaration of ‘timeout’ shadows a previous local [-Wshadow]
- dhcp6_srv_unittest.cc:2420:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
- dhcp6_srv_unittest.cc:2440:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
- dhcp6_srv_unittest.cc:2932:28: warning: useless cast to type ‘const uint8_t*’ {aka ‘const unsigned char*’} [-Wuseless-cast]
- dhcp6_srv_unittest.cc:2964:26: warning: useless cast to type ‘const uint8_t*’ {aka ‘const unsigned char*’} [-Wuseless-cast]
2024-05-01 13:23:17 +03:00