Commit Graph

486 Commits

Author SHA1 Message Date
Jan Hartkopf 60a6ceed09 Add support for catalog zones
This implements the spec to introduce support for providing catalog zones.

Co-Authored-By: Nico Keller <nico.keller@inovex.de>
Change-Id: Ic9e593d661f2eb1db59a5b235521e0746489f9bb
Signed-off-by: Jan Hartkopf <jhartkopf@inovex.de>
2024-01-22 15:22:13 +01:00
Zuul 5f6d25c0b7 Merge "Add clean_zonefile to BIND9 pool.yaml doc" 2023-11-17 02:35:22 +00:00
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 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
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
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
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
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
Michael Johnson cf380f35d1 Add docs describing classless PTR delegation
We have had a few questions about classless IN-ADDR.ARPA delegation (RFC 2317) recently. This patch adds a section to the PTR user guide that describes how to setup classless PTR delegation using Designate.

Change-Id: I8e51ccdc0a4bc0d670ba6c7522a83980de7dac9d
2023-06-05 19:15:16 +00:00
Erik Olof Gunnar Andersson 0c30fc491b Restructured SQL code
We have a lot of abstraction that isn't really needed. This patch
removes some of that abstraction and reorganizes the code accordingly.

- Merged storage and sqlalchemy folders.
- Deprecated [central].storage_driver.
- Minor cleanup to SQL code.
- Cleaned up comments and unit tests.

Change-Id: I8f0508aedcc028b1a6e74c790c5d757a0d6c98d7
2023-05-11 21:28:36 -07:00
Zuul b66458b1c1 Merge "Do not use Docutil's set_class()" 2023-02-16 22:42:32 +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 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
Zuul ae3ed981ac Merge "Add a user guide for Neutron/Nova DNS integration" 2022-08-11 07:25:21 +00:00
Michael Johnson 2fc736c627 Add a user guide for Neutron/Nova DNS integration
This patch adds a user guide that describes how to use the Neutron/Nova integration with Designate. It provides examples for Nova instance, Neutron ports and floating IPs.

Previously this information was split across Nova, Neutron, and Designate documentation.

This patch also adds a "references" section to the documentation and adds a glossary document to help explain some of our terms.

Change-Id: I2bcf4b7052e12801b95dd3a541d1e8535c82c17c
2022-07-22 22:50:24 +00:00
ljhuang 0a3959d155 Replace deprecated readfp method with read_file
The readfp method has been deprecated since version 3.2 [1].

[1] https://docs.python.org/3/library/configparser.html?highlight=deprecated#configparser.ConfigParser.readfp

Change-Id: Ib4d13e850e47c80ca6ec601b9e195337d9a403e0
2022-07-22 17:21:43 +08:00
Zuul ad3bdad7b7 Merge "Remove logic for Python < 3.2" 2022-07-19 16:40:58 +00:00
Takashi Kajinami f616bd45a4 Remove logic for Python < 3.2
Change-Id: If9d4dc59d6663716ac0da61b2a6e3cde7f100e86
2022-07-17 00:21:27 +09:00
Zuul d05232fc07 Merge "Removed RPC calls from MDNS and moved them to the Worker" 2022-06-25 05:58:17 +00:00
Erik Olof Gunnar Andersson 8050680948 Removed RPC calls from MDNS and moved them to the Worker
This patch moved the remaining RPC calls away from the
MDNS service to the Worker and re-worked them to better
match the patterns used in the Worker. This means that
the MDNS service now only handles incoming DNS queries.

In addition the metrics backend has been removed as it was
only used by the MDNS RPC implementation and the monascastatsd
implementation no longer serves a purpose.

Closes-Bug: #1978742
Closes-Bug: #1978743
Change-Id: I5ef106717546a201fd62a51adacd43495c148cd4
2022-06-23 23:31:41 +00:00
Zuul 3e09823bdd Merge "Add zone ownership transfer user guide" 2022-06-14 22:18:58 +00:00
junbo e8fdabfc38 Update neutron integration link.
Change-Id: Ib49944c4463aeff4b9f904525b6527c6d6950366
2022-06-07 06:03:08 +08:00
Michael Johnson e9faf7da68 Add zone ownership transfer user guide
This patch adds a user guide for zone ownership transfers.
It also re-organizes the user guide landing page to be a bit easier to read.

Change-Id: I9b1c620b96a95cc8db4a634c26a2a48ca880f2b0
2022-06-02 23:28:03 +00:00
Michael Johnson 23c372d54d Remove deprecated docs section
The Designate user guide has had a "Deprecated REST API Documentation" since 2017 and the content is not really relevant anymore.

Change-Id: I7560ce184c41ce8f5d598f8cd912d864b23195fe
2022-05-26 21:12:32 +00:00
Juan Pablo Suazo c230ddb8c5 Adds api_ca_cert configuration variable to pools.yaml
Adds a configuration variable that allows a user to
declare the CA certificate to be used to verify
traffic with a PowerDNS API endpoint.

Closes-Bug: #1971856
Signed-off-by: Juan Pablo Suazo <jsuazo@whitestack.com>
Change-Id: I57f3d5a1d1f79186cc5b38e76d30f62e01b60482
2022-05-13 11:21:47 -04:00
Zuul 344c5a92f4 Merge "Add CLI examples to user section" 2022-02-23 19:44:54 +00:00
Zuul d2017f5399 Merge "Add RBAC policy admin guide." 2022-02-18 02:49:56 +00:00
minwooseo ba8968c0d7 Fix typo of intro document
change from adress to address

Change-Id: Ieea5d7013c1cf2122b6d8b7726df6afecb27529f
2022-02-04 12:55:07 +09:00
Nicolas Bock 7b28bbebc6 Add dig command to devstack instructions
After the recordset is created, they user should verify that it is
also known to the DNS backend. This change adds the necessary command
and the expected output.

Change-Id: I726ff14f267784070f7c09b5a0d564f593cfcc70
Signed-off-by: Nicolas Bock <nicolas.bock@canonical.com>
2021-12-24 04:36:08 +00:00
Michael Johnson fa607f8f47 Add RBAC policy admin guide.
This patch expands the RBAC policy guide to include information about
the new scoped tokens and default roles.

Change-Id: I12c1a9dacc8fef1ca991e14d143fa76b588eef07
2021-12-21 23:46:10 +00:00
Emanuel Andrecut 03a5d5d74e Allow TXT record over 255 characters if split
As defined in RFC1035 section 3.3.14 TXT-DATA
can be one or more <character-strings>s.
Before this commit Designate threw errors
when saving TXT records that are split
into multiple strings because validations on
the field did not consider allowing this
in a single DNS record as per RFC7208
section 3.3.

This patch allows longer TXT record data
but only if it is split according to RFC
definitions mentioned above. If data
is made of more <character-string>s,
each one is individually validated with
the same validations as if the data was
not split.

Closes-Bug: 1595265
Change-Id: I4e3e51b32ab01efc4202c297708eff5a2e2b4985
Signed-off-by: Emanuel Andrecut (emanuel.andrecut@fleio.com)
2021-10-21 19:47:44 +03:00
Gunju Kim 771197c2f3 Remove Akamai (eDNS SOAP API) backend
The Akamai eDNS SOAP API this backend uses no longer exists at Akamai.

Related-Bug: 1946340
Change-Id: I6545781f263c6a3d124364785aedcf2518116485
2021-10-12 16:32:49 +00:00
Michael Johnson 2f17dd20e2 Update Quotas documentation
This patch updates the quotas documentation to include all of the available
quota management actions available in the Designate API. It also adds
OpenStack Client command examples for each action.

Change-Id: I5eec83e8c8afb356062bd8c883285645233dd6a3
2021-10-05 18:10:19 +00:00
Zuul 3b20a12164 Merge "Zone import and export documentation" 2021-09-10 22:55:54 +00:00
Michael Chapman 9846fc5d15 Zone import and export documentation
Add some documentation on the usage and quirks of zone import
and export as they currently function.

Change-Id: Ia9514bf9e0eb9dd7a593773ebb6cbb5a975b4a05
2021-09-10 20:50:28 +00:00
Zuul 76bb79dd0d Merge "CERT DNS records" 2021-08-31 00:49:33 +00:00
Michael Johnson beb75cc529 Fix doc building for sphinx 4.x
Sphinx 4.x has renamed add_stylesheet to add_css_file and
add_javascript to add_js_file.
This patch updates the sphinx extensions in designate to use the
new methods.

Change-Id: I71baf9abb5566908da580d0c104831dea20c9d3c
2021-07-27 23:59:28 +00:00
kpdev e7b0246609 CERT DNS records
This patchset adds support for DNS CERT Resource Record which is
described in RFC 4398
(https://tools.ietf.org/html/rfc4398)

Closes-Bug: 1937113
Change-Id: I0cdfa1decd28096b7135b820b01ee7ec17b1a57d
2021-07-25 11:12:44 +02:00
Zuul 5d1127d3e0 Merge "Improvements to zone blacklist doc" 2021-06-29 23:50:01 +00:00
Michael Chapman 0dcc1e0921 Improvements to zone blacklist doc
Replaced http api calls with openstack client commands.
Note blacklist exception policy for admin users.
Changed voicing to be more passive
Blacklists only apply to zones, not records.

Change-Id: I7f3662c57ee9bccb42381134523e8fdd21e93740
2021-06-28 13:19:57 +10:00
Zuul 5a4f0982d6 Merge "Remove six" 2021-06-22 23:34:12 +00:00
Zuul d29e4a71fd Merge "TLD Doc update" 2021-06-22 07:46:14 +00:00
wangzihao 88a4be5e5c Remove six
Remove six Replace the following items with Python 3 style code.

- six.PY3
- six.moves.urllib
- six.PY2
- six.text_type
- six.string_types
- six.iterkeys
- six.moves.range
- six.add_metaclass
- six.moves.map
- six.moves.zip
- six.MAXSIZE

Change-Id: I4cd26693fac7c16f4fa3d3c0015cd7af796f0877
2021-06-22 06:41:24 +00:00
Michael Chapman 3df130af12 TLD Doc update
Add some more detail to the TLD admin doc. Replace API calls with
cli.

Change-Id: If9e7d1ac3a8d518ed445ad76ce5175f40408a02a
2021-06-17 11:43:32 +10:00
Zuul ddbbd430df Merge "Add user doc for managing recordsets" 2021-06-09 21:34:01 +00:00
Michael Chapman 999abb0d92 Add user doc for managing recordsets
Documentation targeted at member personas who wish to manage records.

Change-Id: I5400cfe61b2608aa4a1b383f140ef71c2dc342f7
2021-06-09 16:07:58 +10:00
Nicolas Bock 5c60084f13
Moving to OFTC
Change-Id: I12f03dfd22b4835cd86f2f3a03d1915fc33bf678
Signed-off-by: Nicolas Bock <nicolas.bock@canonical.com>
2021-05-27 06:21:33 -06:00
Michael Chapman 3bde7a843f Add user doc for managing zones
Add some basic documentation for users covering how to create zones.

Nameserver list is not in the client CLI, once that is
available an additional command can be added showing how to get
the backend nameserver to query when verifying results.

Change-Id: I914875cfd6273c01c74194c8a6296ae74537d169
2021-04-23 11:50:47 +10:00
Zuul 37b3fa2ea4 Merge "[goal] Deprecate the JSON formatted policy file" 2021-03-09 21:54:28 +00:00