Move them to their respective test_*.py files.
Created base.py to hold the parent class common to all
sub-tests.
Change-Id: I4f8466ceb36356e0d80cdcfe1e6e2c5884c1f567
Octavia has a pretty extensive definition of constants,
start using them where possible. Had to tweak a lot of
lines due to wrapping, but functionally nothing should
have changed.
Removed some extra parens where found and other misc
cleanups.
Also bumped neutron-lib to >= 2.1.0 since that is py3-only.
Change-Id: If400730cb759130192966bacf3c6edb9faa18899
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.
This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.
Change-Id: I4b2fe2b193afde8c2eaf4e704ba21231fab93361
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.
Change-Id: I57f5d0faf886bc0d2ca50f848cb666c6f47fe947
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
The OVN Octavia provider driver in the OvnProviderHelper
class caches these attributes:
ovn_nbdb_api_for_events
ovn_nb_idl_for_events
ovn_nbdb_api
to not re-create things each time OVN IDL that is used for
handling events is called.
We should be using the Octavia Driver Provider Agent framework
instead to not have those long-running IDLs in the API process.
This change:
- Creates driver provider agent and registers its entry point
- While setting up the driver agent instance, start IDL that
will handle events
- Stop caching ovn_nbdb_api, ovn_nb_idl_for_events and
ovn_nbdb_api_for_events in the OvnProviderHelper class
Change-Id: I0034a48997bd6b95e1b51bfcbd56e8372b35e62f
Closes-bug: #1871355
There were a number of carry-over constraints and
requirements from neutron and networking-ovn that
are not needed for the OVN provider, remove them.
Update tenacity to version 5.0.2 to match octavia-lib,
else running 'tox -e lower-constraints' will fail with
an error locally.
Also removed the install_command directive from
tox.ini since that could lead to requirements
tests not running properly, it is handled internally
by tox versions > 3.0 and we are using 3.1.0.
Change-Id: I72d1ac0294e22ead8d9f38e09bdefc62a3ce50ff
We still have scenario tests failing and it needs further work
in Octavia tempest plugin [1] and Core-OVN [2].
However, scenario tests are not the only ones that we expect to pass, so
for now ignore those test cases:
octavia_tempest_plugin.tests.scenario.v2.test_traffic_ops.TrafficOperationsScenarioTest.test_basic_traffic
octavia_tempest_plugin.tests.scenario.v2.test_traffic_ops.TrafficOperationsScenarioTest.test_basic_udp_traffic
and set this job to voting.
[1] https://review.opendev.org/#/c/714004/
[2] https://bugs.launchpad.net/neutron/+bug/1871239
Change-Id: I388438133e9028e7805aba017334d94a11aeda5f
Add file to the reno documentation build to show release notes for
stable/ussuri.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.
Change-Id: I7945635c080a56526b62849e25556693de48c0ae
Sem-Ver: feature
local.conf.sample was a little out-dated and failed
stacking. Update to be more like the neutron sample
file with the added Octavia and OVN provider sections.
Change-Id: I38df77012d63efd1e8769c13ed35a017d4cb6141
Added a number of unit tests based on coverage report
data, it's up to 79% now.
Fixed test_pool_create_exception() to call pool_create()
instead of pool_update().
Also fixed a bug in the driver.pool_update() exception code
path found when adding a new test, status['pools'] is the
correct element.
Change-Id: Ic72aad21e0ecf5b0334b321b18515d909daa3ba4
This repo is python3 only, we should move to using the built
in version of mock that supports all of our testing needs and
remove the dependency on the "mock" package.
This patch moves all references to "import mock" to
"from unittest import mock".
Fixed one related functional test failure.
Change-Id: I4f7568b1af254488cbc75aefac2a1708e70eaf31
According to Openstack summit session [1] stestr is
maintained project to which all Openstack projects
should migrate.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: I9b1935be325bfd2bcc51d9f1ee1d3c4229b75403
The repo is Python 3, so update hacking to version 3.0 which
supports Python 3.
Update local hacking checks for new flake8.
Change-Id: I37851c466ac14f41506f3d0d7cee75db84580756
We shouldn't be using Octavia components except octavia-lib
in provider driver.
For now we only use Neutron client methods from Octavia Neutron network
driver, so this patch removes use of Octavia network driver
in favor of direct use of Neutron Client.
Change-Id: I77802ff65f975f8136daddfe897ae1993bd9c5e9
If devstack is spawned with SSL, that means we need
to configure OVN databases connectors to use TLS.
Change-Id: I4f95a6ea0f299700281e3dde26ebcaba77a1b1fc
The unit test setup has a try/except to support octavia-lib
< 1.3.1, but since that is the version in lower-constraints
it can never be triggered. Remove it.
Change-Id: Ia28ecf4ffd1a0aaf7c7b28af9d6ec75b313d8abf
When there are multiple listeners with different protocols
configured on OVN LB, and one of listeners needs to be deleted,
there is no need to refresh vips on given OVN LB.
If there are no listners withing same protocol left the given OVN
LB could be deleted and there is no need to refresh vips then.
Change-Id: If15f817617facade10005878c8dfc7f467ce75a9
Closes-Bug: 1866087