47 Commits

Author SHA1 Message Date
Maor Blaustein
e33d47c604 Migrate ovn router availability zone tests
Changes from original tests:
- Methods and variables set according to OSP deployer tool in base class.
- Adjust migrated imports and configuration.
- Added OVN backend check instead of configuration check.
- Replaced test UUIDs with unique ones.
- Fixed typos throughout file.

Change-Id: I8656d56d579b73dd39c3bd37c46516ada5f78a6c
0.1.0
2024-03-12 20:44:28 +02:00
Zuul
0348de6574 Merge "Add test_ovn_dbs.py" 2024-03-11 12:23:42 +00:00
Maor Blaustein
d7085fc5b8 Fix pep8 gate: bump flake8 >= 4.0.0
Due to flake8 issue noticed in whitebox gates:
https://github.com/PyCQA/flake8/issues/1372

Change-Id: Id9472889ecb3d811fd18ab253f9c21e6e95ec7d3
2024-03-10 19:38:49 +02:00
Roman Safronov
4e5b30d9ea Add test_ovn_dbs.py
Moved an existing downstream test almost as is.
Set test uuid to a new value.

Change-Id: Ie9af55e709c088cf5e9890a9567c82c5862990fc
2024-03-10 15:19:18 +02:00
Zuul
39ba5548ed Merge "Migrate availability zone tests" 2024-03-10 13:13:58 +00:00
Maor Blaustein
531bce7f52 Adjust devstack plugin to debian/fedora package install
Most recommended and tested distro for devstack is ubuntu 22.04 [1],
therefore plugin adjusted for more distros.

[1] https://docs.openstack.org/devstack/latest/index.html#install-linux

Change-Id: I0ce489323fb5d48b06cd42849724097ecfa7bbf6
2024-03-07 23:09:25 +02:00
Maor Blaustein
2140dfb8cb Migrate availability zone tests
Changes from original tests:
- Adjust migrated imports and configuration.
- Added OVN backend check instead of configuration check.
- Replaced test UUIDs with unique ones.
- Master controller execution method according to OSP deployer tool.
- Node domain names according to OSP deployer tool.
- Fixed typos throughout file.

Change-Id: Ifca3d75fe14d0ec5e11bb9f669cbfd88100bea2f
2024-03-07 20:15:43 +02:00
Zuul
dc5aa0a129 Merge "Add test_vrrp" 2024-03-06 19:49:04 +00:00
Roman Safronov
cdc2d6ad32 Add test_vrrp
Add existing tests to increase plugin functionality
Also add code to customize advanced image to make it
suitable for all tests of the plugin.

Change-Id: I65d53544e85850c3b0a9929198fab14bddcca636
2024-03-06 17:59:26 +02:00
Roman Safronov
8ac79db86c Implement node discovery
Since some tests from the plugin require list of nodes be available
a discover_nodes() function was implemented, by using openstack API.
This will ensure that discovering nodes will work properly on
environments deployed with any installer.

Also, adjusted multicast tests in order to prevent self-rebooting
of the tempest node on a single-node environment.

Change-Id: I80dd0ba855a63952d12214a4e7e9fd9c334e312a
2024-03-05 17:18:02 +02:00
jskunda
a940232333 Add test_sriov
Add existing tests to increase plugin functionality
Also added a dependency class from base.py

Change-Id: I357bbf5ce6b38e70423e75ce0fbcfd112db387a6
2024-03-04 02:55:28 +02:00
Roman Safronov
e3ff03e580 Add multicast and broadcast tests
Moved tests from downstream plugin as they are, with necessary
adjustments.
- Changed paths where needed.
- Updated test uuids.
- Moved also relevant config options and base functions.

Change-Id: I509641a72ae87e6aed8582426a09ab87390c72fe
2024-02-27 20:05:30 +02:00
Martin Kopec
7589cc2c37 Add pep8 job and fix pep8 issues
Adding a pep8 job in check and gate pipeline. This commit also
fixes a few pep8 issues.

Change-Id: I7688ce8a216eafc4d1b1c2082a7e1aad5b1d15fa
2024-02-22 21:02:35 +00:00
ccd448d86d Update ovn job nodeset similar to ovs job
The job is hitting timeout when running in
non nested nodes as guest vms boots too slow.
Switch nodes to nested-virt like ovs job in order
to resolve it.

Change-Id: I7a758d653116939267ac6f2b74c4ad545e4e051d
2024-02-22 20:50:35 +05:30
Zuul
30a01d749b Merge "Migrate vlan transparency tests" 2024-02-16 16:46:43 +00:00
Zuul
a1d5158a8f Merge "Neutron HA nodeset of 3 controllers and 2 computes" 2024-02-16 13:04:34 +00:00
Maor Blaustein
927788881b Migrate basic tests
Change-Id: I33d986a3d9f3367c30f54ebadb03df7fd508b0de
2024-02-15 20:15:41 +02:00
Maor Blaustein
e6603a20b3 Migrate vlan transparency tests
Change-Id: I6572af33c8799947f6d630540750a92e91d292dd
2024-02-15 17:36:07 +02:00
Maor Blaustein
3f4f3e584f Neutron HA nodeset of 3 controllers and 2 computes
The neutron tempest migrated plugin has tests that soft/hard shutdown
services/nodes and expect HA setup to handle it.

Therefore this change adds a devstack OVS HA gate job to notice such
tests work properly, and any HA checks related code isn't broken.

Change-Id: Ifa574542d6d4b59c63335e95052922b494cad5e2
2024-02-15 16:36:50 +02:00
Maor Blaustein
0869dc69df Align to similar neutron plugin changes
- Yoga jobs removal from check gate:
https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/908419

- Remove train and ussuri jobs since EOL:
https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/908557

Change-Id: I525cc025608e8b960fbb233507ffda6ac9c234f6
2024-02-13 17:04:36 +02:00
492aefd7c8 Reintroduce strict regex for extra_dhcp_opt test
This is partial revert of [1]. The issue got triggered
as by default dhcp_domain is set to 'novalocal' in nova and
dhclient includes that local domain when setting up
resolv.conf as part of [2].

To have predictable domain only derived as part of
neutron configuration the job unset's dhcp_domain in
nova conf.

[1] https://review.opendev.org/c/x/whitebox-neutron-tempest-plugin/+/904331
[2] https://bugzilla.redhat.com/show_bug.cgi?id=637763

Change-Id: Id5966cc7447a688ad1a1a8800993096d18f29194
2024-01-03 11:31:38 +05:30
Maor Blaustein
774d40c5c4 Migrate port security tests from downstream
Change-Id: I72f179fbf1bfb60cc6174fd404b1abbb9d7f62f3
2023-12-25 17:55:15 +02:00
Roman Safronov
56c7eb3b50 Add workaround for DHCP opts test and minor fixes
This patch contains a workaround for one of extra dhcp opts test,
test_extra_dhcp_opts_disabled_enabled_dhcp4, that uses a strict
regex for getting domain_name between 'search' and eand of the line.
In some cases the test is failing because of an extra entry 'n'
before the end of the line. This still should be investigated.
Meanwhile we apply a workaround in order to unblock the gates.
The workaround makes the regex less strict and still checks for
a proper value of the domain_name.

This patch also handles 2 comments from the previous patch.

Change-Id: Icb65bd5aefab7d23b93f148502667c8c4e62bdc2
2023-12-25 17:54:51 +02:00
Roman Safronov
fa2d7457a8 Add extra dhcp options tests
Tests moved from downstream plugin with minimal adjustments.
These tests require nmcli inside the server so advanced image
changed to rocky-9 cloud image. Other alternative, e.g. centos-9
does not have a default user and requires additional customization
for setting the user.
Additionally, moved utils.py and constants.py.
From config.py and base.py only relevant subset of code moved.

Change-Id: I6b538c13a15e94d072091b3218b2cd48ff20a70c
2023-12-21 16:21:32 +02:00
Maor Blaustein
b53e623b63 Replacing TripleO with Devstack jobs
TripleO jobs needed for testing whitebox neutron tempest plugin
are deprecated and most reasonable option is to use Devstack jobs
instead.

Change-Id: I397562b1c8a6752474a7c5b8a22ae98c9662f8b5
2023-11-30 14:34:19 +02:00
jskunda
c2eb890259 Replace dpkt library with scapy
Since dpkt is not provided in RDO packages we need to replace it
with other library. In this patch dpkt library is replaced by scapy.

Change-Id: Ifd3348bf183e35f40a8f13e97c1936faf20ce705
2023-09-19 15:15:05 +02:00
jskunda
5e55476a2e Update neccesary requirements for tests
Change-Id: I24e0b5cfd38709c7785d6f36c5d03bbeefbcf3fb
2023-09-05 15:01:30 +02:00
Maor Blaustein
51bd16a90b Added updates to security group tests
Some changes were made to tests until CI verification gate was fixed
to verify this plugin's added tests.

Change-Id: I1584ad9ff32410b7297325426f0a7556ea45b012
2023-08-21 12:06:47 +03:00
Maor Blaustein
66ba20d3f8
Upload first tests
Depends-On: https://review.opendev.org/c/openstack/tripleo-quickstart-extras/+/888763

Change-Id: I86ff58f44ad1b999890ca8183722870d6b6c1c08
2023-07-21 20:01:03 +05:30
Slawek Kaplonski
1c26b7a5d9
Set wallaby branch for tripleo based CI job
Tripleo is not going to be supported after stable/wallaby branch
so we need to use that one in our CI job.

Depends-On: https://review.opendev.org/c/openstack/tripleo-quickstart-extras/+/888763

Change-Id: Iaee5825a84820bde3d31859b40bfa339d93562a1
2023-07-21 19:59:08 +05:30
Zuul
55c8e64df7 Merge "Add flake8 configuration to the tox.ini file" 2023-06-21 10:50:59 +00:00
Zuul
cde6a56490 Merge "Adds .stestr.conf configuration file" 2023-06-01 15:31:11 +00:00
Slawek Kaplonski
5edcdf1e78 Add flake8 configuration to the tox.ini file
It sets import stype to be "pep8" to be consistent with other OpenStack
projects and configures some excluded files and enabled extensions. It's
all the same as for neutron-tempest-plugin repo to be consistent with
it.

Change-Id: I8951003e481fe15f05cc7eeb671d86ca793a7eed
2023-06-01 16:07:09 +02:00
Chandan Kumar
73402012d4 Use tempest_services var to enable the plugin
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_tempest/+/870812

Signed-off-by: Chandan Kumar <chkumar@redhat.com>
Change-Id: I0576b6bbae0bf03e6ccd1b24ea208865570e1cb6
2023-01-25 06:48:59 +00:00
Maor Blaustein
f4ee953265 Adds .stestr.conf configuration file
Change-Id: I2d244d7d4c902e20af1b6d1a5ef7f16873b7ea25
2023-01-17 12:50:01 +02:00
Zuul
b571739cb1 Merge "Revert "Remove tripleo based job temporary"" 2022-11-24 15:12:28 +00:00
Slawek Kaplonski
f12525f648 Revert "Remove tripleo based job temporary"
This reverts commit b1f6c8f858c2cd487cad8f240749348623a4dd80.

Reason for revert: RDO package is there already so we should be good to go with this job

Change-Id: I66e3d18fb708d449dc292c88498da278d0444a99
2022-11-24 10:01:11 +00:00
Slawek Kaplonski
99709f2eb3 Remove dpkt from requirements
It seems that this isn't used in this project (at least for now) so
there's no need to keep it in the requirements file.

Change-Id: Id7a0ab375c3a033edc306d1de856ca6a3af3622b
2022-11-09 07:24:48 +00:00
Slawek Kaplonski
118339b725 Add LICENSE and README.rst files
Change-Id: If73ae7238458f45c0af6b4b0805aec95915b4f28
2022-11-09 07:24:40 +00:00
Slawek Kaplonski
b1f6c8f858 Remove tripleo based job temporary
It's failing due to issues with building packages so lets remove
it from the check and gate queues for now to unblock project.
It will be back in the check and gate queues when packaging will be
ready.

Change-Id: Ic5470a698d0eebe30686dfc547e503e06a2f62b7
2022-11-09 08:15:30 +01:00
Slawek Kaplonski
c929750e22 Add first tripleo based OVN scenario job to the project's CI
Change-Id: I8d6b3a3432a5c733346457426d7d0e389817f2ce
0.0.1
2022-08-26 11:32:22 +00:00
Slawek Kaplonski
3a7f670351 Add config module to the whitebox neutron tempest plugin
It don't have any options defined yet as those will be added together
with tests later.

Change-Id: Ia9d00177616472b49c9a3569a5dd3cbc7d558e27
2022-08-26 13:30:26 +02:00
Slawek Kaplonski
f7c6868817 Add requirements and base pep8 job
This patch also adds tox.ini file with config for the pep8 job

Change-Id: I1f804dd03f254223cc1a7ed3371f6606fbb579cc
2022-08-22 12:19:28 +02:00
Slawek Kaplonski
91c2c4f8e9 Add base plugin class and setup module
Change-Id: I7b37c8c87397cd4cdb23786e3f7fac2d368e8d05
2022-08-22 12:19:14 +02:00
Slawek Kaplonski
7ce73e9ec6 Add gitignore file to the new repo
Change-Id: I92c9e43c4a56d2974476427c041491598f99705f
2022-08-22 12:18:50 +02:00
Slawek Kaplonski
e14b50c4c8 Add initial noop-jobs to the project
Change-Id: I6645f60bd4f312619c7e64f465e79b91a558b31a
2022-08-17 12:06:50 +02:00
OpenDev Project Creator
5c8b700e79 Added .gitreview 2022-08-08 12:03:41 +00:00