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
According to Openstack summit session [1] stestr is
maintained project to which all Openstack projects
should migrate.
Let's switch it then.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: I847368004d14c2f213d36c602398abfdbfa381cd
Signed-off-by: Charles Short <zulcss@gmail.com>
This patch refactor NSD4 UT by mocking out instead of using eventlet
for fake NSD4 backend.
This patch also remove pinned eventlet version and use upper constraint
of eventlet for UT.
Closes-Bug: 1686601
Change-Id: Iabc7fe6a1f6932959f4531a333bcbd1ad6f06e4f
sqlalchemy 1.1 is more strict on enum values. Because of that, the fact
that the two RECORD_TYPES enums are out of sync makes things sad.
This patch also pin eventlet version to 0.19.0 since eventlet >=0.20.0 in
upper constraint still make UT fail.
Co-Authored-By: Hieu LE <hieulq@vn.fujitsu.com>
Change-Id: I4de68749e9eddbddbc7f8d8df68ce3ea71cc4fcb
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
Based on specs in https://review.openstack.org/#/c/246515
Add database column zones.pending_notify and migration script
Add Zone Manager Task to perform delayed NOTIFY
Add Admin API method to count zones pending notify
closes-bug: #1498462
partial-bug: #1436210
Change-Id: Ic5c2745bcd2cc057a42cb8edf21ed4c1a3ddc952
Depends-On: If15594099eb7cf74f1c534a05884c2d2501e57e6
Cleans up tox output to be more human friendly, this however does not
resolve the logs/stacktraces being shown three times.
Partial-Bug: 1413807
Change-Id: I8328b89e6a2d1c3f3dd8bd3218f450a4613ade59