4734 Commits

Author SHA1 Message Date
Michael Johnson
b6cfb7f10c Remove unused werkzeug requirement
The Werkzeug package was included in the designate requirements.txt, but it is
not used by designate.
This patch removes this requirement.

Change-Id: I29b1aba0e8aa455eed7977a5efe887f201963a3c
2023-02-17 00:55:33 +00:00
Zuul
b66458b1c1 Merge "Do not use Docutil's set_class()" 2023-02-16 22:42:32 +00:00
Michael Johnson
ebed418cb4 Enable fail-fast on the gate queue
With this set, if any one of the voting jobs fails, zuul
will report a build failure immediately and abort the remaining
jobs.

This patch enables fail-fast on the gate pipeline as any one
failing job means the patch will not merge.

Change-Id: Ib1872ed973079224f8245eef826399a0b0850f0b
2023-02-16 06:46:49 +00:00
Zuul
60edc59ff7 Merge "Implement sharing of zones" 2023-02-16 06:06:52 +00:00
Thomas Goirand
535026499f Do not use Docutil's set_class()
We should not use set_class(), which is deprecated. This fixes it,
by using the element['classes'] directly, as recommended upstream.

Change-Id: I815bc2e8700438f768197337b7afb695a31308d0
2023-02-15 23:21:31 +00:00
Igor Malinovskiy
f39704dcd8 Implement sharing of zones
Author: Igor Malinovskiy <u.glide@gmail.com>
Co-Authored-By: Sergey Drozdov <sergey.drozdov.dev@gmail.com, sergey.drozdov93@thehutgroup.com>
Co-Authored-By: Michael Johnson <johnsomor@gmail.com>

Change-Id: Ibd780f3c695a95be00ff97d7736d5a0bebea79b9
Closes-Bug: #1714088
Depends-On: https://review.opendev.org/c/openstack/designate-tempest-plugin/+/872069
2023-02-14 01:54:15 +00:00
Erik Olof Gunnar Andersson
df005ba695 Fix mdns deprecation warning and minor improvements
- Fix deprecation warning.
- Fix minor code warnings.

Change-Id: I7bab00649ca7c797d0fd6b2c6b518cd9af1e0544
2023-02-11 05:58:38 +00:00
Zuul
d958a72064 Merge "Deprecate the agent framework and drivers" 2023-02-11 00:54:35 +00:00
OpenStack Proposal Bot
54aaa295a0 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I74a03900e1cf3e386e9c999d246ba81ebbd81c69
2023-02-10 04:11:03 +00:00
Erik Olof Gunnar Andersson
5cd63481c6 Fix dns.resolver import for mdns
We are currently failing with module 'dns' has no
attribute 'resolver'.

Closes-Bug: #2006537
Change-Id: I31a1b1892a7112018b1261f956f51ed4eaa7cfb9
2023-02-07 19:48:49 -08:00
Michael Johnson
63ca389755 Deprecate the agent framework and drivers
This patch marks the agent framework and drivers as deprecated in the Antelope release for removal in the "C" release.

Please see the announcement on the OpenStack discuss mailing list for more information about the deprecation:
https://lists.openstack.org/pipermail/openstack-discuss/2023-January/031803.html

Change-Id: I3a90243dc323a2815ce7d973a5e52248ed1c2ad6
2023-02-05 00:29:55 +00:00
OpenStack Proposal Bot
0e58c3d757 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I82a3d8e15869847ce097b6ada4f580758c1390f7
2023-02-04 02:58:41 +00:00
Zuul
381317dc3b Merge "Fix missing default for hard_delete and bump rpc version" 2023-02-01 20:20:03 +00:00
Erik Olof Gunnar Andersson
d10c20a580 Fix missing default for hard_delete and bump rpc version
Change-Id: Ic80228697374c67a0c16fd3574fc0cd0f52dc680
2023-02-01 00:44:02 -08:00
Pavlo Shchelokovskyy
6389eb4c68 Add oslo.policy.enforcer entry point
this will allow usage of many oslo.policy scripts, e.g.
to generate current effective policy, or to list redundant polices
defined in policy files.

Change-Id: I1de9b6cc16be2896136c7e99cf150c4b8e4603e9
Closes-Bug: #2004421
2023-01-31 19:05:25 +00:00
OpenStack Proposal Bot
a9cf887da1 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I167c204b6a0f537ceb5b3b28e32dfbc7c617cff2
2023-01-27 04:09:24 +00:00
Zuul
ab80467210 Merge "Use new get_rpc_client API from oslo.messaging" 2023-01-22 00:00:58 +00:00
Zuul
766d089c46 Merge "Bump minimum dnspython to 2.2.1 for python 3.10" 2023-01-21 21:10:17 +00:00
Tobias Urdin
31b1959620 Use new get_rpc_client API from oslo.messaging
Use the new API that is consistent with
the existing API instead of instantiating the client
class directly.

This was introduced in release 14.1.0 here [1] and
added into oslo.messaging here [2]

[1] https://review.opendev.org/c/openstack/requirements/+/869340
[2] https://review.opendev.org/c/openstack/oslo.messaging/+/862419

Change-Id: Ibc2147fb08beae7a2190b9860e3342150c43dfab
2023-01-19 20:36:43 +00:00
Michael Johnson
969e80491c Bump minimum dnspython to 2.2.1 for python 3.10
This patch proposes bumping the minimum dnspython version to 2.2.1 to support
python 3.10 which is part of the antelope (2023.1) tested runtimes[1].

2.2.0 had a bug[2] and has been blocked in global requirements.

[1] https://governance.openstack.org/tc/reference/runtimes/2023.1.html
[2] https://github.com/rthalley/dnspython/issues/766

Change-Id: I43617fcf29e404bf58b1a3467f2aaf23c5acd460
2023-01-19 17:21:42 +00:00
Michael Johnson
41bf7dd319 Workaround issue with dnspython >= 2.3.0
The dnspython module >= 2.3.0 now validates the opcodes used when building DNS messages. This breaks Designate because designate is using an "unassigned"[1] opcode 14 for command/control messages inside the backend agents framework.

This patch adds a workaround to override the dnspython opcode enum to include
opcode 14. This will give us time to either remove the agent framework via deprecation or to change the agent framework protocol to not rely on unassigned opcode values.

[1] https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-5

Partial-Bug: #2002950

Change-Id: If10443b2e361aa1b467fb64124ad3c82540bcddd
2023-01-17 17:46:27 +00:00
Jayce Houtman
de000517fb Fix missing space IllegalChildZone
Change-Id: I347748b1a31d757eff0376a87db75ab4e23512f3
2023-01-04 17:50:11 +01:00
Zuul
f53ed9a250 Merge "Make sure proxy_http is always loaded for devstack" 2023-01-03 17:31:47 +00:00
Zuul
941ef9ea13 Merge "Remove unused get_migration_manager function" 2023-01-03 15:50:21 +00:00
Nobuto Murata
04321d3324 Make sure proxy_http is always loaded for devstack
With the minimal Designate deployment with devstack, keystone module
doesn't load proxy_http so Designate API requests may fail. Explicitly
enable the module to make sure the apache2 setup always works for
Designate.

Closes-Bug: #1999019
Change-Id: I1fc02225b6676b68137245df2279340f215221f4
2023-01-03 08:32:36 +00:00
liyou01
c6ddf55f7f Fix tox4 error
tox.ini started failing with Tox4 which had some
incompatible changes. One is allowlist_externals which now needs to be
explicitly set for each testenv.

Other failure is due to the skipsdist = True.

Fixing tox.ini for tox4 changes.

Change-Id: I7ef284a07866d99cbc34b391295efbae261af7c6
2022-12-31 10:48:26 +01:00
OpenStack Proposal Bot
e6bf93a80a Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I8e40a36761cd2ad3641ee184e83d069190602caa
2022-12-11 03:58:36 +00:00
Michael Johnson
c1abab048e Remove unused get_migration_manager function
This patch removes the get_migration_manager function from the sqlalchemy
utils module. It doesn't appear to be used anywhere in the code.

Change-Id: I3cc77e6a2607e57ce071078157a7853a03eea021
2022-12-02 01:11:57 +00:00
Zuul
0483a53321 Merge "Fix configuration leak in unit tests" 2022-11-23 06:34:34 +00:00
Zuul
4ecd1089f1 Merge "Add option to force delete zone-files in delete API." 2022-11-23 01:23:51 +00:00
Michael Johnson
c3cdc8f2d6 Fix configuration leak in unit tests
There was a configuration leak in the agent based bind 9 tests, where if
you have a /etc/designate/designate.conf file with settings other than
the default the tests would fail.
This patch adds a configuration fixture setting override for the two
tests to ensure consistent testing.

Change-Id: I44dc0499e03431261d5b596206858d94cc4803f9
2022-11-23 01:10:47 +00:00
Erik Olof Gunnar Andersson
03c729c479 Cleaned up and optimized sqlalchemy base
- Cleaned up sql syntax.
- Fixed minor inconsistencies.
- Improved test coverage.

Change-Id: I5986dc9fdd1607119a71872637f836d211186c1e
2022-11-19 04:20:55 +00:00
Zuul
b929827271 Merge "Add basic api version test coverage" 2022-11-19 02:24:04 +00:00
Zuul
937e93fe14 Merge "Improved Zone Lock coverage" 2022-11-19 01:44:26 +00:00
Zuul
137cec0c99 Merge "Update metadata in setup.cfg" 2022-11-15 00:39:17 +00:00
dekehn
dcb61f7ffe Update metadata in setup.cfg
we are using some "aliases" that the setuptools docs say
"are supported for compatibility reasons" but their use is not
advised[1].

[1] https://setuptools.pypa.io/en/latest/userguide/declarative_config.html#metadata

Change-Id: Ib0fac569a255572aa2657fe2a7e4991e30f249de
2022-11-14 22:43:46 +00:00
Scott Solkhon
d0e1bb1872 Reload Infoblox config after deleting zone
If you delete a zone using the Infoblox backend
the zone will be deleted from Infoblox but the
zone within OpenStack will go into an ERROR state
unless an operator manually logs into Infoblox
and issues a reload of the running configuration.

This commit fixes this bug by issuing a 'restart
if needed' after deleting the zone. This does not
happen when creating zones as 'restart if needed'
can be passed through as a param into that API call.

Co-Authored-By: Jay Faulkner <jay@jvf.cc>
Change-Id: I296c5f085cce27033461be81ca58c85f095df89a
Closes-Bug: #1840253
2022-11-11 08:03:20 -08:00
Zuul
f4999fdfcb Merge "Migrate Designate jobs to run on Ubuntu 22.04 (Jammy)" 2022-11-06 05:19:30 +00:00
OpenStack Proposal Bot
04f8091691 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I3a949025b4b93978ab90b0d9e851f02a1c64c69a
2022-11-05 02:51:38 +00:00
Erik Olof Gunnar Andersson
fb876d0ddc Add basic api version test coverage
Change-Id: Idb04e81ce5954ca8b5e387dc7c0776fdf7d08779
2022-10-27 15:09:59 +00:00
Erik Olof Gunnar Andersson
664bbb3a87 Improved Zone Lock coverage
Change-Id: I0243a1edfeb7ae592cb77356177df85149bd3055
2022-10-27 15:09:41 +00:00
Dr. Jens Harbott
c1a826ac2c Migrate Designate jobs to run on Ubuntu 22.04 (Jammy)
This matches the currently supported LTS platform according to the TC.

Change-Id: I7a5d2fce52841ab057ef1678c6cfb96205033101
2022-10-26 05:17:58 +00:00
Erik Olof Gunnar Andersson
0b162a4c48 Add Ubuntu 22.04 CI support
Change-Id: I04a3a48c7e72797092fd1c3bdc6252085eff04df
2022-10-23 20:08:49 -07:00
Manish Honap
d193b0c70c Add option to force delete zone-files in delete API.
Designate does not delete the zone-files on the back-end when zone is
deleted. This results in thousands leftover zone files on backend e.g.
bind. Add option in designate zone delete API to force clean/delete
zone-files on the back-end. This option is restricted for admin or
owner roles.

Closes-Bug: 1966517
Change-Id: Ic7b8fee4d4702b0632774d32542b23d7d2a8c253
2022-10-20 10:01:23 +00:00
Zuul
06b297eaf3 Merge "CI: Move queue configuration into project-template" 2022-10-17 05:56:39 +00:00
OpenStack Proposal Bot
8f7fbc387e Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I04d433f7f5866e369dc2042110674e9af8fe7664
2022-10-17 03:52:48 +00:00
Zuul
3804048b23 Merge "Removed unused SQL functions and better coverage" 2022-10-15 00:47:50 +00:00
Dr. Jens Harbott
c907cfa1e6 CI: Move queue configuration into project-template
With this it can be reused by the other designate repos and we can
reduce the replication everywhere.

Change-Id: I1fe73145e4a4699939244bc857600efa264f2340
2022-10-14 12:15:56 +02:00
Zuul
9386b1ca33 Merge "Fixes compatibility with jsonschema >= 4.16.0" 2022-10-13 11:36:21 +00:00
Michael Johnson
d6eabef4de Fixes compatibility with jsonschema >= 4.16.0
Jsonschema has changed the type of a parameter from a simple
tuple to a pyrsistent map object. Since we were passing in the
defaults anyway, this patch removes those parameters from the
jsonschema call. This makes designate compatible with
jsonschema >= 4.16.0.

Closes-Bug: #1992677
Change-Id: I9cc94506a63371ad78b204030e5e87339982e9e7
2022-10-13 06:17:29 +00:00