summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fixed incorrect quota exception messageErik Olof Gunnar Andersson2022-05-312-2/+2
| | | | | Change-Id: I38efa22bb8b0de6fd9a70339e8044fea70080004 (cherry picked from commit 291558c380232b726be0253fdee1f88902522beb)
* Update zuul queue configurationMichael Johnson2022-05-271-4/+2
| | | | | | | | | Zuul is changing how queues are declared[1]. This patch updates Designate for the new way to define the queue. [1] https://lists.zuul-ci.org/pipermail/zuul-discuss/2022-May/001801.html Change-Id: I94324104a7ed89e757d48bb250d8b1132026ce46 (cherry picked from commit fe9fb45c21a7be2f88600e1f29fd37f56244cc1a)
* Improve quota API validationsMichael Johnson2022-05-245-31/+180
| | | | | | | | This patch improves the quotas API validations and test coverage. Invalid quota settings will now be caught at the API/Central layer and not down in the storage layer(DB). Closes-Bug: #1934596 Change-Id: I474bdd988a6cc3a9bcce1b65c2f49216dd85addf (cherry picked from commit 38178c079a1a66229f06becbd7b60a749879c4a6)
* Merge "Fix set-quotas for non-project scoped tokens" into stable/xenaZuul2022-05-182-0/+16
|\
| * Fix set-quotas for non-project scoped tokensMichael Johnson2022-04-012-0/+16
| | | | | | | | | | | | | | | | | | | | Previously, if set-quotas was called with a non-project scoped token and the all-projects flag was not set, the quotas would be updated but the result returned would always be the default quota values. This patch changes the API to require the all-projects flag when set-quota is called and the token is not project scoped. Closes-Bug: #1966128 Change-Id: I55ca76ef7c2cbeb5fdae1aed1dcbe58b7acddc34 (cherry picked from commit 158e017be489eea5402ef258ea260183067bf1ca)
* | Fix tox docs env to have the correct dependenciesMichael Johnson2022-04-061-0/+1
|/ | | | | | | | | | | Pip is pulling in unstrained dependencies during the "sibblings" package install step. Normally this is fine as the dependencies have already been installed and it's just installing the package under test. However, with designate there are a lot of overlapping dependencies and pip will end up reinstalling an unconstrained version. In this case it was Jinja2. Change-Id: Ie49f99ba8e86913471ee6cd078f5afd28282c0f5 (cherry picked from commit 5b40d3d908ca674a8bc112397f008ebce0e0661c)
* Merge "Add fips jobs" into stable/xenaZuul2022-02-182-0/+13
|\
| * Add fips jobsAde Lee2022-02-042-0/+13
| | | | | | | | | | | | | | | | Added job to test whether things work when fips is enabled. The job appears to be passing successfully. Change-Id: I43dcc43309b7da8ca077fce2d1950940971a3dbe (cherry picked from commit 604fd8cf7468a54125486e45959f717cf182ece8)
* | Fix recordset_records quota enforcementzhouhenglc2022-02-126-15/+122
|/ | | | | | | | | | | | | | First I set recordset_records=3, and I can create recordset with 4 records successfully. Now enforce record quota by count records in database. when create recordset the number in database is 0., and quotas will not work no matter how much quota recordset_records are set. And once the excess quota is created successfully, it can not be updated. Unless quotas are updated. Closes-Bug: #1847200 Change-Id: If8bc6043d95f52f67899a5ac69a2f72c8fd4de17 (cherry picked from commit df10ff5b5c76657e4287b36fbf525ad91091dd34)
* Remove lower-constraint job from stable/xenaMichael Johnson2022-01-191-1/+0
| | | | | | | | | | | | | | | | | | | This patch removes the lower-constraint job from the stable/xena branch. This is part of a series of patches that will remove the job from all stable branches of Designate. The lower constraint check is important on the master branch to make sure that new patches are tested against the lowest supported version of dependencies. This helps packagers make sure they have at least the minimum version of a dependency packaged along with the service. After a release and the stable branch is created, these jobs can cause problems maintaining the stable branches as bug fix patches are released for the dependency projects. For this reason, we are proposing to maintain the lower-constraints job on the master branch, but disable it on the stable branches. Change-Id: Ib8d9a9828debe4e1750a028a7cd7637293c9dc20
* Merge "Allow TXT record over 255 characters if split" into stable/xenaZuul2021-12-034-3/+72
|\
| * Allow TXT record over 255 characters if splitEmanuel Andrecut2021-11-234-3/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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) (cherry picked from commit 03a5d5d74eb5de3f37b2e7ac5f28ae139ae436a5)
* | Fix race condition in the sink when deleting recordsErik Olof Gunnar Andersson2021-11-114-51/+336
|/ | | | | | | | | | | | | Updated the sink to behave closer to how we handle this type of operations in designate.api.v2. - Added object validation to all requests. - Better test coverage. - Use recordset update / delete instead of just record delete. Closes-Bug: #1947765 Change-Id: I867600eb48a3e30a4d17471ab794ca717706823d (cherry picked from commit 4807c23228fbb23af3087ee072bf73d7fc43aff5)
* Update TOX_CONSTRAINTS_FILE for stable/xenaOpenStack Release Bot2021-09-171-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/xena branch, tests will continue to use the upper-constraints list on master. Change-Id: I21c370034767276584ef334386e5a203be94f8aa
* Update .gitreview for stable/xenaOpenStack Release Bot2021-09-171-0/+1
| | | | Change-Id: Ib704ae9143484d198df64bd7b4398f3fd4cf193b
* Merge "Zone import and export documentation"13.0.0.0rc113.0.0Zuul2021-09-102-0/+295
|\
| * Zone import and export documentationMichael Chapman2021-09-102-0/+295
| | | | | | | | | | | | | | Add some documentation on the usage and quirks of zone import and export as they currently function. Change-Id: Ia9514bf9e0eb9dd7a593773ebb6cbb5a975b4a05
* | Imported Translations from ZanataOpenStack Proposal Bot2021-09-072-4/+106
| | | | | | | | | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: I54f6b49554833a2c7feef1865c2cdadcc0b3b014
* | Merge "CERT DNS records"Zuul2021-08-3111-3/+261
|\ \
| * | CERT DNS recordskpdev2021-07-2511-3/+261
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Add missing [oslo_reports] optionsTakashi Kajinami2021-08-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | The oslo.reports library provides some options under the [oslo_reports] section. This change ensures these parameters are rendered by the oslo-config-generator command. Closes-Bug: #1940733 Change-Id: Ia5491fc97e431e5fce52091729738e6958f764e2
* | | Fix grenade upgrade API check URL pathMichael Johnson2021-07-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the grenade API started check during the upgrade was checking if the root of the web server was functioning. In this job that is testing the horizon endpoint and not the designate API. This patch fixes this to have the check run against the designate endpoint under apache. This prevents false failures when horizon has an issue. Change-Id: Idbfec1adca2024cd5f352017a7c9319dcec65d42
* | | Fix doc building for sphinx 4.xMichael Johnson2021-07-272-3/+3
|/ / | | | | | | | | | | | | | | | | 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
* | Merge "Replace md5 for fips"Zuul2021-07-123-7/+7
|\ \
| * | Replace md5 for fipsAde Lee2021-06-283-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | md5 is not an approved algorithm in FIPS mode, and trying to instantiate a hashlib.md5() will fail when the system is running in FIPS mode. md5 is allowed when in a non-security context. There is a plan to add a keyword parameter (usedforsecurity) to hashlib.md5() to annotate whether or not the instance is being used in a security context. In the case where it is not, the instantiation of md5 will be allowed. See https://bugs.python.org/issue9216 for more details. Some downstream python versions already support this parameter. To support these versions, a new encapsulation of md5() has been added to oslo_utils. See https://review.opendev.org/#/c/750031/ In this case, md5 is used to calculate the hash of a database record to ensure record uniqueness. Change-Id: Ic2571caa71dc99c417ea0933d5d4947287cbe312
* | | Fix oslo policy DeprecatedRule warningsGhanshyam Mann2021-07-0416-301/+307
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since 3.7.0, oslo policy started the DeprecationWarning[1] if deprecated_reason and deprecated_since param are not passed in DeprecatedRule or they are passed in RuleDefault object. These warnings are logged for every test which increase the log size and sometime can full the log buffer and fail the job. [1] https://github.com/openstack/oslo.policy/blob/3.7.0/oslo_policy/policy.py#L1538 Change-Id: I7034a70950b787f1cdbc510e88ab777957339ba7
* | | Merge "Improvements to zone blacklist doc"Zuul2021-06-291-54/+94
|\ \ \
| * | | Improvements to zone blacklist docMichael Chapman2021-06-281-54/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Cleanup schedulerErik Olof Gunnar Andersson2021-06-266-54/+53
| |/ / |/| | | | | | | | | | | | | | | | | | | | This patch is not changing any functionality, but instead it is aimed at cleaning up the scheduler code. It also removes the use of reserved keywords in the scheduler code. Change-Id: I93cede3371f1ec650adf3b00bf8250457a38f96c
* | | Merge "Remove six"Zuul2021-06-2244-153/+101
|\ \ \
| * | | Remove sixwangzihao2021-06-2244-153/+101
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "TLD Doc update"Zuul2021-06-221-81/+39
|\ \ \
| * | | TLD Doc updateMichael Chapman2021-06-171-81/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add some more detail to the TLD admin doc. Replace API calls with cli. Change-Id: If9e7d1ac3a8d518ed445ad76ce5175f40408a02a
* | | | Merge "replace whitelist_externals by allowlist_externals"Zuul2021-06-221-3/+3
|\ \ \ \
| * | | | replace whitelist_externals by allowlist_externalswangzihao2021-06-221-3/+3
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | replace tox's whitelist_externals by allowlist_externals option: https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23 Depends-on: https://review.opendev.org/c/openstack/designate/+/796597 Change-Id: Id28a67abc74c3e14d4cba8d3278c89a1fe029252
* | | | Support filtering on zone import/export listMichael Chapman2021-06-191-6/+14
|/ / / | | | | | | | | | | | | | | | | | | | | | List operations should add the task_type criterion to the user provided criterion. Change-Id: I983d930f975c109cce24a9587bba6db563b3f19f Launchpad: 1926058
* | | Merge "Add simple scheduler permutation tests"Zuul2021-06-171-0/+251
|\ \ \
| * | | Add simple scheduler permutation testsErik Olof Gunnar Andersson2021-06-171-0/+251
| | | | | | | | | | | | | | | | Change-Id: Ib55d16b2f05269ae58bbcf38e816fb776dbe4f3c
* | | | Merge "Changed minversion in tox to 3.18.0"Zuul2021-06-171-1/+1
|\ \ \ \
| * | | | Changed minversion in tox to 3.18.0wangzihao2021-06-161-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | The patch bumps min version of tox to 3.18.0 in order to replace tox's whitelist_externals by allowlist_externals option: https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23 Change-Id: I2ce7d33d8b8af214145a53165214c9c018d27e20
* | | | Merge "Fixed a potential circular dependency"Zuul2021-06-169-14/+8
|\ \ \ \ | |/ / / |/| | |
| * | | Fixed a potential circular dependencyErik Olof Gunnar Andersson2021-06-019-14/+8
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | When running individual unit tests there was a possibility of triggering a circular dependency. This patch fixes this by moving DEFAULT MDNS and AGENT ports into the configuration. Change-Id: I5f7c1ef14daf0a01e4d37cc5416d08cc75f2b485
* | | Re-enable the tempest scenario jobsMichael Johnson2021-06-141-1/+1
| | | | | | | | | | | | | | | | | | | | | This patch re-enables the tempest scenario jobs after the gate fix patch has merged. Change-Id: I4f97559cbbd5bc360850571b94f58aa296467ae8
* | | Fix migration for sqlalchemy 1.4Michael Johnson2021-06-142-19/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes a database migration for sqlalchemy 1.4. It also removes some unused functions from that migration. Note: This patch temporarily disables the scenario jobs to allow this gate fix to merge while the tempest test issue is being resolved. A direct follow up patch will re-enable the tests. Change-Id: I4fee32f9be080eea6eef38fcecbdb2dd3940b9e6
* | | Merge "Add user doc for managing recordsets"Zuul2021-06-092-0/+215
|\ \ \ | |/ / |/| |
| * | Add user doc for managing recordsetsMichael Chapman2021-06-092-0/+215
| | | | | | | | | | | | | | | | | | Documentation targeted at member personas who wish to manage records. Change-Id: I5400cfe61b2608aa4a1b383f140ef71c2dc342f7
* | | Moving to OFTCNicolas Bock2021-05-272-2/+2
| |/ |/| | | | | | | Change-Id: I12f03dfd22b4835cd86f2f3a03d1915fc33bf678 Signed-off-by: Nicolas Bock <nicolas.bock@canonical.com>
* | setup.cfg: Replace dashes with underscoresYandong Xuan2021-05-011-4/+4
|/ | | | | | | | | | Resolves warnings like the following: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead Change-Id: I6c161fc4bbc1fafa576916bb9dc3a039c06f9ffa
* Add user doc for managing zonesMichael Chapman2021-04-232-0/+203
| | | | | | | | | | 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
* Imported Translations from ZanataOpenStack Proposal Bot2021-03-272-4/+61
| | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: Ia61939d31b0a07ad70c69535fedfbc3a42bc7fbd