The current rootwrap.conf file is outdated and doesn't include some
parameters. This change updates the content to make it consistent with
the latest example file in oslo.rootwrap.
Change-Id: I5fe06cf99bb9787ec3afc67ab60a7330fe281513
We are currently override __repr__ in our base VersionedObject
and removing some useful information when debugging.
- Re-wrote __str__ to not raise an exception if data is missing.
- Removed some unused _to_string functions.
- Changed _from_string to from_string.
Change-Id: Idfd6c959cf943c5aaf95746f16070000bf82ca21
This patch removes the 'netaddr' module from the Designate requirements list.
It replaces the use of netaddr in Designate with the python standard library 'ipaddress' module.
Change-Id: I2fb1549e1d6cbccf58c03810c7d74c8c378682d5
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
This patch updates Designate to use the new method of getting the table names from a sqlalchemy engine. It replaces the use of tables_names() with get_table_names from the sqlalchemy inspector.
The DeprecationWarning was:
SADeprecationWarning: The Engine.table_names() method is deprecated and will be removed in a future release. Please refer to Inspector.get_table_names(). (deprecated since: 1.4)
self.assertEqual(table_names, self.storage.engine.table_names())
Change-Id: I99d01a552d24123681e11f746c2e1195634efbfd
This patch updates Designate for the new funtion signature on pecan
lookup_controller to include the request information if available.
This corrects the following warning we were seeing in Designate:
DeprecationWarning: The function signature for pecan.routing.lookup_controller is changing in the next version of pecan.
Please update to: `lookup_controller(self, obj, remainder, request)`.
Change-Id: Icb206e59c83eec984599d48b3d4719c36eb83734
This patch adds the "cache_ok = True" to the custom sqlalchemy UUID type in designate.
It resolves the warning:
designate/sqlalchemy/base.py:243: SAWarning: TypeDecorator UUID() will not produce a cache key because the ``cache_ok`` attribute is not set to True. This can have significant performance implications including some performance degradations in comparison to prior SQLAlchemy versions. Set this attribute to True if this type object's state is safe to use in a cache key, or False to disable this warning. (Background on this error at: https://sqlalche.me/e/14/cprf)
Change-Id: Ic3aca3836b331db495109f6b6672e5c8af1d4028
We are currently raising the wrong exceptions for a few record
types. This can cause only part of the failures to get raised
to the user, since the first exception will fail the process.
Ideally we want to inform the user of all invalid records.
This patch fixes this and cleans up some of code as well.
- Cleaned up objects to use consistent exceptions.
- Fixed all broken tests.
- Re-named various objects tests.
Change-Id: I3d54a47f73929377122249c4d971e70e553725a6
Currently, designate does not validate that if a TXT recordset starts
with a double quote, it also ends with a double quote. So, if user has
provided TXT record in this unmatched doublequote format, zone ends up
in error.
This change verifies that if a TXT record starts with a double quote,
it also ends with a double quote.
Closes-Bug: 1980757
Change-Id: I75bd7c1657a9178c8e7ef2d66fa7318255c67582
- Added additional dns tests.
- Split unit and functional tests into separate files.
- Cleaned up duplicate dns message functions.
- Updated dns function comments and naming.
Change-Id: I913dab094d5c86736a030848ce1bba29736ff835
According to IETF https://tools.ietf.org/html/rfc2181#section-8 the
definition of the ttl value is unsigned and can have a minimum
value of 0. This path changes the minimum value of 1 to allow for
0 in recordset creats and updates. Unit test have also been modified
accordingly.
Closes-Bug: #1926429
Change-Id: I9b08e25a007bea598442da377dc227538f6e35f7
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
This patch sets a zuul variable "nslookup_target" to 'opendev.org' to fix the FIPS jobs due to a new zuul-job change[1].
[1] https://review.opendev.org/c/zuul/zuul-jobs/+/844704
Change-Id: Ic6b3a3c6d2f5b648f00813191c30d03132e31503
Oslo context has made some changes we rely on for changing "tenant" to "project_id". Bump the minimum version of oslo.context required.
Change-Id: I0afa1f94edbb493041ec7cd49c5d235cc2ea71d2
Designate was using a private module in jsonschema that has been removed in the jsonschema versions greater than 4.0.0.
This patch removes this use from Designate to allow support for jsonschema newer than 4.0.0.
Change-Id: I66847e801b65911870d51314c985baa0d3c09ef9
Due to parallel development paths, the release note added for the fixes to
the secure-RBAC patches implied it was adding a new feature when in fact the
feature already existed.
Change-Id: Ia9a904403a2336cc9cd4645d918fc0ff64d5e871