2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 13:37:55 +00:00
Commit Graph

228 Commits

Author SHA1 Message Date
Razvan Becheriu
de4cd27fba [#1068] added missing files 2020-01-03 15:28:17 +00:00
Francis Dupont
465cfbd920 [393-global-search-through-leases-by-mac-or-hostname-w-o-specifying-a-subnet-id] Moves lease hostnames to lower case 2019-10-25 17:26:23 +02:00
Francis Dupont
12f3c6d909 [392-search-of-reservations-by-hostname] Checkpoint: updated shcemas, todo tests 2019-10-15 11:45:32 +02:00
Thomas Markwalder
3efe07d261 [#853, !26-p] Update schema scripts and tests
src/bin/admin/tests/mysql_tests.sh.in
    Updated expected column names
    Added check of column names for 8.0 to 8.2 upgrade

src/share/database/scripts/mysql/dhcpdb_create.mysql
    Changed array column to is_array in dhcp4/6_option_def tables

src/share/database/scripts/mysql/dhcpdb_drop.mysql
    Added missing drops for createOptionAuditDHCP4/6

src/share/database/scripts/mysql/upgrade_6.0_to_7.0.sh.in
    Changed array column to is_array in dhcp4/6_option_def tables

src/share/database/scripts/mysql/upgrade_8.1_to_8.2.sh.in
    Added logic to conditionally change column names
2019-08-26 09:39:05 -04:00
Marcin Siodelski
946faa16a5 [#845] Addressed review comments.
Added better commentary in the dhcpdb_create.mysql script and the 8.2
upgrade script.
2019-08-20 07:56:08 -04:00
Marcin Siodelski
a0b2fbcbd1 [#845] Changes to MySQL to update parent object when option is set.
Prior to this change, when an option is set or deleted, the owning subnet,
shared network or pool would not update its modification timestamp. As a
result, the server would not fecth the updated configuration.
2019-08-20 07:56:08 -04:00
Marcin Siodelski
818100a6cc [#659,!387] Changed "fields" to "columns" in the MySQL creation script.
As a result of review.
2019-08-16 17:47:34 +02:00
Francis Dupont
32bcae557c [659-how-configure-client-class-for-pools-in-db] Addressed not doc comments 2019-08-16 17:47:34 +02:00
Francis Dupont
c0be63572b [659-how-configure-client-class-for-pools-in-db] Checkpoint: code done, todo new unit tests 2019-08-16 17:47:34 +02:00
Marcin Siodelski
b9ae064aef [#680,!426] Updated MySQL upgrade script from 8.1 to 8.2. 2019-07-25 03:58:11 -04:00
Marcin Siodelski
d16a20bae6 [#680,!426] Delete embedded shared network options when network is deleted. 2019-07-25 03:58:11 -04:00
Marcin Siodelski
e88273f6de [#680,!426] Deleted embedded DHCPv6 options when subnet is deleted. 2019-07-25 03:58:11 -04:00
Marcin Siodelski
f27f45ec3b [#680,!426] Delete embedded options when subnet gets deleted in mysql_cb. 2019-07-25 03:58:11 -04:00
Francis Dupont
ea2a8aed1f [466-kea-admin-lease-options-to-be-renamed-to-db] Checkpoint: kea-admin lease-{^dump} -> db-* (src) 2019-07-08 14:50:31 +02:00
Francis Dupont
d8276f1036 [550-authentication-key-to-text-method-miss-spelled] AuthKey is binary 2019-07-02 17:33:39 +02:00
Francis Dupont
2187d76041 [705-wipe_data-sh-and-other-upgrade_-scripts-do-not-set-prefix] Added prefix=@prefix@ and put shell bang at the right place 2019-07-02 11:20:41 -04:00
Francis Dupont
9346fb8859 [642-update-mysql-cb-with-calls-to-set-delete-and-retrieve-servers] Changed new schema to 8.1 (vs 9.0) and addressed trivial comments 2019-06-27 14:51:31 -04:00
Marcin Siodelski
ad8a7cd71f [#642,!373] Updated MySQL Config Backend with simple server mgmt functions. 2019-06-27 14:51:31 -04: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
f7f545aedb [295-min-max-lease-time-configuration-options] Updated schema 2019-06-22 10:05:23 -04:00
Marcin Siodelski
c1eabee542 [#628,!341] interface-id is supported by the mysql_cb. 2019-05-27 10:25:50 -04:00
Francis Dupont
5ca2b54e05 [397-cb-implement-mysqlconfigbackenddhcpv6] checkpoint (including shema fix of fix 2019-04-18 15:52:51 +02:00
Francis Dupont
e3dc02c111 [397-cb-implement-mysqlconfigbackenddhcpv6] checkpoint: unit tests to update 2019-04-18 15:52:51 +02:00
Francis Dupont
5d96145025 [481-remote-subnet4-set-inconsistent-work-when-id-subnet-is-duplicated] Addressed comments 2019-03-12 18:20:47 -04:00
Francis Dupont
ecb27f49c3 [481-remote-subnet4-set-inconsistent-work-when-id-subnet-is-duplicated] Added tests and updated schema 2019-03-12 18:20:47 -04:00
Thomas Markwalder
9bc1a0edf9 [#526,!269] Addressed more review comments
src/lib/cql/testutils/cql_schema.*
    Modified to use common softWipeEnabled(), which
    defaults to true

src/lib/database/testutils/schema.*
    bool softWipeEnabled() - new function that checks
    env varible to determine if DB data wiping is enabled
    (default is true/enabled)

src/lib/mysql/testutils/mysql_schema.*
    createMySQLSchema()
    destroyMySQLSchema()-  now softWipeEnabled() to allow
    data wiping to be turned on/off

src/share/database/scripts/mysql/wipe_data.sh.in
    Added better error messaging

several files:
    Removed extraneous calls to destroyMySQLSchema, added
    comments
2019-03-11 13:50:00 -04:00
Thomas Markwalder
6af5e78ec8 [#526,!269] - MySQL unit tests now wipe data, instead of schema
src/share/database/scripts/mysql/wipe_data.sh.in -
    New shell script which intelligently deletes data from
    the schema IF the schema version matches the expected version

src/lib/mysql/testutils/mysql_schema.*
    destroyMySQLSchema() - modfied to default to calling
    wipeData(), and only destroying the schema if that fails
    or by force flag = true;

    createMySQLSchema() - modified to default to calling
    wipeData(), and only recreating the schema if that
    fails or by force flag = true;

    wipeData() - new method which runs the
    MySQL wipe_data.sh shell script, passing in the expected
    schema version.

src/share/database/scripts/mysql/dhcpdb_create.mysql
    createAuditRevisionDHCP4()
    createAuditEntryDHCP4()
    createAuditRevisionDHCP6()
    createAuditEntryDHCP6() - added session variable,
    @disable_audit, to allow procedures to be "turned
    off" during data wiping.

src/hooks/dhcp/mysql_cb/tests/mysql_cb_dhcp4_mgr_unittest.cc
src/hooks/dhcp/mysql_cb/tests/mysql_cb_dhcp4_unittest.cc
src/lib/dhcpsrv/tests/cfg_db_access_unittest.cc
src/lib/dhcpsrv/tests/host_mgr_unittest.cc
src/lib/dhcpsrv/tests/mysql_host_data_source_unittest.cc
src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
    Removed calls to destroy schema from test constructors
2019-03-08 12:09:14 -05:00
Marcin Siodelski
da92b4e9e3 [#488,!259] Added sname, next-server and boot-file-name to MySQL schema. 2019-03-07 08:00:36 -05:00
Marcin Siodelski
434b93940c [#488,!259] Added support for authoritative flag in MySQL CB. 2019-03-07 08:00:35 -05:00
Marcin Siodelski
01fc4d5bb4 [#489,!250] Drop constraints on dhcp6_[pd]_pool prior to rename. 2019-03-04 14:45:28 +01:00
Marcin Siodelski
108a86cbc5 [#489,!250] Extend MySQL backend to store floating point values. 2019-03-01 15:06:25 +01:00
Marcin Siodelski
ffde8dc785 [#489] Updated MySQL CB to handle unspecified subnet and network values. 2019-02-28 17:38:53 +01:00
Francis Dupont
7fec7b6182 [460-update-mysql-database-schema-for-dhcpv6-config-backend--port] Ported DHCPv4 trigger & co to DHCPv6 2019-02-21 08:30:56 -05:00
Francis Dupont
1ff93144f1 [460-update-mysql-database-schema-for-dhcpv6--align-on-dhcpv4] Removed quotes from the update script 2019-02-20 11:09:26 -05:00
Francis Dupont
705da9b316 [460-update-mysql-database-schema-for-dhcpv6--align-on-dhcpv4] Aligned server table idexes 2019-02-20 11:09:26 -05:00
Francis Dupont
cbe62fed56 [460-update-mysql-database-schema-for-dhcpv6--align-on-dhcpv4] Renamed dhcp6_subnet_id in dhcp6_pd_pool too 2019-02-20 11:09:26 -05:00
Francis Dupont
b7dcffd2a1 [460-update-mysql-database-schema-for-dhcpv6--align-on-dhcpv4] Renamed a dhcp6_pool (unused table) column 2019-02-20 11:09:26 -05:00
Marcin Siodelski
71200e98f5 [#444,!229] Added new line in the dhcpdb_create.mysql 2019-02-08 13:18:53 +01:00
Marcin Siodelski
d91617106d [#444,!229] Switched back to second precision in MySQL CB. 2019-02-08 09:46:21 +01:00
Francis Dupont
a6c6439112 [354-compilation-with-mysql-fails-on-fedora-29] Updated schema & upgrade 2019-02-07 17:02:22 -05:00
Marcin Siodelski
63e0cbda5c [#429,!217] Extended dhcpX_global_parameter: added parameter_type. 2019-01-31 18:07:35 +01:00
Marcin Siodelski
6d40db07ef [#396,!205] Addressed a typo in the dhcpdb_create.mysql script. 2019-01-30 19:01:50 +01:00
Marcin Siodelski
6c8ae1e1e1 [#396,!205] Corrected referential actions in CB tables. 2019-01-30 12:16:55 +01:00
Francis Dupont
7bbbf0ac1a [396-add-audit-trail-for-the-dhcpv4-mysql-backend] cosmetics (spelling, spurious space at eol, ...) 2019-01-30 10:18:59 +01:00
Marcin Siodelski
84d9d7a401 [#396,!205] Audit revision timestamp is set by Kea. 2019-01-30 10:18:59 +01:00
Marcin Siodelski
58e6f3b475 [#396,!205] Use microsec precision for the CB tables. 2019-01-30 10:18:59 +01:00
Marcin Siodelski
c33495fa7a [#396,!205] Modify MySQL schema to use fractional second timestamps. 2019-01-30 10:18:59 +01:00
Marcin Siodelski
39c84ebcce [#396,!205] Added MySQL upgrade script from 7.0 to 8.0. 2019-01-30 10:18:59 +01:00
Marcin Siodelski
c926fa96f4 [#396,!205] Fix issues in the core tests related to schema changes. 2019-01-30 10:18:59 +01:00
Marcin Siodelski
c709b42fd0 [#396,!205] Cleanup in the database creation script. 2019-01-30 10:18:59 +01:00