205 Commits

Author SHA1 Message Date
Zuul
e4e09a7c1d Merge "Removed unused storage_driver config" 2023-10-31 16:12:30 +00:00
Erik Olof Gunnar Andersson
d7e6368e6b Add missing newline in mdns release note
It does not render the list properly without this newline.

Change-Id: I044a4552e1b4a6c3a3ecbad8c5a3b870d554d17e
2023-10-31 12:14:27 +00:00
Erik Olof Gunnar Andersson
ef4640347a Removed unused storage_driver config
Change-Id: Idecbaebe2a85d2c5f65e83b542b47e535067c47f
2023-10-29 08:05:14 -07:00
Erik Olof Gunnar Andersson
329e292c87 Removed deprecated mdns config
- Additionally removed unused topic config.

Change-Id: I552373e99fc184c5da3193d0a44a08da6dcf3e51
2023-10-29 05:21:19 -07:00
Zuul
ac556c65b5 Merge "Remove deprecated designate-agent" 2023-10-14 15:31:05 +00:00
Michael Johnson
b22803885f Add release note about max_request_body_size
With the updated example api-paste.ini, deployments may need to adjust the
max_request_body_size setting to accommodate zone imports.
This patch adds a release note to highlight this setting.

Change-Id: I3a27100d073af5833155ea169abd71638c498ffc
2023-10-10 16:12:21 +00:00
Erik Olof Gunnar Andersson
2868db4f66 Remove deprecated designate-agent
This patch completely removes the designate-agent service
and all agent related plugins.

Change-Id: Ibe4011fb85797282fa44742d4b9c9b7c00e78622
2023-10-04 14:39:57 +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
2023-09-10 03:43:12 +00: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
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
OpenStack Proposal Bot
963751f2b4 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I7c30db493111107aba79de6c5361ab0726046704
2023-07-08 02:53:29 +00:00
Michael Johnson
011ebe2e7c Fix list zones if shared with multiple projects
This patch fixes a bug when listing zones or updating recordsets in
zones that are shared with more than one project.

Closes-Bug: #2025295
Change-Id: I8af9b5cf8c1473bbf7db71a1fb848fb64509db84
2023-06-30 18:53:40 +00:00
OpenStack Proposal Bot
3621b9d1b1 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id9c796081ba9b0ed87135f473859720a77879cb4
2023-06-18 04:02:14 +00:00
Michael Johnson
5b7ee8899d Fix zone list/show for shared zones
Previously projects that had a zone shared with them were unable to view the
shared zone. This patch corrects that issue.

Change-Id: Ia3ede57ac2249a1bcd49512aa36452b2b9ffd827
2023-05-31 20:18:30 +00:00
OpenStack Proposal Bot
f194b33bd3 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If6fe98647dd5564b29bae025ea3880e0d66bba1d
2023-05-09 03:40:48 +00:00
Erik Olof Gunnar Andersson
2cb42ac9f6 Use ids when removing sink managed records
If the record status changes during the removal process,
the current implementation will fail.

Closes-Bug: 2015762
Change-Id: Iebe609e5f365d03e99f2a4580671175b4642763c
2023-04-13 23:19:20 +00:00
Zuul
f4ce71c8f8 Merge "Move to a batch model for incrementing serial" 2023-04-06 22:51:09 +00:00
Zuul
6591b53e50 Merge "Fix sharing a zone with the zone owner" 2023-04-04 04:57:15 +00:00
Erik Olof Gunnar Andersson
fb9c2da977 Move to a batch model for incrementing serial
This patch moves the responsibility of incrementing the
serial on a zone from central to the producer. This also
means that NOTIFY is triggered by the producer after the
serial has been incremented. The advantage of this approach
is that we can now batch requests which means less work
for the DNS servers, and it removes the risk of
race-conditions when updating the serial. Finally, the
producer is sharded and is easy to scale which means that
this approach should scale well with many zones.

The disadvantage is that it may take up to 5 seconds longer
for the DNS record to be updated on the DNS server. This
can be lowered by increasing the frequency of the task
that is responsible for incrementing the serial.

Depends-On: https://review.opendev.org/#/c/871266/
Change-Id: I5e9733abaaa40c874e1d80d7b57e563df0f12cee
2023-04-04 03:48:34 +00:00
Michael Johnson
edcd2e0998 Fix sharing a zone with the zone owner
There was a bug that allowed users to create a zone share with the zone
owner. This would then cause issues deleting the zone share as the zone
owner owns the NS and SOA recordsets in the zone.
This patch raises a BadRequest if the user attempts to create a zone
share for the zone owner.

Closes-Bug: #2011585
Change-Id: I1b56c492436821f650d1ba669614d92595d2f476
2023-03-31 21:02:24 +00:00
elajkat
fd09a0cfc3 Use SDK instead of neutronclient
The python-neutronclient has been deprecated for the CLI since Ocata and
the python bindings "neutronclient" has been deprecated for removal as
of the 2023.1 (Antelope) release[1] in favor of using openstacksdk.
This patch migrates Designate from using the neutronclient to using the
openstacksdk for communicating with neutron.

[1] https://docs.openstack.org/releasenotes/python-neutronclient/2023.1.html

Co-Authored-By: Michael Johnson <johnsomor@gmail.com>
Change-Id: I0198f38afe3d5c32ea06d9e674ab0ff849f360e6
Related-Bug: #1999774
2023-03-25 06:06:30 +00:00
Erik Olof Gunnar Andersson
05a112177d Update for sqlalchemy v2.x compatibility
This patch updates Designate to be compatible with SQLAlchemy 2.x.

Depends-On: https://review.opendev.org/c/openstack/oslo.db/+/874858
Change-Id: I5b9cfb4b86bd7c342fd50d1b50dd12dce0c8e81a
2023-03-11 03:50:19 +00:00
OpenStack Proposal Bot
dd2a945c78 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id3eecf26bc0147d8b190634ad5e83310b915418b
2023-03-07 03:23:33 +00:00
0d735bbecd Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

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

Sem-Ver: feature
Change-Id: If35c26f7a55ba18b262d6c3a6cf597a6f17bc9e8
2023-03-06 09:14:13 +00:00
Zuul
60edc59ff7 Merge "Implement sharing of zones" 2023-02-16 06:06:52 +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
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
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
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
766d089c46 Merge "Bump minimum dnspython to 2.2.1 for python 3.10" 2023-01-21 21:10:17 +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
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
Zuul
4ecd1089f1 Merge "Add option to force delete zone-files in delete API." 2022-11-23 01:23:51 +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
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
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
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
Erik Olof Gunnar Andersson
6fee42ecac Remove unicode
No longer necessary as we no longer support Python 2.7.

Change-Id: Icae82ed323d25d85a35e12b8b4c980f0f71d5d85
2022-10-11 16:14:50 +00:00
OpenStack Proposal Bot
6ca038f350 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id305c536bc78ed8ec07ded59ca6128020800a68a
2022-09-24 02:50:38 +00:00
879d69561c Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

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

Sem-Ver: feature
Change-Id: Ifad046c59216d73eaf80b4aaa31ec5824158cfc6
2022-09-16 09:19:16 +00:00
OpenStack Proposal Bot
c28225652d Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib1184b474cc883fbd63da4ac456fa83a07465767
2022-09-16 03:09:09 +00:00
Zuul
13a7048814 Merge "Add simple API versioning to the Designate API" 2022-08-31 18:05:26 +00:00
Zuul
218e11ea20 Merge "Switch Designate to Alembic database migrations" 2022-08-30 05:11:25 +00:00
OpenStack Proposal Bot
4a34f43e52 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib83f5e1cde009b740ccf01a027bd96bed17c0e97
2022-08-23 03:33:00 +00:00
OpenStack Proposal Bot
925ec43db5 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I048f35e7813eb4e2f2b6e4f5259dd4fb2eb3198e
2022-08-22 03:51:54 +00:00
Michael Johnson
a03c4657c2 Fix designate-manage pool update MissingProjectID
This patch fixes a bug where adding an additional pool to designate using the "designate-manage pool update" command may fail with an exception:

designate.exceptions.MissingProjectID: A project ID must be specified when not using a project scoped token.

There was an extra check added as part of the scoped token work that a project ID must be provided when creating pools. This was incorrect as pools are still valid with a None project ID as they are a system resource and not tied to a specific project.

This patch removes that check, but retains the RBAC check for and "admin" token.

Closes-Bug: #1986733
Change-Id: I7345d7ef505420767209ba037e3c8930a282d03f
2022-08-16 22:22:19 +00:00