4710 Commits

Author SHA1 Message Date
Zuul
ae3bb0ddf3 Merge "Use ids when removing sink managed records" 2023-04-14 01:31:51 +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
99d30a00fa Merge "Use ids when removing ptr records" 2023-04-13 19:54:22 +00:00
Erik Olof Gunnar Andersson
b3161ece23 Use ids when removing ptr records
If the record status changes during the removal process,
the current implementation will fail.

Change-Id: I02b5d7499440154160c89ed63a2f70652fe72145
2023-04-09 11:50:07 -07:00
Mitya_Eremeev
964562cc65 Secondary zone loops AXFR transfer during zone creation
When we create a secondary zone, AXFR transfer loops indefinitely.
Normally, only one xfr should be performed.
Due to AXFR loop the zone changes status from active to pending all the time.

Co-Authored-By: ZhouHeng <zhouhenglc@inspur.com>
Closes-Bug: 1856442
Change-Id: I0e0d138049e6d4c31dea3cc6768cc15e59a5942c
2023-04-07 05:55:53 +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
Zuul
0f6a837a23 Merge "Update designate for RBAC "direction change"" 2023-04-03 23:05:08 +00:00
Zuul
3a63b8f413 Merge "Use SDK instead of neutronclient" 2023-03-31 21:27:35 +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
Michael Johnson
c2e51939b4 Update designate for RBAC "direction change"
The RBAC goal has changed[1] and system scope is no longer going to be
used. This patch updates Designate to align to this change in direction
by removing the system scope from the policies.
It also updates the functional tests to be ready for the switch to using
the new keystone roles by default.

[1] https://governance.openstack.org/tc/goals/selected/consistent-and-secure-rbac.html#direction-change

Depends-On: https://review.opendev.org/c/openstack/designate-tempest-plugin/+/879111
Change-Id: I1937e215dbd072b0a095df659c75f17a3f48c937
2023-03-31 00:38:50 +00:00
Zuul
15fcba15e8 Merge "Removed unnecessary import in sql code" 2023-03-28 01:18:15 +00:00
Erik Olof Gunnar Andersson
43fa1a8364 Removed unnecessary import in sql code
Change-Id: I62fe1cd22e17a67f3d3f95578def14880933c67b
2023-03-26 22:14:52 +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
Michael Johnson
b8ec3b450b Restart neutron on grenade client update
During a grenade upgrade the Designate grenade plugin updates the
python-designateclient. This can cause the installation location to change
to under the /opt/stack/new path.
This patch makes sure we restart neutron q-svc after this update to make sure
it can still find the client.

Change-Id: I5ce96268cb39ae4a4a8d82a75ac192b2310455a1
2023-03-24 21:21:24 +00:00
Zuul
5703810a40 Merge "Update for sqlalchemy v2.x compatibility" 2023-03-20 22:57:48 +00:00
Takashi Kajinami
541395c424 [coordination] backend_url should be secret
The backend_url option can sometimes contain secrets.

For example when redis coordination backend is used and authentication
is enabled in redis, the plain redis password is put as an URL element.

[coordination]
backend_url=redis://:password@127.0.0.1:6379

Closes-Bug: #2012246
Change-Id: I0ee95fc56130e51bf5c799d252e79a469492b7db
2023-03-20 18:38:23 +09: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
Erik Olof Gunnar Andersson
758956d5b9 Removed unsupported test B309 from bandit
B309 was removed with this patch and breaks the CI.
130a467434

Change-Id: I15864a76c8913f151154e2398ae86aea71883498
2023-03-10 16:50:32 -08: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
Michael Johnson
8910a2014b Add hacking check for line continuation backslash
This patch adds a hacking check for line continuation backslashes and fixes the occurences that existed in the code.

Change-Id: I1d1269de231f6e747248a9d816a1d64e3968c69b
16.0.0.0rc1 16.0.0
2023-02-21 20:12:04 +00:00
Erik Olof Gunnar Andersson
fbfb1b0dd8 [CI] Reduce workers and disable cinder to save on memory
Change-Id: I677ac79047286fb92343d3d895c38cf1a1076556
2023-02-18 16:19:03 -08:00
Zuul
19f26d92b8 Merge "Remove unused werkzeug requirement" 2023-02-17 22:55:13 +00:00
Zuul
409d665128 Merge "Enable fail-fast on the gate queue" 2023-02-17 20:43:04 +00:00
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