This commit is a squash of 3 different commits required to fix
DragonFlow gate (See below).
Upgrade redis driver
Redis python package API was changed over time, while we did not
change our handling of the code.
In the gate the driver was updated, and the gate tests were broken.
Updated the code in a way that supports both python2 (soon to be
obsoleted) and python3.
Updated the requirements to install new versions of the packages.
Remove testing revision number in test_df_qos_driver
This code tests Neutron behaviour of increasing the revision number.
This is not code that is controlled by Dragonflow. If (when) it fails,
Dragonflow cannot fix it generically.
use payloads for ROUTER_GATEWAY events
This patch switches the code over to the payload style of callbacks [1]
for ROUTER_GATEWAY events for those that are not using them yet.
The unit tests are also updated where needed to account for the
payload style callbacks and publish() method. Finally the patch
normalizes the passing of gateway IPs which are currently referred to
as 'gw_ips' and 'gateway_ips' depending on the event; now all events use
'gateway_ips'.
Depends-On: https://review.opendev.org/#/c/638274/
[1] https://docs.openstack.org/neutron-lib/latest/contributor/callbacks.html
Co-Authored-By: Omer Anson <omer.anson@toganetworks.com>
Co-Authored-By: boden <bodenvmw@gmail.com>
Change-Id: I5cd456028ed8af86c6c512e514eb91cec56ea77c
This patch adds doc8 check for .rst files to pep8.
Files that fail doc8 check are also fixed.
Ignore D001 of doc8 check. This requires lot of changes and
should be done in a separated patch.
Change-Id: Ie2d258e9268fe20ae7988a3b4af92a8a6973b9c6
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: I06a45ffdb95e4c79edeca179254f25252d9fef6e
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.
Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.
Add openstack-tox-lower-constraints job to the zuul configuration.
See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.
Change-Id: I7471f66742e4c843321d771408d0da67d9800da1
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This one can be used to create rst documentation
A simple viewer can be used at: http://rst.ninjs.org/?theme=nature
Change-Id: Ieb056b867f7b2a38cbb858683a150b21a0655c97
Partial-Bug: #1734146
As part of the docs migration work[0] for Pike we need to switch to use
the openstackdocstheme.
[0]https://review.openstack.org/#/c/472275/
Change-Id: I4f7bc944d2c5a0deb08109ebe20600247314e25d
As part of the docs migration work[0] for Pike we need to switch to use the
openstackdocstheme.
[0] https://review.openstack.org/#/c/472275/
Change-Id: Id69833c6db4886fb974dc7fa6d49732bc57504f1
This makes tox use the latest version of the tool from os-testr repo,
which contains some valuable changes, like the one making the gate fail
if for some reason no tests are executed because all of them are
skipped.
Change-Id: If88be4b310d746ccc885e3d0c1db8a4dfabb2a28
H904: Delay string interpolations at logging calls, which is the
former N342, prevents format string when add log. Enabling it can
uniform the way we do log.
Change-Id: I4d16a7db530d9fa5a641140e03680307f878f0bb
Partial-Bug: #1663864
1. Dragonflow's requirement.txt should not contain redis, just
like Nova's requirement.txt doesn't contain libvirt. Because
they are not required.
2. According to redis-py doc, redis-py use HiredisParser by
default, which is much faster.
https://github.com/andymccurdy/redis-py/#parsers
3. About global requirement pls refer to
https://review.openstack.org/#/c/337683/4
Change-Id: Id973e7af41764e68d13d2374c95ccf4fad72ec50
neutron has update test-requirement for hacking, dragonflow need
to stay in stop with neutron to make pep8 happy
Change-Id: I0c57dbb937cf24d39b0b289e77a0f24dde4db97f
Closes-Bug:1588607
python-pytun was installed via tox_install.sh. It is better to install
it via test-requirements.txt and the tox I/S rather than manually.
Change-Id: I9c57334da120ec4291888e5a8a4369fe11f82853