Commit Graph

105 Commits

Author SHA1 Message Date
Zuul 56d86e29bd Merge "Adopt for usage openstack_resources role" 2024-02-03 09:30:13 +00:00
Dmitriy Rabotyagov f25f81ebd1 Adopt for usage openstack_resources role
With efforts to create a resources in same, unified way,
we convert tempest role to use openstack_resources
for creating and managing openstack resources, like projects, flavors,
networks, images, etc. This should reduce maintenance costs
in case of futher collection updates and unify approach.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/878794
Change-Id: I8d7609fac96935ed51e92ebf58515e8eb0c44d5c
2024-02-02 22:28:13 +00:00
Zuul 184595e6cc Merge "Add blazar tempest support" 2024-01-11 04:54:21 +00:00
Dmitriy Rabotyagov d5a2c6e5a4 Add blazar tempest support
Change-Id: I4666a7dfc12aed265b646ea093fe39d6cc41a77c
2024-01-05 18:08:48 +00:00
likui 843f1cabd7 Drop deprecated project
panko was deprecated.

[0] https://review.opendev.org/c/openstack/governance/+/850005

Change-Id: I3ca2a489acac075f1b3a032163a27f42279f7733
2023-10-13 14:25:11 +08:00
Jonathan Rosser 00965ed13e Allow tempest_tempest_conf_overrides to be defined in many variables
Combine all variables starting with tempest_tempest_conf_overrides
to give a complete set of configuration to tempest when multiple
different test scenarios are enabled at the same time.

Change-Id: Iba5e061d1682d16c0516249f628f948a20580df8
2023-09-29 08:59:25 +00:00
Jonathan Rosser 242203bafa Allow include/exclude lists to be defined in many variables
Previously the os_tempest role had a single variable for
defining the include and exclude lists in order to select the
tempest tests to run.

This works for simple scenarios, where a single service
is deployed and the tests for that service are enabled through
the necessary variables set in user_variables. This approach is
used in openstack-ansible CI / AIO.

More complicated scenarios such as magnum+barbican+octavia, would
create several user_variables files each with conflicting settings
for the test settings. It is possible in this scenario for there to
be no valid tempest tests to run and tempest to fail immediately.

This patch adds the possibility to have many variables defining
the include/exclude lists which have names using a common prefix.
Any variable names matching the prefix are gathered and combined
with the original role default to make extending the test lists
easy to do in an incremental/distibuted way in the ansible variables
instead of having to maintain a single point defining all necessary
tests.

Change-Id: Ie3a9a7be849171af042567ba8a152e5df5d2cb53
2023-08-17 11:20:14 +00:00
Dmitriy Rabotyagov 687dcb30bf Fix linters and metadata
With update of ansible-lint to version >=6.0.0 a lot of new
linters were added, that enabled by default. In order to comply
with linter rules we're applying changes to the role.

With that we also update metdata to reflect current state.

Change-Id: Ifcb6ebfa971e324e447509e50cc7294bddd6a4a0
2023-07-14 20:37:15 +02:00
Arx Cruz 574f4acaf2 Temporarily re-add redhat-8.yml to vars
Although tripleo deprecate master, we still use os_tempest in wallaby
and train lines, and due a design error, we rely on os_tempest master
branch instead of use the appropriate branch, and the removal of
redhat-8.yml file broken these jobs.
We will in the future, use the proper os_tempest branch on these jobs.

Change-Id: Ic2c547d730e900c883685050366e8e307869e6d1
2023-05-24 12:46:02 +02:00
Dmitriy Rabotyagov 2441b55aac Clean up old rhel variable files
We don't support neither redhat 7 nor redhat 8 as of today, so we can
safely clean-up variable files for these distros.

Change-Id: I1225fd75d25c3a06353b46ddb61f989b73a757b6
2023-05-22 17:32:54 +02:00
Chandan Kumar d8ddd9fcee Add support for whitebox-neutron-tempest-plugin
Signed-off-by: Chandan Kumar <chkumar@redhat.com>
Change-Id: Id7fb7f53c2b099ee6f671350cf3cc896be5bf758
2023-01-19 10:22:04 +05:30
Jonathan Rosser cdb6abe93a Update cirros image to 0.6.1
Change-Id: I9cd4d85b196ce4d4310e61f5fb46981a32365cc3
2022-12-01 16:55:54 +00:00
Dmitriy Rabotyagov c43fc6c9c8 Replace git-core with git for debian
With ansible-core 2.13 it tries to substitude package resolution in apt
module.
However git-core is used in Debian as transitional name, but ansible
tries to select it and provide version, which is not correct behaviour.
But since git-core is not really valid anyway, we just replace it
to workaround ansible's imperfectness.

Change-Id: I862e1ea4cef840d1903962181bfc8ec3c5a1e903
2022-10-05 11:06:04 +02:00
Damian Dabrowski 021f18905f Make _tempest_plugins a list of dicts.
For some reason we define a list inside a _tempest_plugins dict.

It should be simplified to the list of dicts.

Change-Id: I891f77e3e22c962615697504d0870e25017511d7
2022-07-12 10:37:47 +02:00
Pranali Deore c94c802b2d Add the glance-tempest-plugin
Adding the glance-tempest-plugin to be used to test in os_glance
role.

Change-Id: Icdb9b34e8b85712824bb53466c536aba6d5ccd86
2022-03-03 15:51:26 +05:30
Dmitriy Rabotyagov 6f75a07982 Define variables for tempest plugins
This allow us to define and later bump specific version of tempest
plugins for stable branches and override source of the repositories for
deployers.

Change-Id: I83fa8c729967046829db638500b65faa7f55a50d
2022-01-25 18:10:46 +00:00
Dmitriy Rabotyagov 1900f0ff6b Deprecate congress and lxd tempest plugins
Congress is no longer maintained and no reason to carry on it's
tempest testing.

LXD driver is also not supported by nova and project has been deprecated
back in Train.

Tempest tests for neutron vpnaas and bgpvpn were moved to neutron tempest
plugin with [1] and [2]

[1] 4077093c10
[2] 44866dadba

Change-Id: I161167b995a4cd3ee532719fa5fcf1f1a6cacb73
2022-01-24 16:08:46 +00:00
Chandan Kumar (raukadah) 05167e8de0 Added var file for EL9
We cannot merge the redhat-7 and redhat-8 var file in a single
file as package names are different and if we include more
conditionals, it makes the files messy.

So adding a seperate var file for EL9.

Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
Change-Id: I2b5004bcf57b05fee16e10154355933cfeae3d44
2021-10-19 14:37:34 +05:30
Damian Dabrowski f866f7ffee Update cirros version to 0.5.2
Change-Id: I495a6fd763976776e3f9ee272289a29e18ae21e7
2021-09-01 15:52:15 +02:00
Zuul 3771143280 Merge "Install py3-dev when not building wheels" 2021-06-04 08:14:49 +00:00
Dmitriy Rabotyagov a12a662114 Install py3-dev when not building wheels
When we're in CI and not building wheels, we might appear missing
py3-dev inside utility container, which is required for netifaces. So we
add it as `tempest_devel_distro_packages` which will get package
installed on the required target.

Change-Id: Ie8e04a1635a32e368ec3906082f7773dcefd30d1
2021-06-02 10:59:31 +03:00
Dmitriy Rabotyagov 9b9d8ad489 Extend telemetry testing
Add gnocchi and panko to the available options for tempest testing.

Change-Id: I6a0e6fd644d6c9a0f829ed675a338a1a9e020e27
2021-04-19 18:13:36 +00:00
Dmitriy Rabotyagov 7cec1361a4 Add trove tempest support
Change-Id: Ic137659b550edf3513daefde09e8afe31242dfdd
2021-04-08 15:58:22 +00:00
Slawek Kaplonski c09cbbee66 Install nmap on the Redhat 8 and Debian
Nmap provides ncat tool which is required e.g. by
neutron_tempest_plugin.scenario.test_port_forwarding tests.

Closes-bug: #1918597
Change-Id: I2e5b677bedfbb33518b3b655a49eaffb065f0534
2021-03-17 10:57:33 +00:00
Artom Lifshitz 6e859e968e Add whitebox-tempest-plugin support
Add whitebox-tempest-plugin installation where available.

Change-Id: I3d994ec33678e61512d7e7480a829b816d6eecd7
2021-03-02 10:52:42 -05:00
Alfredo Moralejo a0805756b6 Remove horizon tempest plugin installation for EL8 distro
horizon-tempest-plugin has been retired upstream in Wallaby cycle [1]
and it's bein removed from RDO. The tempest tests for horizon have been
integrated in the main tempest repo.

[1] https://review.opendev.org/c/openstack/tempest-horizon/+/771761

Change-Id: I612b86a5acce7a67834b1c751e380900b0e92b39
2021-02-09 10:13:11 +01:00
Zuul 827a874001 Merge "Add support for senlin tempest plugin" 2021-01-18 23:19:19 +00:00
Arx Cruz ded42b9f3e Re-adding redhat-7.yml distro var
Some periodic jobs on tripleo that still run centos-7 jobs for other
branches require this variable.
This file was removed by 5a46aff857
Also adding a centos-7 standalone job for coverage.

Change-Id: I85b2841591990fc91ec665b8f77e4ceb50766c6c
Closes-Bug: #1900443
2020-10-23 11:43:26 +02:00
Dmitriy Rabotyagov 5a46aff857 Remove unsupported OS
Do some role cleanup to path for not supported OS,
like gentoo or suse.
This includes bionic distro jobs, since this path is not supported
for bionic in Victoria

Fix ansible linter errors as a result of linter update.

Change-Id: I619dc6da251bd9d6f9d117e7b0cdedc2e59bf581
2020-10-16 19:44:31 +00:00
Jonathan Rosser 8607e3b85c Add support for senlin tempest plugin
There do not appear to be RDO packages for python(3)-senlin-tests-tempest
so we only add support for source based deployments.

Change-Id: Ie6e8f1dcc3bb8460edd0fb22edc3d7ef14290574
2020-09-24 11:49:49 +00:00
Dmitriy Rabotyagov 955a982557 Install py3 distro packages
Fix naming of the distro packages that needs to be installed
from py2 to py3 ones for debian family OS.

Change-Id: I95769a8da54e1f7d577d55a294fbceff4cbe3329
2020-07-08 08:46:54 +03:00
gugug 0e6ed14a4f Remove the neutron-fwaas since it retired
Depends-On: I561504160e5548c54d1af31821c3366ab34cf0ec
Change-Id: Ibd8b8092fff1b63f897f7f5d00beee169f68e1af
2020-06-20 15:23:46 +00:00
Dmitriy Rabotyagov d866a8f6b9 Update used cirros image
As cirros 0.5.1 has been released, we should use it by default for
testing.

Change-Id: I17ec60bf5a8344a2b6442d1d2e49cf0204340c70
2020-04-06 14:47:50 +03:00
Dmitriy Rabotyagov 52ed63aa03 Add zun service to tempest
Add zun tempest plugin installation for source installs
to be able to provide integrated tests.

Change-Id: I920478f705e8821c8bdf18716d873a3618bcfb1d
2020-03-26 14:57:21 +02:00
Jonathan Rosser 61f3c98680 Always use virtualenv and pip to install tempest on Ubuntu
For ubuntu distro jobs there are no tempest plugins packages so drop the
'mixed setup' where tempest comes from a distro package and the plugins
come from pip, and then fail to install into the system python environment.

Change-Id: Ic146e011ec15889303061527e17cdc16ed914799
2020-01-30 10:35:26 +00:00
Zuul 2107505f27 Merge "Add murano service to tempest" 2019-10-24 22:43:50 +00:00
Dmitriy Rabotyagov de8b66bb2f Set cirros to be downloaded via https
Change-Id: I36fe5b42a4eeb3fb522dbe2f2ca3b2a0da58496a
2019-10-23 13:38:26 +03:00
Ralf Haferkamp 55a3481cf2 Fix distro install on openSUSE
With Train openSUSE is switching the openstack packages to use Python 3.
This means that we need to use the python3 variants of python-module
packages.

Also switch to stester as the test runner on opensuse.

Depends-On: https://review.opendev.org/683195
Change-Id: Iab011637b8c6954360d4204a05eae49ba3eaaeaf
2019-09-19 18:05:19 +02:00
Dmitriy Rabotyagov 3d81e70002 Add murano service to tempest
Add murano tempest plugin installation when murano available.

Change-Id: I6d1d2c42ac74f7e4a980f99e9311787d9f7108b7
2019-09-18 16:32:32 +03:00
Jonathan Rosser 465f5749b4 Allow venv python interpreter to be overridden
Also allow a default var to be specified per distro, maintaining
the current functionality for tripleo without requiring an override.

Change-Id: I99e0082a748d62ed129a860c6f16c523dec8d50e
2019-09-11 21:35:19 +01:00
Chandan Kumar (raukadah) 1a2358bb69 [RHEL8]Set venv_python_executable to python3
Since in RHEL-8, all stuff is tested using python3 but
in python_venv_build role venv_python_executable var defaults to
python2 leading to venv getting created to python2.

So setting the same distro specific var fixes the issue.

Change-Id: Iab4e9f9764c12ccf7536995920a21177aa1d6cda
Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
2019-09-06 19:15:47 +00:00
Zuul 58bcb3579b Merge "Add pip for debian mixed setup" 2019-08-30 21:35:00 +00:00
Arx Cruz 3508fade1f Fix typo in barbican package
Change-Id: I94f00262273aef83444f68784534eb5d054a61ca
2019-08-26 13:03:38 +02:00
Dmitriy Rabotyagov 5471034b8a Do not install default plugins for mixed installs
We set tempest_plugin_install_source to true for debian distro installs.
This var allows to install tempest plugins from source, since package is
missing most part of them. However we don't want tests to interfer,
so we're skipping installation of already existing plugins in distro
package.

Change-Id: Id6e38be48f082bfa6d75741ee6e0f9632142c960
2019-08-22 20:51:48 +03:00
Dmitriy Rabotyagov d2ea19f758 Add pip for debian mixed setup
Since tempest plugins for debian/ubuntu are installed from source,
we need to ensure that pip is present for tempest hosts.

Change-Id: I36078c6db6e9891bb840362fd711e2e509323caa
2019-08-22 15:49:20 +03:00
Zuul 3640f71679 Merge "Add mixed setup for debian based OS" 2019-08-13 17:47:53 +00:00
Dmitriy Rabotyagov e7e15eb164 Add mixed setup for debian based OS
Since debian/ubuntu do not provide packages for tempest plugins, we are using
mixed setup. We install tempest as a distro package, while installing
tempest plugins from source, but without venv (for system python).
That guarantees that we have all required plugins and do tests.
To accomplish that variable tempest_plugin_install_source was
introduced.

Change-Id: I198190d601cf8a922c3afaa69a3c0e42ab075735
2019-08-12 12:44:29 +03:00
Chandan Kumar (raukadah) b8937770a7 Fixed the package name of keystone tempest tests
In RHEL-8 the package name is python3-keystone-tests-tempest.

Change-Id: I807d5acf7e0c0a46d2513bbb4f52e65842a9af16
Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
2019-08-12 09:53:16 +05:30
Arx Cruz 5825392971 Update stestr_executable variable for RHEL-8
RHEL-8 comes only with python3 and so, the executable used by stestr is
called stestr-3.

Change-Id: I4dc81706fd1ba39097ec3a70648897a32083f173
2019-07-23 10:30:11 +02:00
Zuul 435f54fa70 Merge "Update distro package names for openSUSE Leap 15.1" 2019-07-09 21:28:19 +00:00