hacking 3.0.x is too old. This also removes the note about old behavior
of pip which has been changed in recent versions.
Notes:
- A few errors newly detected are also fixed.
- This also fixes the compatibility with flake8 >= 3.0 because flake8
is also bumped when we bump hacking.
- pretty_flake8 tool is removed because it's not commonly used but
needs maintenance effort to keep it in sync with newer releases
Change-Id: I8e91b06199bfbed1d6e9f8d62ddf52fafd60b7f9
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
This patch adds a hacking check for line continuation backslashes and fixes the occurences that existed in the code.
Change-Id: I1d1269de231f6e747248a9d816a1d64e3968c69b
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
Since setuptools v54.1.0[1], the parmeters with dash have been
deprecated in favor of the new parameters with underscore.
This change updates the parameters accordingly to avoid the warnings
like the example below.
UserWarning: Usage of dash-separated 'description-file' will not be
supported in future versions. Please use the underscore name
'description_file' instead
[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb
Change-Id: I0c8e6a3a474a5cfa029b741b1a26b7d48d244206
To better align with other OpenStack projects and to reduce the
ongoing problem with duplicate imports, this patch re-enables the
H306 check for proper module import order.
Change-Id: Iced92590829f6d9177d64ad4868aebe6eafd6a8a
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
This change adds instructions on how to test a Gerrit change or a
particular branch.
Change-Id: Iae8e7b3803c6e7d7d6f95a1c7a2b02f79373f06e
Signed-off-by: Nicolas Bock <nicolas.bock@canonical.com>
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Update local hacking checks for new flake8.
# to unbreak gate:
Depends-on: https://review.opendev.org/715835
Change-Id: Icc2f4368cc90689d74510ce36fe77d2346aec625
Reduced the number of calls we need to make when creating records using
the sink by better using the create/update recordset api.
This also fixes a bug where the sink could trigger a race condition in
the worker causing it to throw a BadAction exception.
Partial-Bug: #1768618
Change-Id: Iaf21ec59755375d3c3bc043b16a1b14aa991475e
* Move to bionic
* Add openSUSE Leap 15
* * Update Bind devstack backend plugin to work on Leap
* Remove port mapping
* Rmove the .gitconfig copy into the VM
Change-Id: I99d228f850e03045febf196f12eef5927f7605b9
Signed-off-by: Graham Hayes <gr@ham.ie>
- Move default python to py3 for devstack jobs
- Remove old (and non working) experimental jobs
- Move legacy devstack jobs to devstack-tempest based jobs
- Update vagrant plugins nodeset
Change-Id: Ida65852dec370a53641cb6428d50b0a2ac81f387
Signed-off-by: Graham Hayes <gr@ham.ie>
This patchset adds support for DNS CAA (Certification Authority
Authorization) Resource Record which is described in RFC 6844
(https://tools.ietf.org/html/rfc6844)
Change-Id: If9619096f1706d1123895b63b9129b9ffd4fb320
Closes-Bug: 1787552
This patchset adds support for DNS NAPTR (Naming Authority
Pointer) Resource Record which is described in RFC 2915
(https://tools.ietf.org/html/rfc2915)
Change-Id: Ic7d26a6c653ce46e67438e983476782edd6ec890
Closes-Bug: 1779850
Screen support has been completely removed from devstack[1]
[1] I8c27182f60b0f5310b3a8bf5feb02beb7ffbb26a
and cdba1b371628aa0e8bc5b687351c5ee9b39e9bc6
Change-Id: I363e140ab6ea9b7ac8f422146e70e203d6265e5b
Previously we only checked for the last label of a TLD
which does not work for `co.uk` or custom internal
TLDs that deployers may use
Change-Id: I9bc8d3ac8eb48078723a96d87e023d58b933b183
Config option 'verbose' wase deprecated on aug 1, 2015 in review:
https://review.openstack.org/#/c/206437/
Oslo team decide to remove this option, need cleanup the usage of
it in consuming project before removing it from oslo.log.
Change-Id: I713e9e5107a64ec29c220d1150c1bf5fcf6f1135
- Defines a plugin interface for what's actually emitted as part
of designate "notifications".
- The default plugin emits the same thing as notifications did prior
to this patch.
- The "audit" notification plugin emits recordset data changes and
zone/recordset names, if they exist, the notifications with this
plugin look like http://paste.openstack.org/show/545210/
- Adds support for multiple notifications for a single change
- Also adds client IP to the context object, as it's a field that
may be of interest to some types of notifications
- Many tests
Change-Id: I01118fae8ce6e38ccc61b0ce763fd759affd9a86
TrivialFix: Similar [1] in Kolla project
As we known, Exceptions are raised by the sys.exit() function. When they
are not handled, no stack traceback is printed in the Python interpreter.
Therefore, when using sys.exit(main()) instead of main()
may be more readable and reasonable.
[1] https://review.openstack.org/#/c/349353/
Change-Id: Ied52a7631da82a72f0dcf2fc9ed81840d24041d9
Replace dict.itervalues() with dict.values(). The Python 3 dict
type has no itervalues() method, the old itervalues() method was
renamed to values().
TrivialFix.
Change-Id: I5d96f26db2bb3490271962d9548672cfdd03357e
The Fedora box has not been available in some time, and most Designate
deployments running on RH based distros will be RHEL/CentOS.
Change-Id: I05e34c908ac1d5a7a2037d43f47987cad6c25531