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

29037 Commits

Author SHA1 Message Date
Thomas Markwalder
1d512fc605 [#691,!395] Review comments 4
src/lib/http/tests/server_client_unittests.cc
    TEST_F(HttpClientTest, connectCloseCallbacks) - test now
    verifies callback invocations
2019-06-27 07:50:54 -04:00
Thomas Markwalder
99ed96bcad [#691,!395] Review comments 3
IfaceMgr and unit tests clean up.
2019-06-27 07:50:54 -04:00
Thomas Markwalder
cb11b477da [#691,!395] Review comments 2
src/hooks/dhcp/high_availability/ha_messages.mes
    HA_SERVICE_CONNECT_INVALID_SOCKET - new message

src/hooks/dhcp/high_availability/ha_service.cc
 HAService::clientConnectHandler() - added negative fd logic

src/lib/http/client.cc
    Connection::closeCallback() - new method that wraps invocation
    of close callback in try-catch.

src/lib/http/http_messages.mes
    HTTP_CONNECTION_CLOSE_CALLBACK_FAILED - new message
2019-06-27 07:50:54 -04:00
Thomas Markwalder
de3af2b8ec [#691,!395] Addressed review comments 1
Added TIMEOUT_DEFAULT_HTTP_CLIENT_REQUEST
    Removed virtual from callback declarations
    Added commentary to http/client.h
2019-06-27 07:50:54 -04:00
Thomas Markwalder
dbd6a288db Apply suggestion to ChangeLog 2019-06-27 07:50:54 -04:00
Thomas Markwalder
8c8d0cd6b3 [#691,!395] Added ChangeLog entry 2019-06-27 07:50:13 -04:00
Thomas Markwalder
22ac8440ea [#691,!395] Added bad socket purge to IfaceMgr
src/lib/dhcp/iface_mgr.cc
    IfaceMgr::purgeBadSockets() - new function to validate
    external sockets and unregister any that are invalid.

    IfaceMgr::receive4Indirect()
    IfaceMgr::receive4Direct()
    IfaceMgr::receive6Indirect()
    IfaceMgr::receive6Direct() - added logic to all
    purgeBadSockets() when select fails with EBADF

src/lib/dhcp/tests/iface_mgr_unittest.cc
    TEST_F(IfaceMgrTest, purgeExternalSockets4)
    TEST_F(IfaceMgrTest, purgeExternalSockets6) -  new tests
    to verify bad socket purging

src/lib/http/client.cc
    Move close_callback_ reset back to Connection::close()
2019-06-27 07:49:11 -04:00
Thomas Markwalder
ff3d254d65 [#691,!395] HAService now registers HTTP client sockets with InterfaceMgr
src/hooks/dhcp/high_availability/ha_service.cc

    HAService
        clientConnectHandler() - new client connection connect callback
        clientCloseHandler() - new client connection close callback

        asyncSendLeaseUpdate()
        asyncSendHeartbeat()
        asyncDisableDHCPService()
        asyncEnableDHCPService()
        asyncSyncLeasesInternal() - added new call backs to
        HttpClient::asyncSendRequest() invocation

src/lib/http/client.cc
    Connection::resetState() - added reset of close callback
2019-06-27 07:49:10 -04:00
Thomas Markwalder
770aeae623 [#691,!395] Add Connection socket exposure and close_callback handler
Addes close_callback and exposes Connectin's TCP socket to it
and connect_callback.

src/lib/http/client.h b/src/lib/http/client.h
    HttpClient:
        Added second parameter, socket FD, to ConnectHandler
        Added CloseHandler typedef

        asyncSendRequest() - added close_callback parameter

src/lib/http/client.cc
    Connection - added close_callback parameter to all
    methods that accept connect_callback parameter

    Added invocation of close_callback wherever the connection's
    socket is closed.

src/lib/http/tests/server_client_unittests.cc
    TEST_F(HttpClientTest, connectCloseCallbacks) - new test that
    verifies connect and close callback operations
2019-06-27 07:49:10 -04:00
Michal Nowikowski
9240a766ba hammer: fixed handling repos over https 2019-06-27 00:00:11 -04:00
Francis Dupont
0b258bb3b8 [621-pd-pool-fields-are-not-described-in-kea6-all-keys-current-json] Addressed comment 2019-06-26 15:05:47 +02:00
Francis Dupont
fe46afb551 [621-pd-pool-fields-are-not-described-in-kea6-all-keys-current-json] Added description of pd-pool current all keys example 2019-06-26 15:05:47 +02:00
Francis Dupont
9b5a5b37d4 [685-log-the-expected-subnet-id-as-well-as-the-actual-subnet-id-when-the-sanity-checker-identifies-a-problem] Added ChangeLog entry for sanity-checker logs 2019-06-26 14:53:21 +02:00
Francis Dupont
5367cd1196 [685-log-the-expected-subnet-id-as-well-as-the-actual-subnet-id-when-the-sanity-checker-identifies-a-problem] Improved SanityChecker logs 2019-06-26 14:51:04 +02:00
Francis Dupont
e5c3a8004a [694-add-valid-lifetime-to-dhcp4_lease_alloc-and-dhcp6_lease_alloc-logging] Added ChangeLog entry for DHCP*_LEASE_ALLOC improvement 2019-06-26 12:17:03 +02:00
Francis Dupont
845d6e8366 [694-add-valid-lifetime-to-dhcp4_lease_alloc-and-dhcp6_lease_alloc-logging] Added the unit (seconds) 2019-06-26 06:09:37 -04:00
Francis Dupont
20cd73860b [694-add-valid-lifetime-to-dhcp4_lease_alloc-and-dhcp6_lease_alloc-logging] Added lease valid lifetime to DHCP*_LEASE_ALLOC logs 2019-06-26 06:09:37 -04:00
Francis Dupont
e34d0e7048 [682-keactrl-unable-to-kill-kea-processes] Force localstatedir value 2019-06-25 15:00:32 +02:00
Francis Dupont
93d3a878a9 [682-keactrl-unable-to-kill-kea-processes] Added expansion of runstatdir when it includes localstatedir 2019-06-25 14:56:42 +02:00
Michal Nowikowski
f526b75587 hammer: added support for debian-10, some other various fixes 2019-06-25 07:24:49 -04:00
Francis Dupont
01f68612df [583-cb-cmds-config-get-returns-wrong-subnet-range] Added CHangeLog for prefixLengthFromRange fix 2019-06-25 09:02:01 +02:00
Francis Dupont
10bd31217d [583-cb-cmds-config-get-returns-wrong-subnet-range] Fixed prefixLengthFromRange 2019-06-25 08:58:34 +02:00
Marcin Siodelski
ae8cd046c0 [#689] Added ChangeLog for #689. 2019-06-24 19:12:30 +02:00
Marcin Siodelski
404fa8fc62 [#689] Test failed lease values against expected. 2019-06-24 13:10:14 -04:00
Marcin Siodelski
8ca01ae0f2 [#689] Updated Kea ARM to include error code/message for bulk lease updates. 2019-06-24 13:10:14 -04:00
Marcin Siodelski
c793cdb4a2 [#689] Include error messages for lease updates in the log. 2019-06-24 13:10:14 -04:00
Marcin Siodelski
59782988ca [#689] Do not include subnet-id in failed leases in response to bulk apply. 2019-06-24 13:10:14 -04:00
Marcin Siodelski
ebd975ba72 [#689] Include control result and error message in resp to lease6-bulk-apply 2019-06-24 13:10:14 -04:00
Marcin Siodelski
d320e75a4b [#689] Added logging of the failed lease updates. 2019-06-24 13:10:14 -04:00
Marcin Siodelski
1b19c92b97 [#689] Updated HA hooks lib to use lease6-bulk-apply command. 2019-06-24 13:10:14 -04:00
Francis Dupont
65021b840b [551-wrong-namespace-for-address-utilities] Moved address utils to isc::asiolink namespace 2019-06-24 05:18:58 -04:00
Razvan Becheriu
e98c430b84 [#604,!376] updated ChangeLog 2019-06-24 11:24:31 +03:00
Razvan Becheriu
811735b67f added test for very long text for parser which checks for crash - bug in flex generated code using REJECT 2019-06-24 11:18:15 +03:00
Francis Dupont
57d1669434 [master] Removed trailing backspaces 2019-06-24 09:41:18 +02:00
Francis Dupont
09c1acb2d6 [295-min-max-lease-time-configuration-options] Added ChangeLog entry for min/max lease lifetimes 2019-06-22 16:10:32 +02:00
Francis Dupont
8641448c41 [295-min-max-lease-time-configuration-options] Moved MySQL schema updates to version 8.1 2019-06-22 10:05:24 -04:00
Francis Dupont
92f5408595 [295-min-max-lease-time-configuration-options] Improved lifetime bound checks 2019-06-22 10:05:24 -04:00
Francis Dupont
c0ada53a8b [295-min-max-lease-time-configuration-options] Revamped Renew*Lifetime tests 2019-06-22 10:05:24 -04:00
Francis Dupont
8732c7a011 [295-min-max-lease-time-configuration-options] Fixed rebase errors (2) 2019-06-22 10:05:24 -04:00
Francis Dupont
a8b91c6d88 [295-min-max-lease-time-configuration-options] Fixed rebase errors 2019-06-22 10:05:24 -04:00
Francis Dupont
414281d9d6 [295-min-max-lease-time-configuration-options] Removed extra spaces 2019-06-22 10:05:24 -04:00
Francis Dupont
25c3e87cf6 [295-min-max-lease-time-configuration-options] Added bad lifetime error checks 2019-06-22 10:05:24 -04:00
Francis Dupont
cba7cd443a [295-min-max-lease-time-configuration-options] Regen get_config_unittest.cc 2019-06-22 10:05:24 -04:00
Francis Dupont
a441cbb8dc [#295,!345] regen flex/bison 2019-06-22 10:05:23 -04:00
Francis Dupont
495cd829eb [295-min-max-lease-time-configuration-options] Addressed easy comments 2019-06-22 10:05:23 -04:00
Francis Dupont
e738ffc4f6 [295-min-max-lease-time-configuration-options] Updated documentation 2019-06-22 10:05:23 -04:00
Francis Dupont
7a05fd87c6 [295-min-max-lease-time-configuration-options] checkpoint: finished tests, still doc to do 2019-06-22 10:05:23 -04:00
Francis Dupont
83023a673a [295-min-max-lease-time-configuration-options] Checkpoint: updated MySQL schema and CB hook - tests to add 2019-06-22 10:05:23 -04:00
Francis Dupont
f7f545aedb [295-min-max-lease-time-configuration-options] Updated schema 2019-06-22 10:05:23 -04:00
Francis Dupont
8d0f10e6fd [295-min-max-lease-time-configuration-options] Finished DHCPv6 server unit tests 2019-06-22 10:05:23 -04:00