summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Use ids when removing ptr records" into stable/zedstable/zedZuul2023-04-201-9/+17
|\
| * Use ids when removing ptr recordsErik Olof Gunnar Andersson2023-04-131-9/+17
| | | | | | | | | | | | | | | | If the record status changes during the removal process, the current implementation will fail. Change-Id: I02b5d7499440154160c89ed63a2f70652fe72145 (cherry picked from commit b3161ece234b5e2ee7658060aaa936af625bef38)
* | Use ids when removing sink managed recordsErik Olof Gunnar Andersson2023-04-133-12/+110
|/ | | | | | | | | If the record status changes during the removal process, the current implementation will fail. Closes-Bug: 2015762 Change-Id: Iebe609e5f365d03e99f2a4580671175b4642763c (cherry picked from commit 2cb42ac9f6e5273ad64e697919b62e029466078f)
* [coordination] backend_url should be secretTakashi Kajinami2023-03-211-0/+1
| | | | | | | | | | | | | | | 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 (cherry picked from commit 541395c42414c40d105ce206e2f200456bbc375f) (cherry picked from commit bda31ec62c3eaa7fcdd25d69f97742744debf915)
* Removed unsupported test B309 from banditErik Olof Gunnar Andersson2023-03-151-1/+1
| | | | | | | | B309 was removed with this patch and breaks the CI. https://github.com/PyCQA/bandit/commit/130a467434ff6b8f9bbd83100e409bc1fcb6f407 Change-Id: I15864a76c8913f151154e2398ae86aea71883498 (cherry picked from commit 758956d5b9321c72d63cbf3d8a1987d5dc6e6bb3)
* Fix dns.resolver import for mdnsErik Olof Gunnar Andersson2023-02-091-1/+3
| | | | | | | | | We are currently failing with module 'dns' has no attribute 'resolver'. Closes-Bug: #2006537 Change-Id: I31a1b1892a7112018b1261f956f51ed4eaa7cfb9 (cherry picked from commit 5cd63481c68ca5d2c8764a93dee5cbb8b45ecf63)
* CI: Move queue configuration into project-templateDr. Jens Harbott2022-10-231-1/+1
| | | | | | | | With this it can be reused by the other designate repos and we can reduce the replication everywhere. Change-Id: I1fe73145e4a4699939244bc857600efa264f2340 (cherry picked from commit c907cfa1e68249c21e8cad9f58ff3dc3d9cea6df)
* Fix minimum versions in requirements.txt15.0.0.0rc215.0.0Michael Johnson2022-09-211-1/+1
| | | | | | | | | It appears we need to bump some minimum versions for changes made in Zed. This patch sets: alembic>=1.8.0 Change-Id: I3e3e1a4701c52003e4adf2738b1ca8598d4cae47 (cherry picked from commit b3e3bbf9e2c53863932b65a119700e2e4394b533)
* Update TOX_CONSTRAINTS_FILE for stable/zedOpenStack Release Bot2022-09-161-4/+4
| | | | | | | | | | | | Update the URL to the upper-constraints file to point to the redirect rule on releases.openstack.org so that anyone working on this branch will switch to the correct upper-constraints list automatically when the requirements repository branches. Until the requirements repository has as stable/zed branch, tests will continue to use the upper-constraints list on master. Change-Id: I4b45036f3b736738f08cd6234fb6121fffc27e2e
* Update .gitreview for stable/zedOpenStack Release Bot2022-09-161-0/+1
| | | | Change-Id: Ic9b307b716be45102af7c1e9a239005e49e66f5a
* Fix Redis connection over TLS15.0.0.0rc1Michael Johnson2022-09-071-0/+7
| | | | | | | | | When Designate is configured to use Redis for coordination over a TLS connection, it will fail to connect with "ssl.SSLError: ('timed out',)". This is caused by eventlet raising ssl.SSLError instead of the expected socket timeout the core libraries return. This patch monkey-patches eventlet to return the proper exception. Closes-Bug: #1989020 Change-Id: I5bd1c10d863212683752e05bb450e6f531ff7e72
* Fix compatibility with oslo.db 12.1.0Stephen Finucane2022-09-051-0/+4
| | | | | | | | | | | | oslo.db 12.1.0 has changed the default value for the 'autocommit' parameter of 'LegacyEngineFacade' from 'True' to 'False'. This is a necessary step to ensure compatibility with SQLAlchemy 2.0. However, we are currently relying on the autocommit behavior and need changes to explicitly manage sessions. Until that happens, we need to override the default. Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Change-Id: I2e02b00309c8a0289954b7cd6838bd9320cec3e0
* Merge "Add backend validation and re-factored pool manage"Zuul2022-09-016-235/+687
|\
| * Add backend validation and re-factored pool manageErik Olof Gunnar Andersson2022-08-296-235/+687
| | | | | | | | | | | | | | | | | | - Added better test coverage. - Cleaned up error handling. Closes-Bug: #1987993 Change-Id: I4829c74706e125df5eae25336e13af780cfa304a
* | Merge "Add simple API versioning to the Designate API"Zuul2022-08-318-98/+201
|\ \
| * | Add simple API versioning to the Designate APIMichael Johnson2022-06-308-98/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds simple API versioning for Designate. Designate API minor releases are additive to the API major revision and share the same URL path. Subsequent minor versions are a superset of the previous versions of the same major revision. Updates the version discovery document to be compliant with OpenStack version discovery. Restructures the API reference to provide more information about the versioning. Depends-On: https://review.opendev.org/c/openstack/designate-tempest-plugin/+/848323 Change-Id: I13162711b521472ec8b796ced34d0b7107aaed36
* | | Merge "Switch Designate to Alembic database migrations"Zuul2022-08-3069-1838/+1777
|\ \ \
| * | | Switch Designate to Alembic database migrationsMichael Johnson2022-08-0469-1838/+1777
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently Designate is using sqlalchemy-migrate for database schema migrations. sqlalchemy-migrate/migrate have been deprecated for some time. This patch moves switches Designate to use Alembic for database migrations. Change-Id: I90ecb4d409b8b609b384997fa4cc9c65755409b3
* | | | Merge "Validate MX records during recordset create or update"Zuul2022-08-292-1/+15
|\ \ \ \ | |_|_|/ |/| | |
| * | | Validate MX records during recordset create or updatekpdev2022-08-152-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If invalid MX record is provided during recordset create command or valid record is updated to invalid record using recordset set command, causes recordset creation/updation failure. This leads to zone enter in ERROR state and all further recordset creation calls fail. Validate the records within recordset during create or update call. Closes-Bug: #1927304 Change-Id: I0ace4d6c4ad6a6ee236e3af23805b01345d60a42
* | | | Merge "Imported Translations from Zanata"Zuul2022-08-231-4/+4
|\ \ \ \
| * | | | Imported Translations from ZanataOpenStack Proposal Bot2022-08-231-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: Ib83f5e1cde009b740ccf01a027bd96bed17c0e97
* | | | | Merge "Clean up manage pools and add additional testing"Zuul2022-08-234-58/+128
|\ \ \ \ \
| * | | | | Clean up manage pools and add additional testingErik Olof Gunnar Andersson2022-08-224-58/+128
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I6bfe074ec9db9bd95021771b8ffe988f1f23e2be
* | | | | | Merge "Add additional backend tests"Zuul2022-08-231-0/+38
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | Add additional backend testsErik Olof Gunnar Andersson2022-08-151-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I5dca5495e1d4510682b6244d2e7ca707308927d8
* | | | | | Imported Translations from ZanataOpenStack Proposal Bot2022-08-223-17/+35
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: I048f35e7813eb4e2f2b6e4f5259dd4fb2eb3198e
* | | | | Fix designate-manage pool update MissingProjectIDMichael Johnson2022-08-162-2/+6
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Add basic get backend test"Zuul2022-08-164-30/+60
|\ \ \ \
| * | | | Add basic get backend testErik Olof Gunnar Andersson2022-08-134-30/+60
| |/ / / | | | | | | | | | | | | | | | | | | | | - Removed unused start/stop functions Change-Id: I38ebf73859498acb0c86a4e1f48e92ce371389b8
* | | | Merge "Add basic test for disabling the api"Zuul2022-08-163-4/+29
|\ \ \ \
| * | | | Add basic test for disabling the apiErik Olof Gunnar Andersson2022-08-133-4/+29
| |/ / / | | | | | | | | | | | | Change-Id: I0f6d3440e5b352770fe7da1808038c9b60ce8e23
* | | | Merge "Add basic quotas api tests"Zuul2022-08-154-24/+183
|\ \ \ \ | |/ / / |/| | |
| * | | Add basic quotas api testsErik Olof Gunnar Andersson2022-08-134-24/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Changed tenant_id to project_id. - Fixed some minor style issues with api tests. Change-Id: Ia53c39cd78e42b82b380f8c957747d14078dff25
* | | | Merge "Simplified backend unit tests"Zuul2022-08-1310-41/+181
|\ \ \ \ | |/ / / |/| | |
| * | | Simplified backend unit testsErik Olof Gunnar Andersson2022-08-1010-41/+181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These tests have no dependencies on the Designate Test class and by moving to the oslo test base class instead we reduce the runtime of these tests from ~5s to ~150ms. - Added some basic tests for the fake backend (aka noop) - Switched from designate.tests.TestCase to oslotest.base.BaseTestCase Change-Id: I5d78939eb43476e6c93235e131086bc8537b0e03
* | | | Merge "Add a user guide for Neutron/Nova DNS integration"Zuul2022-08-115-1/+366
|\ \ \ \
| * | | | Add a user guide for Neutron/Nova DNS integrationMichael Johnson2022-07-225-1/+366
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Sync rootwrap.conf from oslo.rootwrapTakashi Kajinami2022-08-112-1/+7
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Fixed issues with __repr__ and __str__ on objects"Zuul2022-08-1026-112/+127
|\ \ \ \
| * | | | Fixed issues with __repr__ and __str__ on objectsErik Olof Gunnar Andersson2022-08-0726-112/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge "Remove netaddr module requirement"Zuul2022-08-085-10/+14
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Remove netaddr module requirementMichael Johnson2022-08-025-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Added additional test coverage for adaptersErik Olof Gunnar Andersson2022-08-062-24/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Removed uncessary log line in base adapter. Change-Id: I6e1a74fa3ecca0f82735ba36ac4336ab6cdeb56e
* | | | | Merge "Re-factored central and rpc decorators"Zuul2022-08-0412-308/+419
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Re-factored central and rpc decoratorsErik Olof Gunnar Andersson2022-07-3012-308/+419
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | - Moved central and rpc decorators to common location. - Cleaned up decorator code. Change-Id: I79d21df7d17a2f706b8747e600e79a1ef1762e2b
* | | | Imported Translations from ZanataOpenStack Proposal Bot2022-07-281-13/+38
|/ / / | | | | | | | | | | | | | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: Id366a2d2b40367ada2aa5b1e3cc9ef615967216e
* | | Merge "Replace deprecated readfp method with read_file"Zuul2022-07-251-1/+1
|\ \ \
| * | | Replace deprecated readfp method with read_fileljhuang2022-07-221-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Fix sqlalchemy table_names DeprecationWarning"Zuul2022-07-232-2/+6
|\ \ \