The latest pip resolver started to check requirements strictly
and it detects many inconsistencies in neutron-vpnaas requirements.
Also applies the practices discussed in the mailing list [1][2].
* Drop pyflakes from requirements.txt as it is not used.
* Move document dependencies to doc/requirements.txt [1]
and drop them from lower-constriants.txt.
* Bump MarkupSafe lower-constraint to 1.1.1
to make it work with newer setuptools.
* Bump the minimum neutron requirement to 17.0.0 (victoria release)
as the previous min version 13.0.0.0b2 is too old.
Wallaby and Victoria neutron are not different much, so I think
it is no problem to use the latest released version here.
* Dependenicy related to neutron min version bump are updated
in requirements and lower-constraints.
Note that eventlet 0.22.0 is used as lower-constraints as 0.21.0
(the min requirement in neutron 17.0.0) is blocked in several libs.
* Move linter dependencies to tox.ini and drop them from
lower-constraints.txt (pylint, pyflakes, astroid, isort)
* Drop psutil from neutron_vpnaas/tests/functional/requirements.txt
as the specified version of psutil is too old and psutil is a dependency
of neutron so we don't need to install it explicitly here.
In addition, hacking version is updated as hacking 0.12.0 is not compatible
with python 3.8. W504 and I202 are ignored as we do in the neutron repo.
Other new flake8 violations are fixed.
[1] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019362.html
Change-Id: I47f6d39379b68c4d71fc4d85ebb06d97cb5a6ce2
1. In reviews we usually check import grouping but it is boring.
By using flake8-import-order plugin, we can avoid this.
It enforces loose checking so it sounds good to use it.
This flake8 plugin is already used in tempest.
Note that flake8-import-order version is pinned to avoid unexpected
breakage of pep8 job.
Setup for unit tests of hacking rules is tweaked to disable
flake8-import-order checks. This extension assumes an actual file
exists and causes hacking rule unit tests.
2. This patch is also intend to clean up exceptions to avoid
confusing for other developers and the maintenance-ability as well.
Change-Id: I032892f08e073feb5b822d27d092f041b17d57e1
(a) Refactored the code to work with the following cases
1. Single node with DVR
2. Single node without DVR
3. Multinode with DVR
4. Multinode without DVR
|-------------|-------------------------------------------------------|
| | Single Node/ Multinode Tests |
| Scenarios |-------------------------------------------------------|
| | DVR | DVR+Concurrency | Non DVR | Non DVR+Concurrency |
|-------------|-----|-----------------|---------|---------------------|
| Vpn Basic | x | x | x | x |
| Multi Tenant| x | x | x | x |
| Vpn Status | x | x | x | x |
|-------------|-----|-----------------|---------|---------------------|
(b) Used the paramiko package to execute commands over ssh.
(c) Moved the README to devref
Depends-On: Id3f199d688d648f4618a6850d094e26ca6bb9a7f
Change-Id: I24d5a8435f06014fa9164bef518cac62bbb70ef9
Currently, in some file we import logging module from oslo, but we had't
use it by far.
This patch remove them, and we can add it as we needs in future.
Change-Id: I8a803105c3ed26cf4e5e96d26ede24fd5eaaef9f
This test tests the vpn connection under two different tenants
and validate the vpn and ipsec-site-connection status
Change-Id: I15b1c15db1229c8835c46d211002fd2acfc2b9da
1. Validate the VPN-service and ipsec-site connection status
when updating the router status to DOWN and back to ACTIVE state
2. Added methods in vpn_base to support this scenario test
3. Modified test_vpn_connectivity test because of [2]
4. Updated rally_config file to include this scenario test
Change-Id: I72b53b2e01779d57e9ccac0e9c7155d9a8e4e877
This patch aims at creating Rally scale tests for VPNaaS.
It tests the full stack creation of VPNaaS -creating actual
networks/routers etc.,
(a)vpn_utils.py contains a set of standalone utility methods to
create/delete networks, nova instances etc.,
(b)vpn_base.py holds the vpn specific functions to create, delete
and verify vpn connectivity.
(c)test_vpn_connectivity.py holds the actual scenario.
(d)rally_config.yaml file is the input configuration file
To test this patch:
(1) Install devstack with rally plugin.
(2) Create the following folder structure.
sudo mkdir /opt/rally
(3) Create a symlink to the plugins directory.
cd /opt/rally
sudo ln -s /opt/stack/neutron-vpnaas/rally-jobs/plugins
(4) Run the test
rally task start <path-to-input-file>
To see the debug logs,
rally -vd taks start <path-to-input-file>
Note:
This patch also includes the commit ID cb5e1708 of vpn_utils.py
Change-Id: I28915baf8c4ff07b61e70a33ba63693d65fce80a
Introducing VPNaaS scenario tests using Rally. This patch contains
rally-jobs/plugins/vpn_utils.py file that holds a few utility
functions that will be used by the actual test files.
Change-Id: I01aa18be580211f1013a2203d69dc8bd2200c514