1803 Commits

Author SHA1 Message Date
Zuul
3d6f2976bf Merge "Remove test duplication between tempest and n-t-p RoutersDVRTest" 2023-11-22 13:46:40 +00:00
Zuul
f6a47e8f7a Merge "Remove test duplications between tempest and n-t-p plugin" 2023-11-22 12:19:32 +00:00
Zuul
c4802160f8 Merge "[Default SG rules] Test to check if SG rules are created from template" 2023-11-17 12:57:20 +00:00
Zuul
ba65bbd6ea Merge "New basic API tests for the default SG rules templates CRUDs" 2023-11-17 11:05:48 +00:00
Slawek Kaplonski
a1f654aa71 [Default SG rules] Test to check if SG rules are created from template
This patch adds new test which checks if SG rules actually created
automatically for new default and non-default SG are matching template
rules from neutron DB.

Depends-On: https://review.opendev.org/c/openstack/neutron/+/884474

Related-bug: #1983053
Change-Id: Ica0810413bef7f0e3e6dff21f6c9e4cda1945a43
2023-11-17 08:37:02 +00:00
Zuul
a9b54e26a8 Merge "Fix importing security group tests" 2023-11-16 17:23:31 +00:00
Brian Haley
969d66e149 Update the contributor information
Some of the links and information were outdated here, update
and point to Neutron tree for installation and usage.

TrivialFix

Change-Id: Ia913a976dc2f60eb28548b2f099d924e160df2cf
2023-11-15 09:58:15 -05:00
Roman Safronov
052808c2e6 Fix importing security group tests
Importing StatelessSecGroupDualStackDHCPv6StatelessTest was causing
a type error in case CONF.neutron_plugin_options.firewall_driver
was set to 'openvswitch' [1]. This patch fixes the issue by
separation code to a class with base functions, that is never skipped
and classes with tests that optionally can be skipped.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=2249407

Change-Id: I90b9cf495f35aca7a9171dc685696ae4cdd4d0f2
2023-11-15 15:53:04 +02:00
Zuul
3abea1de41 Merge "Add test documentation for docs tox target" 2023-11-15 05:05:38 +00:00
Dmitriy Rabotyagov
17c48d62eb Add VNaaS OVN job to the project
Depends-On: https://review.opendev.org/c/openstack/neutron-vpnaas/+/765353
Change-Id: Ic487ac600270ca772e344ed95cd14bd40257e268
2023-11-09 13:55:00 +00:00
Elod Illes
f2e985e8fd Add test documentation for docs tox target
Enable sphinx to generate documentation from docstrings by running
'tox -e docs'.

Change-Id: I5996e5f07493f69f14172b4bb0535852e89d5456
2023-11-08 15:52:37 +01:00
jskunda
bc84489e49 Remove test duplication between tempest and ntp NetworksTestDHCPv6
NetworksTestDHCPv6 [1] has better
functionality in tempest than in neutron-tempest-plugin, so with
removing these tests from neutron-tempest-plugin we can get rid
of whole module, reducing the test duplications.

[1]cc0e9b1817/tempest/api/network/test_dhcp_ipv6.py (L31)

Change-Id: I080b83965acd69c3d1b4693527c1be0b730e80a6
2023-11-08 11:23:34 +00:00
Slawek Kaplonski
7944b08b1f Use default RBAC policies in other projects together with Neutron policies
In the job "neutron-tempest-plugin-openvswitch-enforce-scope-old-defaults"
we will now test old policies in the Neutron project together with what
is used by default in other projects, like Nova, Glance, etc.

Change-Id: I4c2440f6f1546d22d4acebe69c6143eefe10335a
2023-11-06 08:17:20 +00:00
Arkady Shtempler
88d1d5752a Makes "segmentation_id" configurable
We should add the segmentation_id as tempest option,
so that it can be changed to match the deployment if needed.

Change-Id: I42bea9217462226e8650e55997449e1cc05f085c
2023-11-01 13:06:05 +02:00
Zuul
777c95faa7 Merge "Revert "Revert "[S-RBAC] Switch to new policies by default""" 2023-10-26 18:14:10 +00:00
Bodo Petermann
af70af3e07 Test job for VPNaaS on OVN
Add a new test job to test VPNaaS on OVN, that will be picked up
by the proposed patch [1] in neutron-vpnaas.
Since VPNaaS for OVN doesn't support IPv6 VMs, skip 6in4 and 6in6 tests.

[1] https://review.opendev.org/c/openstack/neutron-vpnaas/+/765353

Related-Bug: #1905391
Change-Id: I9e9e8e78fd22b5edbc794ec68dbe40302ed0f3fd
2023-10-26 12:09:59 +02:00
Ghanshyam
608b85f861 Revert "Revert "[S-RBAC] Switch to new policies by default""
This reverts commit 2f1856baf89618c799d0956c95335f3b47460b52.

Reason for revert:

Neutron bobcat (enabled new RBAC by default) is released now and devstack enabling the same in depends on change. This means every job will be tested with Neutron new RBAC by default. So now we can have a job disable the new default and test old default until they are being removed.

Change-Id: Iec97cba15e5bf5b973a0cdf5c24f47b99e31a276
Depends-On: https://review.opendev.org/c/openstack/devstack/+/899306
2023-10-25 20:05:39 +00:00
Rodolfo Alonso Hernandez
9aa8eb4530 Replace cirros image versions not cached in the CI
Since [1], some cirros images have been deleted from the CI cache. It
could happen that using cirros images not cached, that imply to
download them, could fail. Any version not cached should be replaced by
its closer image version.

[1]https://review.opendev.org/c/openstack/project-config/+/873735

Related-Bug: #2039586
Change-Id: I3769e76fb6e6e5ea5a77bd52dc9c061f72431ac7
2023-10-14 23:29:58 +00:00
Zuul
df6a4bc3f1 Merge "Add job definitions for 2023.2 (Bobcat) branch" 2023-10-12 11:14:25 +00:00
Zuul
83c9153005 Merge "Revert "Temporary turn off l3_ha in ovs/lb master/bobcat jobs"" 2023-10-11 09:13:16 +00:00
Brian Haley
1945f92c1b Revert "Temporary turn off l3_ha in ovs/lb master/bobcat jobs"
This reverts commit 209d363cce20d48d21455a196086a19f1d0d97e1.

Reason for revert: Fixes have landed in master and 2023.2 branches.

Change-Id: Idfbe64fe375df9576835c6948d47c660d4a5c508
2023-10-10 16:50:15 +00:00
Zuul
7eacabc0c5 Merge "Turn off host-passthrough in scenario jobs" 2023-10-08 14:02:57 +00:00
Zuul
99321cef65 Merge "Include legacy_ebtables for LinuxBridge Jammy jobs" 2023-10-07 07:20:05 +00:00
55f1f92d08 Add playbooks to irrelevant-files
Changes to the inrepo playbooks triggers all the jobs
unnecessarily, include these in irrelevant-files as
per jobs.

Change-Id: I5e326488b10b13f5191a6554f31ede02dc3504ba
2023-10-06 19:04:49 +05:30
7f679d3cd4 Include legacy_ebtables for LinuxBridge Jammy jobs
With the latest kernel update in Ubuntu jammy we
need to include this role else jobs are failing.

Related-Bug: #2038541
Change-Id: Ia277239cf5cc8d4534d46a4a2340ba42905923ff
2023-10-06 14:39:45 +05:30
Slawek Kaplonski
aa22c9e1bb New basic API tests for the default SG rules templates CRUDs
This patch adds some basic API tests for the new API for default SG
rules templates. Those new tests are checking if by default SG rules are
set in the same way as legacy rules which were there since "forever".
Second test checks basic lifecycle of the SG rule template.

Depends-On: https://review.opendev.org/c/openstack/neutron/+/883246/

Related-Bug: #1983053
Change-Id: I458f54ff6b73e277fe9506e90fa6af44d9c51101
2023-10-06 06:00:57 +00:00
e4a1f53953 Turn off host-passthrough in scenario jobs
This was enabled with switch to cirros 0.6.2[1],
but still seeing same tracebacks for cirros vm boot,
this mode is not required for the jobs so let's
turn it off. This may help in the other failures
seen in the Related Bug.

[1] https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/890177
Related-Bug: #2036603

Change-Id: Ifb3972e74434b29a1c6acb9bc131678ba83d66a3
2023-10-04 16:40:54 +05:30
Brian Haley
a2dff86600 Add job definitions for 2023.2 (Bobcat) branch
Create job template for 2023.2 jobs: neutron-tempest-plugin-jobs-2023-2
and fill it with job definitions for all Neutron core and stadium
projects active during the 2023.2 (Bobcat) cycle.

Change-Id: I3ad97b87abf4ba89885c9b4b25083ca357b6aca6
2023-10-04 08:00:28 +00:00
97409c6992 Use RE2 compatible regex for branches
Zuul has deprecated the usage of negative regex[1],
this patch switches the branches regex to the supported
one.

[1] https://zuul-ci.org/docs/zuul/latest/project-config.html#regex

Closes-Bug: #2037034
Change-Id: I66dcb56ab5ba9cfdefbeb25f1d01871ea0d0d362
2023-10-04 04:48:05 +00:00
209d363cce Temporary turn off l3_ha in ovs/lb master/bobcat jobs
Tests fails randomly with l3_ha in openvswitch and
linuxbridge master and stable/2023.2 jobs, until the
issue is fixed let's turn off l3_ha temporary.

Related-Bug: #2037239
Change-Id: Ia23b39819834e2bc12ec7113bb841007f7cf1ff5
2023-10-04 10:12:40 +05:30
jskunda
99c85da787 Remove test duplications between tempest and n-t-p plugin
ExtraDHCPOptionsIpV6TestJSON and ExtraDHCPOptionsTestJSON -
https://opendev.org/openstack/tempest/src/branch/master/tempest/\
api/network/test_dhcp_ipv6.py has same functionality in tempest
and neutron-tempest-plugin, so with removing these tests from
neutron-tempest-plugin we can get rid of whole module, reducing
the test duplications.

Change-Id: I111eeba5c29cd7d703e6663be12e8e7e7659919e
2023-09-25 15:41:26 +02:00
jskunda
d8ed3fb42a Remove test duplication between tempest and n-t-p RoutersDVRTest
RoutersDVRTest -https://opendev.org/openstack/tempest/src/branch\
/master/tempest/api/network/admin/test_routers_dvr.py has same
functionality in tempest and neutron-tempest-plugin, so with
removing these tests from tempest we can get rid of whole module,
reducing the test duplications.

Change-Id: Ie7d37def794a3cbdb2444ebbeba237fd58ddfb8a
2023-09-21 16:05:27 +02:00
Rodolfo Alonso Hernandez
370f71e987 Mark "test_subport_connectivity_soft_reboot" as unstable
This issue is related to:
* https://bugs.launchpad.net/neutron/+bug/2033887: the patches
  previously merged in the Neutron repository [1][2] should be
  reverted.
* https://bugs.launchpad.net/neutron/+bug/2024160: this issue
  is still present.

[1]https://review.opendev.org/c/openstack/neutron/+/882581
[2]https://review.opendev.org/c/openstack/neutron/+/888776

Change-Id: I9d8d76810d15913c29610464ab1b8fa34863aaf6
Related-Bug: #2024160
Related-Bug: #2033887
2.5.0
2023-09-09 21:36:37 +00:00
Fiorella Yanac
7aa02077ac Add username in resource_setup
There is a condition when rhel is used as default image
in tempest, so default_image_is_advanced set as true
and validation.image_ssh_user is set but
advanced_image_ssh_user is not set.
test_fragmented_traffic_is_accepted was failing
because advanced_image_ssh_user was empty.

Change-Id: I7fa5b167ba27cc78e017765eca927a1dfb24825e
2023-09-07 13:32:00 +01:00
Zuul
8f63937f01 Merge "Revert "Set GLOBAL_VENV=false to fix broken gate jobs"" 2023-08-29 23:32:58 +00:00
9e3969b0df Revert "Set GLOBAL_VENV=false to fix broken gate jobs"
This reverts commit d84b96d294439c6ad70794da94c5f69c8853e9b1.

Reason for revert: OVS jobs with GLOBAL_VENV=True are being fixed
with [1]. dynamic-routing jobs already fixed with os-ken latest release[2].

[1] https://review.opendev.org/c/openstack/devstack/+/892848
[2] https://review.opendev.org/c/openstack/releases/+/892214

Depends-On: https://review.opendev.org/c/openstack/devstack/+/892848
Related-bug: #2031415
Related-bug: #2031526
Change-Id: Ifae116a443ba500deb4cf01fdc92c87eb83d7582
2023-08-28 05:36:19 +00:00
Zuul
010ed337eb Merge "Update Cirros image to 0.6.2" 2023-08-17 20:08:58 +00:00
Brian Haley
d84b96d294 Set GLOBAL_VENV=false to fix broken gate jobs
Set GLOBAL_VENV=false in neutron-tempest-plugin-base
job definition to fix gate jobs broken by devstack
change [0].

Had to make the neutron-tempest-plugin-dynamic-routing-*
jobs non-voting as they are failing on the master branch
check queue. Work is still ongoing on a fix.

[0] https://review.opendev.org/c/openstack/devstack/+/558930

Closes-bug: #2031415
Related-bug: #2031526
Change-Id: I2cab7e9169ca6ddaea8b580dbb995e0886bd93c1
2023-08-17 08:51:05 +00:00
Slawek Kaplonski
c1793ca2e8 Skip stateless SG dualstack tests when openvswitch fw driver is used
Openvswitch firewall driver does not support stateless SG so tests from
classes:
StatelessSecGroupDualStackDHCPv6StatelessTest
StatelessSecGroupDualStackSlaacTest

from the module neutron_tempest_plugin.scenario.test_security_groups
should be skipped in such case.

Closes-bz: https://bugzilla.redhat.com/show_bug.cgi?id=2227138
Change-Id: Ice0f3573dd51851752c745c0b1d35c82bd7808fd
2023-08-02 16:55:10 +02:00
1f5797e733 Update Cirros image to 0.6.2
LIBVIRT_CPU_MODE: host-passthrough was commented
as there was some issue with 0.6.1. 0.6.2 is known
to have the fix included, so let's use that instead.

Change-Id: I534d537400fa67796a64a550b3fe45a3b28f250e
2023-08-01 12:10:05 +05:30
Zuul
9cf35d26c8 Merge "Using "Designate API" in addition to DNS query client check" 2023-07-19 20:07:12 +00:00
Arkady Shtempler
d5acee3804 Using "Designate API" in addition to DNS query client check
As of now the only validation done in Neutron&Designate E2E scenario
test cases is based on DNS query client only.
As a result, we don't really know what's happens on the Designate side,
for example, we wouldn't expect to see the recordset on Backend if it
wasn't previously created on the Designate.
This patch improves the situation and it will definitely help on debugging.
It will use "Designate APIs" when "query client" throws an assertion.
For example, if "A" type recordset wasn't detected on backend (as expected
by test), "Designate APIs" will be used to provide more details on failure.

Change-Id: Ie2093e457e0b664f36204d61f3020ef84ef15a3e
2023-07-17 17:45:31 +03:00
Rodolfo Alonso Hernandez
d5023e1b99 Use OVN v21.06 in Wallaby and Victoria
This patch is a follow-up of [1]. In order to keep using the same OVS
and OVN versions used before in the stable branched Wallaby and
Victoria, this patch enforces the OVN version to v21.06

[1]https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/887666

Change-Id: I961bfb5b58d34bf6400117c6ea788231db40a5fe
2023-07-10 12:42:38 +00:00
Lucas Alvares Gomes
24b5edd88c Fix wallaby/victoria neutron-tempest-plugin-ovn job
This could be fixed by merging
https://review.opendev.org/c/openstack/devstack/+/887184 and
https://review.opendev.org/c/openstack/devstack/+/887185 but, talking
to devstack maintainers upstream this patch does introduce a regression:

<frickler> the problem with that patch is that it introduces a regression
because GIT_DEPTH no longer works and until we have a fix for that,
I'm hesitating to do more backports of it

So, I think we could workaround this by using the name of the branches
with those commits included instead of the commit hash, that would work
with the git clone function from devstack.

Change-Id: I18c81ae4a9b5a50e2db25302ab99883248b473a1
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
2023-07-05 12:09:43 +01:00
Zuul
21874c703f Merge "Add "-d 1" option to the ncat client." 2023-07-05 10:30:20 +00:00
Slawek Kaplonski
fddcd186a4 Add "-d 1" option to the ncat client.
In nc run as client, when it is provided by the nmap (nmap-ncat package
in Centos/RHEL for example) it could happend that client which was
started with input string given through pipe (echo "test" | nc ... ) was
closed sooner than it received response from the nc server. In such case
nc client was finished without error (exit code 0) but also without
printing any message from server and that causes tests failures.

To avoid that there is option "-d 1" (--delay) added. According to the
nc man page [1] this option can be used to configure "Wait between
read/writes".

[1] https://man7.org/linux/man-pages/man1/ncat.1.html

Change-Id: Id49654aa5ca59eeb0585646d3fd5aa0de22337b5
2023-07-04 12:15:56 +02:00
Zuul
75ce4eb4ad Merge "[Stateless SG] Add IPv6 and DHCP related tests" 2023-06-29 21:56:48 +00:00
Zuul
2d9bd7002f Merge "gate: bump ovn to the latest LTS release (22.03)" 2023-06-29 21:56:46 +00:00
Slawek Kaplonski
2d6c029929 Add neutron-tempest-plugin-linuxbridge job to the experimental queue
It was agreed on the Neutron CI meeting [1] that we will remove
this job from check and gate queues and add it to the experimental
queue. It is also added to the periodic queue in Neutron with [2].

Linuxbridge agent is marked as experimental since at least one cycle
already and this scenario job is getting less and less stable now so
it's probably time to move it out from our gate.

[1] https://meetings.opendev.org/meetings/neutron_ci/2023/neutron_ci.2023-06-27-15.00.log.html#l-127
[2] https://review.opendev.org/c/openstack/neutron/+/887158

Change-Id: If4233a01575dfc9ffc84295f032ed19e32c38a7b
2023-06-28 13:01:52 +02:00
Takashi Kajinami
da45177a2f Replace deprecated tenant_id property
The tenant_id property of RestClient in tempest was deprecated in
25.0.0. This replaces the deprecated property by the new project_id
property to avoid the following warning.

WARNING tempest.lib.common.rest_client [-] Deprecated: "tenant_id"
property is deprecated for removal, use "project_id" instead

Depends-on: https://review.opendev.org/c/openstack/tempest/+/707938
Change-Id: Ie3c32f9f2278b78603a4214c5717df8691ba490a
2023-06-19 08:09:20 +09:00