4710 Commits

Author SHA1 Message Date
Zuul
d2d5e2bfc6 Merge "Add middleware to limit request body size to api-paste" 2023-09-27 19:07:32 +00:00
Erik Olof Gunnar Andersson
ecaff9e6d3 Fix AXFR loop when updating secondary zone
When a secondary zone is created or updated we trigger an AXFR,
this AXFR then goes ahead and updates the zone. This then causes
the AXFR code to get triggered again as it thinks the masters
has changed.

We fix this by ensuring that when we update the zone from the AXFR
code that we always reset the masters field.

Partial-Bug: #1856442
Change-Id: Ifc2efb5a6d1091ff16373f3cbe3846f5e4371272
2023-09-26 12:38:04 -07:00
Erik Olof Gunnar Andersson
79aac2b206 Prevent XFR from being used on PRIMARY zones
- Added constant for PRIMARY / SECONDARY.

Related-Bug: #2036750
Change-Id: Ie0419cdb52dbfcb813faf9070110a2635a46ed51
2023-09-21 12:37:20 +00:00
Erik Olof Gunnar Andersson
aaed97875c Fix bug with designate-manage pool update losing existing record data
When designate-manage pool update is used we trigger an AFXR and
use that information to rebuild the zone. This is however only valid
for secondary zones, as the AXFR does not contain all the internal
information required for a primary zone and that causes designate to
lose important internal record data.

Closes-Bug: #2036750
Change-Id: I77a5d05cd8f55e975a16cb386221d53b63131886
2023-09-21 04:42:57 -07:00
Erik Olof Gunnar Andersson
c0a5572814 Add middleware to limit request body size to api-paste
Closes-Bug: #2036642
Change-Id: Ia4d50ff0b39e3a7ed31829fbabeae4fd24cf49c9
2023-09-19 20:36:09 +00:00
d6de3cf4f0 Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.2.

Sem-Ver: feature
Change-Id: I31fd30ad48540b201850cd7acbc90e46833a989a
2023-09-15 14:16:51 +00:00
OpenStack Proposal Bot
4ba42190af Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I90badecde1f32fc89ef4910ad65723ec6757fc5c
17.0.0.0rc1
2023-09-10 03:43:12 +00:00
Guillaume Boutry
6824978a5d
Add mysql_engine and mysql_charset options to shared_zones table
Shared_zones tables is the only table not defining the options
`mysql_engine` and `mysql_charset`, leading into an error if database
default charset is different from the one defined in the other tables.

Change-Id: I1d254553d40a50be264d67e1a8e81fa31f7a4c9f
2023-08-31 11:33:46 +02:00
Erik Olof Gunnar Andersson
360433b38b Remove non-functional contrib code
- Remove code that no longer works.
- Minor tweaks to existing contrib content.

Change-Id: I0c7b70bde214da71e1bf3935f1e5f33107410c96
2023-08-27 04:10:49 -07:00
Zuul
4ed635f620 Merge "Remove unused storage/quota attributes in producer" 2023-08-25 19:00:08 +00:00
Zuul
8f2f5a0a42 Merge "Raise error if producer configured with no valid tasks" 2023-08-25 14:36:10 +00:00
Zuul
71ef4e5691 Merge "Added simple tldname regex test" 2023-08-24 17:27:27 +00:00
Erik Olof Gunnar Andersson
137073adeb Remove unused storage/quota attributes in producer
Change-Id: I6afa842a5f5578248fc256761709888221bab44e
2023-08-24 15:13:55 +00:00
Erik Olof Gunnar Andersson
54d7692001 Raise error if producer configured with no valid tasks
There is no legit reason to have the producer running
if there are no tasks running.

Also improved the test coverage.

Change-Id: I05a69cf80785c912aaef2e29bfc0a1e5d57ceb6c
2023-08-24 15:24:44 +02:00
Michael Johnson
0648250388 Fix DB upgrade with using SQLAlchemy 2.x
Sqlaclhemy metadata bind is deperecated from version 1.4 and will
be removed in SQLAlchemy 2.0 [1]. It can be easily replaced with
metadata reflect which works for SQLAlchemy 2.0.

Also current metadata.bind does not result in fetching all tables from
the database, so metadata.tables is an empty mapping, which leads
to db_sync failures.

[1] https://docs.sqlalchemy.org/en/14/core/metadata.html#sqlalchemy.schema.MetaData.bind
[2] https://docs.sqlalchemy.org/en/14/core/reflection.html#reflecting-all-tables-at-once

Co-Authored-By: Dmitriy Rabotyagov <noonedeadpunk@gmail.com>
Change-Id: I8c721722eeb36de64b8c8a79d4fdcec0e92388fa
2023-08-23 14:36:48 +00:00
Erik Olof Gunnar Andersson
0cf0ccd9d8 Added simple tldname regex test
This test was removed during a previous refactor.

Change-Id: Ief4d42625bc100d3a881163c684f86e010237f82
2023-08-22 15:24:30 +02:00
Erik Olof Gunnar Andersson
9d115c88a1 Simplify schema implementation
Removes all unused components of the schema code and
simplified the schema class.

Closes-Bug: #2031922
Change-Id: Ia5e4a8760161424851eda22051385695ec2c7a9b
2023-08-20 22:13:28 +02:00
Erik Olof Gunnar Andersson
18a5d4f4d9 Moved all regexes to constants
- Moved record regexes to constants.
- Moved floating ip regex to constants.
- Moved valdiation regex to constants.
- Added additional floating ip tests around regexes.

Change-Id: I3cb738f2775f770deda30253b91f148b593314bc
2023-08-14 17:21:24 +00:00
Erik Olof Gunnar Andersson
29097ed559 Additional recordset validation testing
- Minor modification to record __repr__ to make testing easier.

Change-Id: I094a2ee9ccd19aa75cf3e7adcd3ce09f033d3527
2023-08-14 14:26:08 +02:00
Erik Olof Gunnar Andersson
fad3d708dc Added basic PTR Tests
Change-Id: I0e4e10be2c495cbfc22f2f41721521864e725f63
2023-08-14 13:31:31 +02:00
Erik Olof Gunnar Andersson
22bb910a59 Added basic CNAME Tests
- Tweaked SRV record failure.

Change-Id: I50f07151fef67d5d737deaf9172df6b76d861895
2023-08-14 13:26:41 +02:00
Zuul
5fa2dd8efc Merge "Fix missing oslo.versionedobjects library option" 2023-08-08 15:05:57 +00:00
Takashi Kajinami
18b6faacc8 Fix missing oslo.versionedobjects library option
This ensures the options for oslo.versionedobjects library are
included in the file generated by oslo-config-generator.

Change-Id: Icc60e155c88efdb2a2c59637b35b19c3e92918c0
2023-08-08 15:02:20 +09:00
Zuul
d3b3669996 Merge "Removed unused object fields code" 2023-08-05 21:40:55 +00:00
Zuul
2897c21d89 Merge "Simplify test_purge_zones to fix race condition" 2023-08-04 23:10:25 +00:00
Erik Olof Gunnar Andersson
5c9fca9d42 Removed unused object fields code
Change-Id: Ibb410619f08ab879266cac81c7758f7739a7c0e4
2023-08-02 21:09:21 +00:00
Zuul
075f5dbe0f Merge "Increase minimum test coverage to 90%" 2023-08-02 20:47:32 +00:00
Zuul
d63cfa867f Merge "Add basic SRV record unit test" 2023-08-02 20:36:45 +00:00
Erik Olof Gunnar Andersson
88d589115a Simplify test_purge_zones to fix race condition
This is one of the tests that pretty frequently
fails due to a race condition. Simplify it a bit
to remove the risk of a race condition.

Change-Id: I1a17a24f644c8dc28c4744baf7e05f4e011c47f7
2023-08-02 22:26:31 +02:00
Erik Olof Gunnar Andersson
c102c0830b Increase minimum test coverage to 90%
Change-Id: Ic7f7bec89cb17b6c0ddbdbc93237ef273f17deb6
2023-08-02 16:51:37 +02:00
Pierre Riteau
031eb8b5d3 Fix indentation of user documentation code blocks
This removes unnecessary quotes to the left of code blocks.

Change-Id: I759b5c15c857e6dc4397ab3947ce8696421a75ce
2023-08-02 13:19:27 +02:00
Erik Olof Gunnar Andersson
167a01fdd9 Add basic SRV record unit test
Change-Id: I3ca7c4b5ae4bba736bfa16333f87b341e36be8db
2023-08-01 23:40:33 +02:00
Zuul
7d622d374d Merge "Add python3.9 support in testing runtime" 2023-08-01 20:35:30 +00:00
Zuul
025854ab88 Merge "Use i18n and not gettext for infoblox" 2023-08-01 11:42:37 +00:00
Zuul
76f582818d Merge "Additional infoblox test coverage" 2023-08-01 11:16:40 +00:00
likui
1da71884e4 Add python3.9 support in testing runtime
In 2023.2 cycle testing runtime, project test in py38 py39 and py10

[1] https://governance.openstack.org/tc/reference/runtimes/2023.2.html

Change-Id: Ib54dcc4433d2be789f96fc881ca9ee81fe751df9
2023-08-01 11:52:27 +08:00
Zuul
4e7e471760 Merge "Replace blockdiag with graphviz" 2023-07-31 19:57:52 +00:00
Erik Olof Gunnar Andersson
85646cf19a Use i18n and not gettext for infoblox
Change-Id: I76d414775dd67865d71f23f5cb945003dc9e7c53
2023-07-30 18:41:54 +02:00
Erik Olof Gunnar Andersson
2f42343acf Additional infoblox test coverage
Change-Id: I8a81296af981d29372cb63c9be7c03d71d972472
2023-07-30 17:44:26 +02:00
Erik Olof Gunnar Andersson
f371b1af02 Added unit test coverage for verify_project_id
- Cleaned up code path to make it easier to read.
- Added unit test coverage.

Change-Id: I03d98e2ab950247fad73814e2ac03a96cda749b6
2023-07-30 17:28:07 +02:00
Michael Johnson
beb79ac98c Replace blockdiag with graphviz
The python blockdiag module is unmaintained and will likely be removed from distros.[1]
This patch replaces blockdiag with graphviz diagrams.

[1] https://github.com/blockdiag/blockdiag/pull/171

Change-Id: I3a902c60b59071b466e1bf1ec6bda205e58b378c
2023-07-28 20:00:07 +00:00
Erik Olof Gunnar Andersson
fa95018c91 Cleanup DNS Middleware
- Moved DNS Middleware to separate file.
- Cleaned up logic.
- Fixed non-lazy loaded logging.

Change-Id: Ic1d7c17fc2d7a563ff22f0b1dd42a58f87665cf1
2023-07-26 09:25:16 +02:00
Zuul
8cc87bce03 Merge "Removed unused code path in sql base" 2023-07-25 08:58:34 +00:00
Erik Olof Gunnar Andersson
991e0afe44 Improve DNS Service test coverage
- Cleaned up error handling logic to make testing easier.

Change-Id: Idddf63a4decc31895e3c5a3b9a11f51cddffedaa
2023-07-23 12:36:07 +02:00
Erik Olof Gunnar Andersson
e003d7aa68 Removed unused code path in sql base
We never provide any extra parameters in any
of these code paths and instead of adding missing
testing coverage it's better to just remove these
code paths.

Change-Id: Iab105ec5f45083a9026718572d77870fd908d660
2023-07-22 23:16:32 +02:00
Zuul
61b408287f Merge "Add a tempest test job with sqlalchemy 2.x" 2023-07-22 19:49:10 +00:00
OpenStack Proposal Bot
c447225084 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Iec6ffe07a86c2b4dac3a9a19563757d478733c22
2023-07-20 04:20:22 +00:00
Michael Johnson
9c6ed29135 Add a tempest test job with sqlalchemy 2.x
Now that nova removed the use of "migrate" we can add a tempest test job
with sqlalchemy 2.x.

Change-Id: Ibc6b1a67a14c8a83c1f679a9e3302e9c2eb25983
2023-07-18 19:22:43 +00:00
Stephen Finucane
b77934beb7 Add job to test with SQLAlchemy master (2.x)
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Idcf698e7266c10f468123489a964404e9a68a7be
2023-07-18 01:33:01 +00:00
Michael Johnson
7daa2578a5 Fix a sqlalchemy 2.x compatibility issue
A recent patch[1] introduced an incompatibility with sqlalchemy 2.x.
Unfortunately the upper-constraint of oslo.db < 13.0.0 blocks us from properly
testing with sqlalchemy 2.x, so this issue was not caught.

[1] https://review.opendev.org/c/openstack/designate/+/880514

Change-Id: Ibc0569235997ea1feb2341adc1e942ecb3fc6dcb
2023-07-18 01:32:13 +00:00