Commit Graph

45 Commits (master)

Author SHA1 Message Date
Fernando Royo 70fb6b345c [CI] Bump OVS_BRANCH in ovs/ovn source deploy jobs
Since [1] OVN/OVS source deploy jobs running with
OVN_BRANCH=main fails to compile ovn as this now
requires newer ovs commits from branch-3.2.

[1] https://github.com/ovn-org/ovn/commit/558da0cd

Change-Id: Ia546671f0d7be3e893eb2c7de67c82287bc53f52
2023-09-06 12:44:26 +02:00
yatinkarel f9319a185b Pin OVS_BRANCH to working commit
With [1] OVN main branch compilation fails, until
main branch is fixed to work with ovs master, let's
pin OVS_BRANCH to working commit.

[1] https://github.com/openvswitch/ovs/commit/07cf5810de

Related-Bug: #2015728
Change-Id: Icdd1affc944de6c1e00da9539e13a8d698cfc0e6
2023-04-10 12:43:03 +05:30
Fernando Royo 2aab7367af Pin OVS_BRANCH to master again
This patch reverts [1], [2] now [3] has been merged in the
OVN repository.

[1]https://review.opendev.org/c/openstack/ovn-octavia-provider/+/860843
[2]https://review.opendev.org/c/openstack/ovn-octavia-provider/+/854008
[3]1b0dbde940

Change-Id: I5279b288da46f6e223afb738c2c788f2bb2823b5
2022-12-20 12:12:03 +00:00
Luis Tomas Bolivar 8affd00b96 [OVN] Pin OVS version for OVN master
According to [1], the needed version for OVN master is
5a686267d36c5c4229ec801a9616ceb60740fbe3. So pin to this
for OVN master build from sources jobs.

[1] http:github.com/ovn-org/ovn/commit/2e4f393650ccf298f26787583c13a88197ba8348

Change-Id: If504cd0cc73f9e2340668cff12a2cd63030653bc
2022-10-05 16:15:24 +02:00
OpenStack Release Bot 387c357cde Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I2a622bd3ae05bcb4681e1e50a521d223d51b34d9
2022-09-16 14:40:15 +00:00
Fernando Royo 007866c1c3 [OVN] Pin OVS version for OVN master
According to [1], the needed version for OVN master is
fe171e4f109f001f07b867756a261d898f0d2cfc, but after
running git submodule status the output indicates
6f24c2bc769afde0a390ce344de1a7d9c592e5a6. So pin to this
for OVN master build from sources jobs.

[ovn]$ git submodule status
-6f24c2bc769afde0a390ce344de1a7d9c592e5a6 ovs

[1] 9f25b2cedf

Closes-Bug: #1987308

Change-Id: I1af8e5fe53447811fbcc388d31e5c7eecb8ff2e4
2022-08-30 07:26:24 +00:00
Ghanshyam Mann 1207a23df2 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: Ibceb62d1929a159ccea0226ad53e380afb72c19d
2022-07-12 07:12:27 +00:00
Fernando Royo 201e8be046 [OVN] Fix DuplicateOptionError on test scope
OVN Octavia Provider is registering opts a soon modules (driver,
agent or helper) are imported, so in a test scope terms, when some
tests run the setUp they are broken by a DuplicateOptionError
because they are based on TestOVNFunctionalBase from Neutron
where same options are loaded to same oslo_config group.

This fix proposes some refactoring in a similar way to [1] and [2]
in order to avoid the registration of opts a soon a module is
imported, instead we switch to one charge per required class
whenever possible.

Additionally in order to fix gates and according to [3], we pin
version of OVS to d94cd0d3eec33e4290d7ca81918f5ac61444886e hash

[1] https://review.opendev.org/c/openstack/neutron/+/837392
[2] https://review.opendev.org/c/openstack/neutron/+/839783
[3] f93206ce40

Related-Bug: #1972278
Related-Bug: #1967472

Change-Id: I2f36af767a0a0a4c19488b6998a414b8672114f5
2022-05-11 15:24:23 +02:00
Zuul 46d750fd33 Merge "Increase code coverage" 2022-04-05 15:29:01 +00:00
Fernando Royo 7f00a1961d Increase code coverage
Create some additional tests to increase coverage to 92%.

Co-authored-by: Brian Haley <haleyb.dev@gmail.com>
Co-authored-by: Fernando Royo <froyo@redhat.com>

Depends-On: https://review.opendev.org/c/openstack/ovn-octavia-provider/+/836144

Change-Id: I3bd686db234f472c693c3ac1d23e58be58a5acb6
2022-04-05 09:58:31 +02:00
Fernando Royo faead99aa3 [OVN] Pin OVS version for OVN v21.06.0
According to [1], the needed version for OVN v21.06.0 is
a4b04276ab5934d087669ff2d191a23931335c87

[1]4b0a02635f

And according to [2], the need version of job using OVN
master is 498cedc483f3239c839c55b4d9f2261b61fb6ace

[2] 576491f507

Related-Bug: #1967472
Change-Id: I63cfc82b329687204e08c2061c6ac8eb7582ab77
2022-04-01 15:31:06 +00:00
Lucas Alvares Gomes 5bee600edd Fix zuul templates for functional and tempest tests
* The "devstack_localrc" key was missing, without it local.conf won't be
  populated.

* Added OVN_BUILD_FROM_SOURCE to True to make sure OVN is compiled
from code and not installed from packages.

* Updated the version of OVN and OVS in the -released job to a newer
  version.

Closes-Bug: #1964339
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
Change-Id: I05ed8fb053c78bd16a52b5d82a3ab51faf856d78
2022-03-18 11:21:46 +01:00
OpenStack Release Bot 87369d8427 Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: If003e0b9e878b828364535f0b0fbdc71c8bae00a
2022-03-10 12:13:46 +00:00
Zuul ec5b1d5774 Merge "Add Python3 yoga unit tests" 2022-02-22 08:26:37 +00:00
Rodolfo Alonso Hernandez a4ec59288a [FT] Enable OVS and OVN compilation from source
Enable OVS and OVN compilation from source in functional testing
CI jobs.

This patch uses the new variable defined in [1]:
"Q_BUILD_OVS_FROM_GIT".

[1]https://review.opendev.org/c/openstack/devstack/+/799621

Closes-Bug: #1959028
Change-Id: Ie42255d2f06563b1890eb70f87e0213b731eb581
2022-01-18 17:40:56 +00:00
OpenStack Release Bot 6a61cd2c90 Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I13adac1400432858a66fec48bf935cc6c7c316b9
2021-11-08 11:37:13 +00:00
Slawek Kaplonski e9bf916b92 Fix lower-constanints and pep8 jobs
This patch switches using f-strings instead of regular ones in places
where pep8 was complaining about with error C0209.

It also updates some of the lower-constraints to align them with
Neutron's lower-constraints and to make ci job happy.

It also changes OVN_BRANCH from "master" to "main" as that was renamed
in the OVN repo some time ago.

Change-Id: I8c805504e8a9e06dcdd4b1ac850d54400ef05b40
2021-11-05 17:07:33 +01:00
Brian Haley 8bbd8f1b62 Add Health Monitor support
TCP and UDP Connect health monitors are now supported by the
provider driver, when the underlying OVN version supports
them.

The health monitor uses the OVN distributed DHCP port as the
source IP for messages, one must exist or the create or update
operation will fail. The list of member ports to monitor is
updated whenever one is created or deleted.

Added support for SBDB notifications for Service Monitor
events generated when the OVN health monitor code detects
issues with connectivity. This will trigger updates to the
Octavia objects as members go on/offline so that the Octavia
API reflects the current running state of the load balancer.

Added a lot of new unit and functional tests to cover all the
new code, and enabled the tempest health monitor feature so
those tests are run as well.

Change-Id: I776a7a6b036ad72ce7eaa1ab39f448b344974be6
2021-07-21 17:00:03 -04:00
Zuul 9b58aaa534 Merge "Add a Kuryr Kubernetes co-gating job" 2021-07-09 01:10:27 +00:00
Brian Haley a9ad5dfeef Disable some high failure rate tempest tests
These two tests are failing a significant amount of the time,
disable while we investigate the reason so we can continue to
merge other code.

Related-bug: #1934915
Change-Id: Ie503fa211f9d6ec0e4ac62ee39aa9e781e0ff1b0
2021-07-07 12:21:56 -04:00
Brian Haley 26c4bc11c1 Add a Kuryr Kubernetes co-gating job
Since Kuryr Kubernetes is a consumer of the OVN provider
driver, let's add a relevant job to co-gate on, non-voting
for now.

Change-Id: I437a2dca911668216110177df2f96fd1c1b0f58e
2021-06-24 12:46:53 -04:00
OpenStack Release Bot 49dbf521d6 Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Ia6bc6d42aac4aaa35717b9b01a063362bab4c355
2021-03-30 18:28:25 +00:00
Zuul 915e561c9e Merge "Start running the tempest API tests" 2021-03-12 19:00:14 +00:00
Zuul 2e6950a847 Merge "Remove devstack-gate reference" 2021-03-12 17:59:52 +00:00
Zuul 1ccbf2988c Merge "Add SCTP support" 2021-03-12 16:17:18 +00:00
Brian Haley 516e5c315d Start running the tempest API tests
We were previously only running the scenario tests.

Depends-on: https://review.opendev.org/c/openstack/ovn-octavia-provider/+/742644

Change-Id: I62a3e64eca1e8929fd05c04d7b40ec7ca88dafd1
2021-03-11 21:20:39 -05:00
Ghanshyam Mann 7bd6936712 Switch to new rolevar for run-temepst role
Tempest replaced the below rolevar for run-tempest role
- tempest_test_blacklist is replaced by tempest_test_exclude_list
- tempest_black_regex is replaced by tempest_exclude_regex

old name are still supported for compatiblity but we recommend
to switch to new one.

Depends-On: https://review.opendev.org/c/openstack/tempest/+/774835
Change-Id: Iaa398e20575729c82c14a0a00d3992b88ccdfce8
2021-03-10 23:10:11 -05:00
Brian Haley b796f4ebe0 Add SCTP support
The Octavia API supports 'SCTP' as a protocol when creating
listeners and pools, so add it to OVN_NATIVE_LB_PROTOCOLS.
Core OVN already has support for SCTP.

Required a bump in octavia-lib version to pick-up constant.

Change-Id: Ica57a5c77af61bffba812b35608bfc2a90011ba8
2021-03-09 12:32:31 -05:00
Brian Haley bdb7ca681c Remove devstack-gate reference
Not needed by native Zuul v3 jobs.

Change-Id: I221fe3411e833ca43543d6fd9ef369097ef01439
2021-03-08 10:42:08 -05:00
Zuul a00d3b1e5a Merge "Collect OVN logs" 2021-03-03 15:36:13 +00:00
Brian Haley 13331aaa3e Collect OVN logs
Make sure we collect all OVN logs to help with
debugging. Copied from neutron repo job definition.

Change-Id: I84ce28a5e5dd4d5d6fffac41098e82faece478f5
2021-02-09 10:46:51 -05:00
Brian Haley 15b3ca3331 Enable the IPv6 tempest tests
Remove 'test_with_ipv6: False' so that IPv6 tests are not
skipped.

Change-Id: I9ae4d8c4bcb00b8ebd6c3633e42d821eff6fada9
2021-02-02 21:39:11 +00:00
Brian Haley ba4c94ed66 Change to build OVN from source
Depending on the image used for testing, we might have one
with an older version of OVN that does not have selection
fields in load balancers, which will lead to failures since
connections will not be balanced correctly. Change to build
from source so we test with both 20.06 and the tip of master.

Change-Id: If7ca57e19bc0f2dac4eb0ec8859b53fa5fd7ebdb
2021-02-01 15:13:36 -05:00
Zuul ba9344e069 Merge "Add master and release tempest jobs" 2020-12-04 17:12:06 +00:00
Maciej Józefczyk 7a8e45b4ce Add master and release tempest jobs
OVN Octavia provider driver relies now on new features
comming from OVN master. That means that would be great
to use master, at least in the check queue.

Change-Id: Ifd909f03c00b403837c513afdde085442cf9ccd8
2020-10-01 15:10:53 +00:00
OpenStack Release Bot a278e5946d Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I59c68b5c9ae3fea036ce0bda71504f0b9f3b9b3a
2020-09-24 20:57:51 +00:00
Brian Haley bfd98048cf Fix broken gate
This is a combination of a number of fixes required to
fix the broken gate.

Fix lower-constraints job for focal, bumping requirements
and fixing resultant failuers as necessary.

The devstack module for OVN has now been moved to the
devstack repository, so include it from there so the
functional jobs can run.

Set not_implemented_is_error to False.
The Octavia tempest plugin tests are being changed to
better skip tests for not implemented features. Setting
this to False will treat NotImplemented failures as
skips and not errors.

Fix tempest blacklist regex.

Raise error on listener create with 'allowed_cidrs' present.

Change-Id: I70adcfad3f4d489d94da171670c23dba51d6f2a1
2020-09-14 17:35:31 -04:00
Maciej Józefczyk c287fda67b Set the CONF.load_balancer.enabled_provider_drivers tempest conf
Without this config the tempest API test
octavia_tempest_plugin.tests.api.v2.test_provider.ProviderAPITest.test_provider_list
fails.

Change-Id: I18ccbe1a6f0896ff51440a245acd979321fce3bb
2020-07-22 14:30:00 +00:00
Maciej Józefczyk 773daf59de Fix pep8 and functional jobs
This change includes a 3 different patches that we need
to squash in order to pass the gate.

1) New versions of isort broke pylint. This patch fixes it at 4.3.21.

2) The functional job fails because of bugfixes in neutron
devstack lib. We need to update our functional jobs also.

3) Add functional release and master job that builds OVN

In order to test the latest code in the core OVN repository,
add a job that builds it from source from the master branch.

Define also second job that will run code with latest
OVN/OVS release.

Closes-Bug: #1887363
Change-Id: Ic013e5a0605c28453d3ee1b64031022f6f75f8f6
2020-07-13 14:45:23 +02:00
Maciej Józefczyk 5cebb58c1d Make ovn-octavia-provider-v2-dsvm-scenario voting
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
2020-04-21 12:11:26 +02:00
OpenStack Release Bot 6023e0f5e3 Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Iba12558451f940d88d6d095df435133525b92471
2020-04-11 18:46:51 +00:00
Maciej Józefczyk 654cf42e8f Add tempest gate, devstack plugin and sample devstack config
This patch adds:
 * ovn-octavia-provider-driver tempest job
 * devstack plugin


Change-Id: I42878326c3654db7a1be83f5889457c8c85117b6
2020-03-19 11:04:14 +00:00
Maciej Józefczyk cd7fab3027 Enable cover job
This job is green. Lets enabled it.

Change-Id: I482b287c5d67b60c1c5d0eabb33bee53ee67a636
2020-03-02 11:57:26 +01:00
Maciej Józefczyk ec629c2e0c Import OVN LB functional tests
This patch imports OVN LB functional tests.

Unfortunately neutron hasn't been released yet
so for test requirements we need to install it
from git, from commit that imports functional
base class to neutron [1].

[1] https://review.opendev.org/#/c/701733/


Change-Id: Ia65492db1688f3a3fce22a4432ae8445f67c37b3
2020-02-24 08:15:13 +00:00
Maciej Józefczyk 184f629f17 Initialize repository
This commit adds basic project configuration.

Change-Id: Ia5e4aa81213f34654e21e65ab44f4eea03851a9a
2020-01-15 14:41:32 +00:00