4900 Commits

Author SHA1 Message Date
Erik Olof Gunnar Andersson
68fc28527a pyupgrade changes for Python3.8+
Result of running

$ pyupgrade --py38-plus $(git ls-files | grep ".py$")

This was inspired by Nova [1] and Octavia [2]

Fixed PEP8 errors introduced by pyupgrade by running:

$ autopep8 --select=E127,E128,E501 --max-line-length 79 -r \
  --in-place designate

and manual updates.

[1]: https://review.opendev.org/c/openstack/nova/+/896986
[2]: https://review.opendev.org/c/openstack/octavia/+/899263

Change-Id: Idfa757d7ba238012db116fdb3e98cc7c5ff4b169
2023-11-03 11:19:07 +00:00
Erik Olof Gunnar Andersson
7ef4c01e02 Allow base_uri override for tests
Made some changes to make the api base_uri code easier
to test and standardized the implementation.

Change-Id: Ie2fc0dda13e455dc2cda10c4e09fb58e549c229f
2023-11-03 04:18:44 -07:00
Erik Olof Gunnar Andersson
825e01a359 Use test addresses for all unit testing
Change-Id: I84fcb483a8d8cf50d7c6b7aa0b75c177f0b86c3d
2023-11-01 16:00:54 -07:00
Erik Olof Gunnar Andersson
0b9635ddec Improved dynect backend coverage
Change-Id: I1aa8c99f36f2373feee37a15376aee5f45ccc2d2
2023-11-01 16:00:54 -07:00
Erik Olof Gunnar Andersson
0f7e2c70b9 Increase minimum test coverage to 92%
Change-Id: If03860e2acee8a8c9c064f8a02d572ea85d6b782
2023-11-01 16:00:54 -07:00
Zuul
4065d1d4eb Merge "Remove unused server object" 2023-11-01 21:22:45 +00:00
Zuul
5640cf4410 Merge "Improved Objects Adapters testing" 2023-11-01 19:04:38 +00:00
Erik Olof Gunnar Andersson
71475ab2a8 Remove unused server object
Unable to find any use for the server object.

Change-Id: I04d9c2dfc3f0c144332f6ba76892fc705322ff1a
2023-11-01 16:25:01 +00:00
Erik Olof Gunnar Andersson
af6469c105 Improved Objects Adapters testing
- Split adapters test into separate file.
- Renamed test_yaml_adapters to test_adapters_yaml.
- Minor change to code to remove redundant if check.

Change-Id: Idabe1930c70d4a304bc0f74b3fe1fc42d6d6e254
2023-11-01 09:20:32 -07:00
Erik Olof Gunnar Andersson
83985fea34 Improve pdns coverage
Change-Id: If04a2673c624390c59cb6fabc017b06fe52edc0c
2023-11-01 12:22:50 +00:00
Erik Olof Gunnar Andersson
1b6546e137 Improve bind coverage and fixed minor bug
Fixed a minor bug where a timeout could be passed as either
a string or a int, but didn't handle the conversion properly.

Change-Id: Idbe15d59299d363305dd4404080400157cf90d2c
2023-11-01 12:22:46 +00:00
Zuul
e4e09a7c1d Merge "Removed unused storage_driver config" 2023-10-31 16:12:30 +00:00
Zuul
5a39876d14 Merge "Add missing newline in mdns release note" 2023-10-31 15:51:51 +00:00
Zuul
c1332c04a2 Merge "Remove python-memcached indirectly used" 2023-10-31 15:51:49 +00:00
Zuul
9dfc8426d3 Merge "Remove unused debtcollector" 2023-10-31 15:20:46 +00:00
Zuul
2f1c8bce52 Merge "Improved objects coverage" 2023-10-31 14:10:26 +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
Zuul
b1c305c175 Merge "Removed deprecated mdns config" 2023-10-31 11:49:30 +00:00
Zuul
fe7df7f095 Merge "Add basic NS test coverage" 2023-10-31 11:49:27 +00:00
Zuul
4be4abfc58 Merge "Add basic SOA test coverage" 2023-10-31 11:49:25 +00:00
Takashi Kajinami
951f3f1fba Remove python-memcached indirectly used
The direct dependency to python-memcached was removed when pool-manager
was removed[1]. Now python-memcached is not directly required by
designate and it's part of indirect dependencies.

[1] 52ad1c4c13d1fead646435634e4b07bb32c68d28

Change-Id: Iaf3a5e3c92d5eec53aa9dcf5ef52636cd39b4362
2023-10-31 02:44:48 +00:00
Takashi Kajinami
1969478db1 Remove unused debtcollector
This library is no longer used since designate-agent implementation was
cleaned up by [1].

[1] 2868db4f66282a9ab85abeb7e4a451a08d96547e

Change-Id: I11e55be43020eb314356c9bafe209307ae0e5e8e
2023-10-31 11:21:01 +09:00
Zuul
860dc3a5a3 Merge "Drop unused os-win" 2023-10-31 00:22:23 +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
Takashi Kajinami
57da282b8b Drop unused os-win
The os-win library was used by designate-agent to manage Microsoft DNS
but the implementation was removed when designate-agent was removed[1].

The os-win library is part of the WinStackers project which was already
retired, so it will no longer be maintained.

[1] 2868db4f66282a9ab85abeb7e4a451a08d96547e

Change-Id: I66acc3c88da395e912f6336b5ba87e4de81de8ad
2023-10-27 00:21:10 +09:00
Erik Olof Gunnar Andersson
aa4f5dcf6f Improved objects coverage
- Added additional basic tests for CERT and SPF records.

Change-Id: Ica95268caf072502e629dca78cdc467582826c36
2023-10-24 05:12:18 -07:00
Erik Olof Gunnar Andersson
87e0779d28 Add basic NS test coverage
Change-Id: I4e6797fec33094ab7d61639083857db55919d565
2023-10-24 04:43:58 -07:00
Erik Olof Gunnar Andersson
613669dec8 Add basic SOA test coverage
Change-Id: Ic195936dffb64eef21b047277626e860546fb249
2023-10-24 04:38:59 -07:00
Zuul
6354b5f79c Merge "Fix python shebang" 2023-10-24 11:33:48 +00:00
Michael Johnson
5809159e4a Add clean_zonefile to BIND9 pool.yaml doc
This patch adds an example of the "clean_zonefile" option in the BIND9 targets in the pools.yaml file. The option has existed in the code, but was not documented in any way.
It also enables this feature in the bind9 devstack plugin for testing and to reduce the storage utilization during test runs.

Change-Id: I70b92b400cfeb059d1a1889ffa72621e0011d8c6
2023-10-24 03:13:18 +00:00
Takashi Kajinami
24a58fce9d Fix python shebang
The current shebang requires /usr/bin/python which is not available in
Ubuntu Jammy by default.

Change-Id: Ife34b32a5e557d2bf893ddc570b0962622129f93
2023-10-24 09:44:11 +09:00
Erik Olof Gunnar Andersson
bab61c182f Improve middleware coverage
Change-Id: I6864bffd495f200db1b9bffaf2dec53b933f4800
2023-10-23 16:01:27 -07:00
Erik Olof Gunnar Andersson
6baa33e355 Add manage tlds test coverage
Change-Id: I454ac268cacd63a7f06792c91e0b1a47e864cc03
2023-10-23 15:23:43 -07:00
Erik Olof Gunnar Andersson
a9f9ffccd7 Add recordset api test coverage
- Renamed test_recordsets -> test_zone_recordsets.

Change-Id: Ibe22c3df92c3f54d58ceee3a81b9e56048926111
2023-10-23 14:40:16 -07:00
Erik Olof Gunnar Andersson
dc70b92140 Remove legacy unused devstack code
Change-Id: I23e0a5e72229ac3352f1dc51927451b3a1a5bac5
2023-10-18 03:39:44 -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
bd726d75e8 Always run all tests when changing default config
Change-Id: I48f6516145a8c076e742f8e5d25eda429c728a01
2023-10-05 09:10:32 -07: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
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