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

36562 Commits

Author SHA1 Message Date
Francis Dupont
c618069bac [#3477] Added a ChangeLog entry 2024-08-21 11:18:43 +02:00
Francis Dupont
1f88309d57 [#3477] First attempt 2024-08-21 11:17:44 +02:00
Francis Dupont
6f68380f9d [#3478] Address the comment 2024-08-21 10:07:03 +02:00
Francis Dupont
af310b4b73 [#3478] Finished server side 2024-08-21 09:58:57 +02:00
Francis Dupont
4a600e7916 [#3478] Checkpoint: added logs 2024-08-21 09:58:57 +02:00
Francis Dupont
9e5db5dd80 [#3478] Checkpoint: server connection 2024-08-21 09:58:57 +02:00
Francis Dupont
59f20f0770 [#3478] Checkpoint: handle acceptor 2024-08-21 09:58:57 +02:00
Francis Dupont
d619d7be34 [#3478] Added getNative() to HTTP listener 2024-08-21 09:58:57 +02:00
Andrei Pavel
254d49f87a
[#2882] print error on kea-admin db-upgrade 2024-08-20 13:05:50 +03:00
Andrei Pavel
557ca583b1
[#2882] add ChangeLog entry 2024-08-20 13:05:50 +03:00
Andrei Pavel
117f781e7b
[#2882] fix pgsql_unused_subnet_id_test
Adding `--set ON_ERROR_STOP=1` to `pgsql_upgrade` made `pgsql_unused_subnet_id` fail while attempting to upgrade a 4.0 schema with some data to the latest schema.
```
Processing src/share/database/scripts/pgsql/upgrade_003.3_to_004.0.sh file...
Schema upgraded to 4.0
NOTICE:  index "key_dhcp4_ipv4_address_subnet_id" does not exist, skipping
ERROR:  insert or update on table "dhcp6_options" violates foreign key constraint "fk_dhcp6_options_subnet"
DETAIL:  Key (dhcp6_subnet_id)=(6) is not present in table "dhcp6_subnet".
```
The test is not trying to cover a negative scenario as far as I can tell.
It seems that in the end, the schema ended up being upgraded to the target version of the last script that worked without errors, in this case 7.0. It tried to advance to other upgrade scripts, but skipped them because of versions mismatch.
```
Processing src/share/database/scripts/pgsql/upgrade_007_to_008.sh file...
Processing src/share/database/scripts/pgsql/upgrade_008_to_009.sh file...
This script upgrades 8.0 to 9.0. Reported version is 7.0. Skipping upgrade.
[...]
Processing src/share/database/scripts/pgsql/upgrade_023_to_024.sh file...
This script upgrades 23.0 to 24.0. Reported version is 7.0. Skipping upgrade.
Schema version reported after upgrade: 7.0
```
Previously, the error was not reported by the testing framework because it was also ignored by kea-admin.
Now, it is consistent with the MySQL behavior in kea-admin and it no longer ignores upgrade errors.
You can see the same upgrade done to a prior version done in the equivalent test `mysql_unused_subnet_id_test`.
2024-08-20 13:05:50 +03:00
Andrei Pavel
24fcd97d21
[#2882] fix -P|--port flag in kea-admin 2024-08-20 13:05:50 +03:00
Andrei Pavel
f54e7c5559
[kea-packaging#8] hammer: stop mariadb before setup
Attempt to fix `start-stop-daemon: /usr/bin/mysqld_safe is already running`
2024-08-13 11:23:15 +03:00
Andrei Pavel
0633f932be
[kea-packaging#8] show logs when _STARTED Kea not found
Also make reading of logs more pythonic.
2024-08-13 01:53:35 +03:00
Francis Dupont
464868607d [#3490] Use a parser on response 2024-08-08 19:39:03 +00:00
Francis Dupont
6244dd42f2 [#3490] Addressed cosmetic comments 2024-08-08 19:39:03 +00:00
Francis Dupont
2e2f3fa454 [#3490] Missing inheritance 2024-08-08 19:39:03 +00:00
Francis Dupont
1d5f07e1a5 [#3490] Post rebase updates 2024-08-08 19:39:03 +00:00
Francis Dupont
dcd26dbbc1 [#3490] Fixed clients for large bodies 2024-08-08 19:39:03 +00:00
Francis Dupont
9bb4630cdb [#3490] Added testutils/Makefile.am to git 2024-08-08 19:39:03 +00:00
Francis Dupont
6df0db7e08 [#3490] Added testutils in Makefile.am 2024-08-08 19:39:03 +00:00
Francis Dupont
9fc12fbe0f [#3490] Moved the HTTPS variant 2024-08-08 19:39:03 +00:00
Francis Dupont
d84761ca87 [#3490] Renamed TestHttp[s]Client 2024-08-08 19:39:03 +00:00
Francis Dupont
3267106721 [#3490] Moved to http/testutils 2024-08-08 19:39:03 +00:00
Andrei Pavel
64fddf7f86
[#3470] unrelated: wait for "mariadb setup"/mysqld_safe to complete before restarting mariadb in alpine
Attempt to fix `start-stop-daemon: /usr/bin/mysqld_safe is already running`
2024-08-08 12:15:48 +03:00
Andrei Pavel
04bd5f616f
[#3470] hammer: install postgresql only if not already installed 2024-08-08 11:03:30 +03:00
Andrei Pavel
dffb0d7baa
[#3470] make hammer.py work better with freebsd 14+
- Remove unnecessary `SET PASSWORD` for mysql
- Remove redundant `sysrc postgresql_enable=yes`. It is done later when
  enabling the service.
- Determine `/var/db/postgres/data*` using glob.
- Add `interactive=true` to onestart command.
2024-08-08 11:03:30 +03:00
Thomas Markwalder
4815875569 [#3492] FIxed missed comments. 2024-08-07 16:02:11 +00:00
Thomas Markwalder
ac266d9c99 [#3492] Addressed review comments
Fixed ChangeLog, UT, and minor cleanups
2024-08-07 13:58:19 +00:00
Thomas Markwalder
f9341ca3bc [#3492] ChangeLog and cleanup 2024-08-06 13:21:27 +00:00
Thomas Markwalder
da923051fa [#3492] Extend lenient parser check to FQDN types
/src/lib/dhcp/libdhcp++.cc
    LibDHCP::unpackOptions4()
    LibDHCP::unpackOptions6() - split out throw so we can emit
    a more helpful log on parser errors

/src/lib/dhcp/option.h
    Added OptionParseError exception

/src/lib/dhcp/option_custom.cc
    OptionCustom::bufferLength()
    - add throw of SkipThisOptionError if lenient parsing enabled
    for OPT_FQDN_TYPE errors

/src/lib/dhcp/option_definition.cc
    OptionDefinition::factoryFqdnList()
    - add throw of SkipThisOptionError if lenient parsing enabled

/src/lib/dhcp/tests/libdhcp++_unittest.cc
    TEST_F(LibDhcpTest, unpackOptions4LenientFqdn)
    TEST_F(LibDhcpTest, unpackOptions6LenientFqdn) - new tests

/src/lib/dhcp/tests/option_custom_unittest.cc
    TEST_F(OptionCustomTest, fqdnData) - check lenient parsing behavior
2024-08-05 19:53:14 +00:00
Slawek Figiel
906b4f266b [#3522] Simplify entry template 2024-08-01 19:57:52 +00:00
Slawek Figiel
282ce9a153 [#3522] Add square brackets 2024-08-01 19:57:52 +00:00
Slawek Figiel
52186764d1 [#3522] Modify docs 2024-08-01 19:57:52 +00:00
Slawek Figiel
fc7b9a72a4 [#3522] Fix whitespace 2024-08-01 19:57:52 +00:00
Slawek Figiel
bf52561cae [#3522] Update devel docs 2024-08-01 19:57:52 +00:00
Slawek Figiel
0272ffa854 [#3522] Add ChangeLog entry template as gitkeep 2024-08-01 19:57:52 +00:00
Francis Dupont
191564d970 [#3477] Set DHCPv6 HTTP default addres to ::1 2024-08-01 09:23:54 +02:00
Francis Dupont
9a8cb8c322 [#3477] Changed write-config to config-write 2024-08-01 09:23:54 +02:00
Francis Dupont
2933828f8c [#3477] Aligned v4 and v6 unit test files 2024-08-01 09:23:54 +02:00
Francis Dupont
8c5829d7d9 [#3477] Last fixes before 2.7.2 2024-08-01 09:23:54 +02:00
Francis Dupont
08e3f63024 [#3477] Addressed comments 2024-08-01 09:23:54 +02:00
Francis Dupont
3fc341572b [#3477] Making socket name/address exclusive (2) 2024-08-01 09:23:54 +02:00
Francis Dupont
46946c5df4 [#3477] Regen bison 2024-08-01 09:23:54 +02:00
Francis Dupont
bf4ed59d63 [#3477] Making socket name/address exclusive (1) 2024-08-01 09:23:54 +02:00
Francis Dupont
32040d36b5 [#3477] Typos (Razvan's proposals) 2024-08-01 09:23:54 +02:00
Francis Dupont
7c10578019 [#3477] Updated logs (Razvan's proposal) 2024-08-01 09:23:54 +02:00
Francis Dupont
98d096b6db [#3477] Addressed comments 2024-08-01 09:23:54 +02:00
Francis Dupont
c1e372ae10 [#3477] Fixed Botan build 2024-08-01 09:23:54 +02:00
Francis Dupont
f71af575b5 [#3477] Fixed checkConfigFiles 2024-08-01 09:23:54 +02:00