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

33255 Commits

Author SHA1 Message Date
Wlodek Wencel
4f58583cd7 [#2102] fix mysql schema upgrade from 11 to 12 version 2021-09-24 14:48:32 +02:00
Thomas Markwalder
68a8b91b08 [#1622] Fixed v6 incorrect DNS update flags
kea-dhcp6 now correctly determines DNS update flags when
the allocation engine dynamically re-selects the lease's
network

Added ChangeLog entry

src/bin/dhcp6/dhcp6_srv.*
    Dhcpv6Srv::assignLeases() removed response parameter from calls that no
    longer need it

    Dhcpv6Srv::processClientFqdn() - now sets the context DNS direction flags

    Dhcpv6Srv::assignIA_NA()
    Dhcpv6Srv::extendIA_NA() - no longer set context DNS direction flags, removed
        now unused response parameter

    Dhcpv6Srv::assignIA_PD() - removed unused response parameter

src/bin/dhcp6/tests/fqdn_unittest.cc
    TEST_F(FqdnDhcpv6SrvTest, ddnsSharedNetworkTest)  - now verifies lease DNS flags
    TEST_F(FqdnDhcpv6SrvTest, ddnsSharedNetworkTest2)  - new test to cover broken
    scenario
2021-09-23 08:23:49 -04:00
Thomas Markwalder
c202283115 [#2085] Fixed typo
modified:   doc/sphinx/arm/hooks-ha.rst
2021-09-22 13:17:25 -04:00
Thomas Markwalder
c1253332e9 [#2085] Added discussion to ARM per review
doc/sphinx/arm/hooks-ha.rst - added a note to passive backup
section discussing queue lengths and warning.
2021-09-22 13:17:25 -04:00
Thomas Markwalder
8da57ac9d9 [#2085] Address minor typos per review comments
src/lib/http/client.cc
src/lib/http/http_messages.mes
2021-09-22 13:17:25 -04:00
Thomas Markwalder
a538631f73 [#2085] Emit a warning when HTTP queue grows
src/lib/http/client.cc
    ConnectionPool::Destination::pushRequest() - emits
    a warning if the queue size has exceeded its threshold

src/lib/http/http_messages.mes
    HTTP_CLIENT_QUEUE_SIZE_GROWING - new log message
2021-09-22 13:17:25 -04:00
Marcin Siodelski
4a380c004c [#2028] Updated the ARM
Added a note about specifying option data and option definitions when
using the configuration backend. This was requested in the review.
2021-09-22 14:07:28 +02:00
Marcin Siodelski
d8efd34b14 [#2028] Correct test config backend logic 2021-09-22 14:07:28 +02:00
Marcin Siodelski
2c39e9d00f [#2028] Parsers are replaceable
Added the virtual methods allowing for customizing parser chain. This
change is required to adopt the parsers to work with the config
backend.
2021-09-22 14:07:28 +02:00
Marcin Siodelski
53262b1f15 [#1959] Removed unused variable 2021-09-22 08:53:59 +02:00
Marcin Siodelski
d639943bd9 [#1959] ARM parahraph about unsent-update-count 2021-09-22 08:13:15 +02:00
Marcin Siodelski
ed10262b3f [#1959] Prettier ha service unit test
Per review comments.
2021-09-22 08:13:15 +02:00
Marcin Siodelski
e58f78522a [#1959] Corrected typo in communication_state.h 2021-09-22 08:13:15 +02:00
Marcin Siodelski
297d07e7dc [#1959] Added missing EXPECT_NO_THROW 2021-09-22 08:13:15 +02:00
Marcin Siodelski
3876cb8530 [#1959] Minor changes in ha_service
Added a comment to unsent-update-count and added a line break as a result
of the review.
2021-09-22 08:13:15 +02:00
Marcin Siodelski
be40f069d3 [#1959] Updated ha-heartbeat documentation 2021-09-22 08:13:15 +02:00
Marcin Siodelski
22b0e27f54 [#1959] Bump unsent updates count in partner-down 2021-09-22 08:13:15 +02:00
Marcin Siodelski
a13a843e02 [#1959] Removed duplicate include 2021-09-22 08:13:15 +02:00
Marcin Siodelski
12399a0c5c [#1959] Added ChangeLog for #1959 2021-09-22 08:13:12 +02:00
Marcin Siodelski
c6e5f6c51e [#1959] HA state model update
A server in the partner-down state may transition to the waiting state and
synchronize its database when partner informs that it has allocated some
leases for which it did not send lease updates. Otherwise, the server
transitions to the normal state.
2021-09-22 08:09:39 +02:00
Marcin Siodelski
a9657e4379 [#1959] unsent-update-count in heartbeat response 2021-09-22 08:09:39 +02:00
Marcin Siodelski
0c0ea06b17 [#1959] Counter for unsent lease updates 2021-09-22 08:09:39 +02:00
Marcin Siodelski
c1224369b9 [#1959] Changes in heartbeat and lease updates
Previously, we'd assume that the communication with the partner is ok
when lease update was sent successfuly. In that case, we'd not send a
heartbeat. Under a heavy load, we could delay heartbeats for a long time.
Sending heartbeats is actually important because the heartbeat response
conveys information about the partner state. We want to have up-to-date
information about partner's state.
2021-09-22 08:09:39 +02:00
Marcin Siodelski
24c21f627a [#1959] Fix HA state machine
The server in the partner-down state seeing its parter in the hot-standby
state would remain in the current state until the partner transitions to
the waiting state. Previously, the server in the partner-down state could
transition to the hot-standby state causing the partner to not synchronize
its database.
2021-09-22 08:09:39 +02:00
Marcin Siodelski
68c7ae64b6 [#1403] Added a commment in the ha_service
Per review comments.
2021-09-21 14:22:00 +02:00
Marcin Siodelski
693ef1b0f9 [#1403] Fixed a typo in HA messages 2021-09-21 14:14:04 +02:00
Marcin Siodelski
bac7a27aff [#1403] Editorial fix in a command description 2021-09-21 13:59:57 +02:00
Marcin Siodelski
5af37832cb [#1403] Corrected a unit test
Removed part of a unit test that was accidentally left and is not required.
2021-09-21 13:58:29 +02:00
Marcin Siodelski
aa662e1a77 [#1403] Updated HA unit tests per review
The tests now verify the order of the commands sent during synchronization.
2021-09-21 13:37:57 +02:00
Marcin Siodelski
f78778d37f [#1403] Word correction in the ARM
As a result of the review.
2021-09-21 12:45:01 +02:00
Marcin Siodelski
24efeaea79 [#1403] Regenerated log messages 2021-09-21 11:50:44 +02:00
Marcin Siodelski
e37f307a02 [#1403] Documentation for ha-sync-complete-notify 2021-09-21 11:25:23 +02:00
Marcin Siodelski
64107f4138 [#1403] Servers exchange ha-sync-complete-notify
A server finishing the lease database synchronization sends the
ha-sync-complete-notify command to the partner. If the partner is in the
partner-down state it stops allocating leases and sends a heartbeat to
see if the partner is available. If the partner is unavailable, it resumes
DHCP service. Otherwise, it transitions to the normal operation state.
2021-09-21 11:25:19 +02:00
Marcin Siodelski
8045b5157a [#1403] ha-sync-complete-notify command created
Implemented creator for the ha-sync-complete-notify command.
2021-09-21 11:24:08 +02:00
Marcin Siodelski
9db90fd68c [#2094] Minor ChangeLog update per review 2021-09-20 23:15:03 +02:00
Marcin Siodelski
a70a230aaf [#2094] Updated MySQL migration 12
The dhcp_client_class values are set to NULL when the options do not
belong to a class.
2021-09-20 23:15:03 +02:00
Marcin Siodelski
b4f5a243c6 [#2094] Removed client class insert
Removed inserting dhcp client class from host manager. Previously, the
host manager would set dhcp_client_class column to an empty string causing
a referential integrity error with client classes. The column is now set
to null by default.
2021-09-20 23:15:03 +02:00
Thomas Markwalder
5d79ff7ade [#2094] Updated schema version constant
modified:   ../../mysql/mysql_constants.h
2021-09-20 23:15:03 +02:00
Marcin Siodelski
915d96e147 [#2094] Added ChangeLog entry for #2094 2021-09-20 23:14:58 +02:00
Marcin Siodelski
e8df2ff2e3 [#2094] Created MySQL schema version 12
The updated schema causes auto-deletion of options associated with
deleted client classes.
2021-09-20 23:14:02 +02:00
Andrei Pavel
640ed86331 [#2067] ARM: remove dot before commands in API Ref 2021-09-20 18:16:50 +00:00
Andrei Pavel
8f8c0fb6ac [#2067] ARM: Update invalid Boost URL 2021-09-20 18:16:50 +00:00
Tomek Mrugalski
42b2baa2ac [#2034] ChangeLog added 2021-09-20 19:50:27 +02:00
Andrei Pavel
91dd72dbf3 [#2081] remove docbook and docgen mentions (extra) 2021-09-20 17:45:35 +00:00
Andrei Pavel
7ede1ced15 [#2081] install the default openssl-devel on CentOS 7 2021-09-20 17:45:35 +00:00
Andrei Pavel
c19e6343c9 [#2081] remove attempt to link with OpenSSL 1.1 2021-09-20 17:45:35 +00:00
Thomas Markwalder
2de7580f41 [#1307] Fixed ARM spelling errors
modified:   sphinx/arm/hooks-ha.rst
2021-09-17 11:12:03 -04:00
Thomas Markwalder
b4959af47e [#1307] Added warning to ARM
modified:   doc/sphinx/arm/hooks-ha.rst
2021-09-17 11:12:03 -04:00
Thomas Markwalder
d1b581903e [#1307] Addressed review comments
Minor clean ups in:

ChangeLog
doc/examples/kea4/all-keys.json
doc/examples/kea6/all-keys.json
doc/sphinx/arm/hooks-ha.rst
src/bin/dhcp4/tests/config_parser_unittest.cc
2021-09-17 11:12:03 -04:00
Thomas Markwalder
ed767a560f [#1307] Fix double include in dhcp6/tests
src/bin/dhcp6/tests/get_config_unittest.cc
src/bin/dhcp6/tests/get_config_unittest.cc.skel
    - removed double include of user_context_utils.h
2021-09-17 11:12:03 -04:00