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

25694 Commits

Author SHA1 Message Date
Marcin Siodelski
8e55883c27 [5477] Corrected some typos and updated copyrights as a result of review. 2018-03-02 18:03:50 +01:00
Thomas Markwalder
78b8edb6db [5477] kea-dhcp6 now supports db reconnect
kea-dhcp6
        added support for max-reconnect-tries and reconnect-wait-time
        to lease and host db parsers

        Added a callback for when DB backends detect loss of connectivity

        Added a self-rescheduling method to attempt to reconnect to the
        backends if retries are enabled

    dhcpsrv
        PgSqlConnection::checkStatementError() - Modified "fatal" logic
        to throw after invoking db_lost_callback.

    Misc. cleanup
2018-03-01 08:28:21 -05:00
Thomas Markwalder
249219f1fc [5477] dhcpsrv/postgres and kea-dhcp4 now support db reconnect
kea-dhcp4
    added support for max-reconnect-tries and reconnect-wait-time
    to lease and host db parsers

    Added a callback for when DB backends detect loss of connectivity

    Added a self-rescheduling method to attempt to reconnect to the
    backends if retries are enabled

dhcpsrv
    Added a callback that DatabaseConnection derivations should invoke
    when they lose connectivity.

    Added an optional callback parameter from CfgDbAccess::createManagers()
    all the way down to DatabaseConnection ctor.

    pgsql_connection.cc
        PgSqlConnection::~PgSqlConnection() - Added logic to close the
        connection only when the connect state is still OK.
        Otherwise it likes to core dump.

        PgSqlConnection::checkStatementError() - Modified to invoke the
        connectivity lost callback on "fatal" errors

    pgsql_lease_mgr_unittest.cc
    pgsql_host_data_source_unittest.cc
        Added tests to verify that the lost callback is NOT invoked on an
        open failure
2018-02-28 15:29:23 -05:00
Francis Dupont
f124d85d24 [master] Updated git hash 2018-01-16 16:16:06 +01:00
Francis Dupont
bc2947de42 [master] Finished merge of PR60/trac5496 (boost 1.66.0) 2018-01-16 16:15:03 +01:00
Francis Dupont
17ed090beb [master] Merged PR60/trac5496 (boost 1.66.0) 2018-01-16 16:11:20 +01:00
Francis Dupont
7d4cd801ef [master] merging HEAD 2018-01-15 23:28:06 +01:00
Francis Dupont
216cc297fd [master] Reordered get_config_unittest.cc includes to avoid boost 1.66.0 / Ubuntu 16.04 LTS issue 2018-01-15 23:06:29 +01:00
Marcin Siodelski
83cf70aec7 [master] Added ChangeLog entry for #5468. 2018-01-15 15:02:36 +01:00
Marcin Siodelski
a378ec2848 [master] Merge branch 'trac5468' 2018-01-15 13:59:28 +01:00
Marcin Siodelski
0d17e963b3 [5468] Return status code indicating empty set for lease4-get-all. 2018-01-15 11:19:44 +01:00
Marcin Siodelski
4a538fe84c [5468] Added assert in the checkLease4 in the lease_cmds unit tests. trac5469_base 2018-01-12 20:12:18 +01:00
Marcin Siodelski
fe67227a8b [5468] Added warning about large responses to lease4-get-all. 2018-01-12 20:08:49 +01:00
Marcin Siodelski
7c492a54c6 [5468] Added test for empty lease set for lease4-get-all. 2018-01-12 19:02:32 +01:00
Marcin Siodelski
ffec38b81a [master] Added ChangeLog for #5472. 2018-01-12 18:06:15 +01:00
Marcin Siodelski
369245e4c5 [master] Merge branch 'trac5472' 2018-01-12 18:04:55 +01:00
Francis Dupont
369ff55081 [5468] A few trivial fixes 2018-01-12 06:11:04 +01:00
Francis Dupont
24e09f38ff [5468] Missing @ before return 2018-01-12 03:50:39 +01:00
Tomek Mrugalski
43a0f84c20 [master] ChangeLog, copyright years updated. 2018-01-11 15:51:17 +01:00
Tomek Mrugalski
e37606fd2d [master] Merge branch 'github37' (Cassandra host reservations)
# Conflicts:
#	src/lib/dhcpsrv/tests/generic_host_data_source_unittest.cc
2018-01-11 15:43:59 +01:00
Tomek Mrugalski
8060cb7874 [github37] Various changes after review 2018-01-11 15:32:48 +01:00
Francis Dupont
11d70ca921 [master] Removed unused arguments of not implemented methods 2018-01-11 12:24:38 +01:00
Wlodek Wencel
81aaf6cb33 [master] CondVarTest.destroyWhileWait disabled 2018-01-10 21:16:23 +01:00
Marcin Siodelski
82b89ddd14 [5468] Leases returned for lease4-get-all command are storedin "subnets". 2018-01-10 11:08:12 +01:00
Marcin Siodelski
75e555d573 [5468] Added a section about lease4-get-all command in the User's Guide. 2018-01-10 11:03:04 +01:00
Marcin Siodelski
ca6f26989a [5468] Implemented lease4-get-all command. 2018-01-10 10:43:33 +01:00
Marcin Siodelski
a1697ce64b [5468] Added lease indexing by subnet identifiers and lease type. 2018-01-09 15:47:10 +01:00
Marcin Siodelski
2732257202 [5468] Implemented getting leases by subnet id and all leases.
This change affects Memfile, MySQL and Postgres backend. These functions
aren't implemented for CQL at this time.
2018-01-09 14:49:14 +01:00
Marcin Siodelski
7a6be9dd33 [5472] Make leaseX-update status consistent with leaseX-add. 2018-01-08 18:11:06 +01:00
Marcin Siodelski
f69a91bd09 [5472] Updated User's Guide with the "force-create" leaseX-update parameter. 2018-01-08 18:05:27 +01:00
Marcin Siodelski
26910888d2 [5472] Added 'force-create' parameter to leaseX-update commands. 2018-01-08 17:50:56 +01:00
Francis Dupont
e9a8f3cac2 [5496] Merge branch 'fix_boost_1.66' of https://github.com/zorun/kea into trac5496 trac5495_base 2018-01-01 01:24:21 +01:00
Francis Dupont
126e683fc7 [master] Updated control socket toElement (post-merge) trac5494_base trac5496_base 2017-12-31 14:25:23 +01:00
Francis Dupont
6951d7b4dc [master] Updated git hash 2017-12-31 11:11:36 +01:00
Francis Dupont
3405a8fa5d [master] regen flex/bison 2017-12-31 10:09:46 +00:00
Francis Dupont
f154a976b5 [master] Finishing merge of trac5351 (user context / comment) 2017-12-31 11:07:28 +01:00
Francis Dupont
832afb25a9 [master] Added sql_common.h to headers 2017-12-31 10:44:16 +01:00
Francis Dupont
5ef1cb3e24 [master] spelling 2017-12-31 10:40:09 +01:00
Francis Dupont
c24d057bed [5351] Finished merge of trac5452 (unparse subnets) 2017-12-31 10:28:48 +01:00
Bartłomiej Piotrowski
4fd11ef050 asiolink: fix build with boost 1.66
- use native_handle() for getting native socket type
- use io_context instead of io_service
2017-12-30 19:07:26 +01:00
Tomek Mrugalski
b64567cace Merge branch 'cassandra-host-data-source' of https://github.com/andreipavelQ/kea into github37 2017-12-29 16:07:54 +01:00
Tomek Mrugalski
7272a2f252 [master] The two cassandra tests are now disabled for good. 2017-12-29 16:06:49 +01:00
Tomek Mrugalski
f3a865f968 [master] ChangeLog updated after github35 merge. 2017-12-29 13:56:07 +01:00
Tomek Mrugalski
4179549472 [github35] Added tests for recalc stats
they don't work for Cassandra yet, so disabled
2017-12-29 12:47:08 +01:00
Tomek Mrugalski
f2b088d0f8 [github35] Many comments updated after review. 2017-12-29 12:36:00 +01:00
Francis Dupont
c7b46c728b [5351] Missing commit 2017-12-23 20:53:25 +01:00
Tomek Mrugalski
161dc9c397 [github35] Changes after first part of the review. 2017-12-22 15:11:23 +01:00
Tomek Mrugalski
df949c9ec5 Merge branch 'cassandra-update' of https://github.com/andreipavelQ/kea into github35 2017-12-18 18:50:42 +01:00
Francis Dupont
e2d29b9530 [master] regen flex/bison trac5404_base 2017-12-18 09:10:43 +00:00
Francis Dupont
3388cd48e0 [master] Finishing merge of trac5389 (Fedora / gcc 7) 2017-12-18 10:09:13 +01:00