Commit Graph

315 Commits

Author SHA1 Message Date
elajkat 2bb8519187 Remove tap-as-a-service-tempest-plugin
tap-as-a-service-tempest-plugin tests were moved to
neutron-tempest-plugin when tap-as-a-service was
revived from x/, so this tempest plugin can be
removed from generate-tempest-plugins-list.py

Change-Id: I0a796b9bd5206092d5aee583db89c4227c626ff8
2023-10-26 15:42:05 +02:00
Ghanshyam Mann a10451524f Mark x/networking-fortinet tempest plugins inactive
No changes are merging in x/networking-fortinet tempest
plugins for past 3 years so marking it inactive

- https://review.opendev.org/q/project:x%252Fnetworking-fortinet

Change-Id: I1eb9d442bd5c0644e02491b838c75fda80234434
2023-08-06 12:19:58 -07:00
Ghanshyam Mann 518e426ab4 Separate the extra tests to run in a separate job
Recently we are seeing a lot of job timeout(bug#2004780)
and we see many tests taking time and also number of tests
increasing over time. This is to prepare the list of extra tests
(here extra tests means the tests which are covered by the other
API or scenario tests) which we do not need to run in every
integrated jobs. Instead, we can run them in a separete job(s).

Currently I am adding admin (except keystone) and negative tests
in the 'extra tests' list but we can add more tests here which
we think are covered in some other tests.

As negative tests are important for interop, adding those extra
tests coverage for stable branch job also but running them in
periodic run only.

Related-Bug: #2004780
Change-Id: Id02221df0d6180519751c63e890851bd59fdafa0
2023-02-11 19:05:34 +00:00
Gorka Eguileor 5e6fc7ab75 Add LUKS v2 tests
We currently have cryptsetup and LUKS v1 tests, but we are missing LUKS
v2 tests.

Code paths for LUKS v1 and LUKS v2 are different, because Nova uses
libvirt to decode LUKS v1 volumes but os-brick to decode LUKS v2
volumes.

This means that not only the attach process is different, but also some
features such as extend volume, so one of them may work while the other
doesn't.

This patch adds LUKS v2 encryption tests for all backends except for RBD
volumes, because they are not connected to the host but directly through
libvirt, so they can only use LUKS v1.

Depends-On: Ia1411f11ec4bf44af6a42d5f96c8a0903846ed66
Depends-On: I351f1a7769c9f915e4cd280f05a8b8b87f40df84
Related-Bug: #1967157
Change-Id: I40c518c3a3e760867efd6b6338fa9c16945b28c4
2022-06-29 22:42:22 +00:00
songwenping fe0e0a679d Fix: change values to items as keys and values are all used
Change-Id: Iaecb5995f2525aa7acc17b769646c2b878a3c58b
2022-04-19 11:21:10 +08:00
Ghanshyam Mann a25e9baed1 Fix tempest plugins sanity jobs by exclude failing plugins
Below plugins are failing with error:

File "/home/zuul/src/opendev.org/openstack/tempest/.venv/lib/python3.8/site-packages/psycopg2/__init__.py", line 51, in <module>
2021-09-08 01:14:10.471582 | ubuntu-focal |     from psycopg2._psycopg import (                     # noqa
2021-09-08 01:14:10.471614 | ubuntu-focal | ImportError: libpq.so.5: cannot open shared object file: No such file or directory

https://zuul.opendev.org/t/openstack/build/b61a48196dfa476d83645aea4853e544/log/job-output.txt#271722

Failed Plugins: x/networking-l2gw-tempest-plugin,
x/novajoin-tempest-plugin, x/ranger-tempest-plugin,
x/tap-as-a-service-tempest-plugin, x/trio2o,

Change-Id: I485b180353c071a4b72865c87ecfd5ddd0119a9d
2021-09-08 22:47:23 -05:00
Ghanshyam Mann 61d6c1195c Blacklist failing x/vmware-nsx-tempest-plugin
Tempest sanity job is 100% failing on x/vmware-nsx-tempest-plugin.
Adding this plugin until it is fixed.

- https://zuul.opendev.org/t/openstack/build/45f6c8d3c62d4387a70b7b471ec687c8
- https://zuul.opendev.org/t/openstack/builds?job_name=tempest-tox-plugin-sanity-check

Change-Id: I9c23582e5930156db21b609bc9031ee47e9d6326
2021-08-27 09:17:11 -05:00
Zuul 2d67c183ce Merge "Updating NON_ACTIVE_LIST" 2021-08-23 20:28:54 +00:00
Anand Bhat f36272029e Updating NON_ACTIVE_LIST
*vmware-nsx-tempest-plugin,networking-l2gw-tempest-plugin
 x/tap-as-a-service are removed from the list

*Updating comments for required projects

Change-Id: I8bec628a07a4e555a95d542c87fa76f6c464f1d9
2021-08-16 18:48:35 +05:30
Radosław Piliszek 151cd7b9ac Move verify-ipv6-only-deployments
from Tempest to DevStack as it tests DevStack side of things and
is useful for projects not using Tempest.

This is part 2 of 2.
The 1st part is DevStack-side, in Depends-On.

The script is left calling out to devstack because legacy (dsvm)
jobs rely on its presence.

Depends-On: Ie166730843f874b9c99e37244e460d7ad33b7eeb
Change-Id: I6fa17ae413f106453303c4882925573bd8e05029
2021-06-10 07:44:44 +00:00
songwenping d1f79f4bd6 Remove usage of six
Remove six-library, replace the following items with Python 3 style
code:
- six.moves
- six.iteritems

Remove six-library in requirement.txt

Change-Id: Ic45dff7406937c9ee6d7bd2286107bcd33e5a16d
2021-04-15 09:35:58 +00:00
songwenping 0fa2069510 Remove usage of six
Remove six-library Replace the following items with Python 3 style code.
- six.StringIO

Change-Id: Ia8a28940edc9ca1b26ca0ef5112a44fe5fc6258d
2021-02-20 00:44:49 +00:00
Zuul 982d364caa Merge "Remove usage of six" 2021-02-19 20:02:01 +00:00
songwenping 99d6e00982 Remove usage of six
Remove six-library Replace the following items with Python 3 style code.
- six.moves

Change-Id: Ied212eb0947c7441cc51193399185b4fb0f87271
2021-02-18 10:43:57 +08:00
Ghanshyam Mann 5b36c36896 Fix race condition for image test
If first image is not captured in saving state,
then we should skip the test
- test_create_second_image_when_first_image_is_being_saved

Test is for creating the another image is first one is in
saving state and if image creation operation is fast and it
gets created before second API request then this test will
fail on its assert.

To handle the test scope and this race condition, we need to
assert on second operation if  image is in saving state.This
can be done via capturing the timeout exception from first image
creation and waiting for saving state.

Change-Id: Id59f7ebb223f968109917182e29267faa808a072
Closes-Bug: #1881592
2021-02-10 14:28:45 +00:00
Zuul 4f48261f1c Merge "Remove tempest/manager.py after 4 year deprecation" 2021-02-10 10:24:02 +00:00
Martin Kopec 743d4953f0 Remove tempest/manager.py after 4 year deprecation
tempest/manager.py has been deprecated for over 4 years already,
it's time to remove it.

Implements: blueprint tempest-scenario-manager-stable
Change-Id: Iea813d478a93a1638be597af48929cd50a5e6366
2021-01-21 00:24:46 +00:00
Martin Kopec dc84423b72 Inclusive jargon
Following stestr's example where arguments such as --blacklist-file,
--black-regex and --whitelist-file are deprecated since its
3.1.0 release, let's do the change here as well in order to
get tempest consumers some time for the transition.

This change deprecates the following arguments and replaces them
by new ones which are functionally equivavelnt:
* --black-regex is replaced by --exclude-regex
* --blacklist-file is replaced by --exclude-list
* --whitelist-file is replaced by --include-list

For now, Tempest will accept both (new and old) arguments to make
the transition smoother for all consumers.

The patch also bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I3e09b31f63d2cd7ea41c48e62432bd3bc54fcf44
2021-01-20 08:40:57 +00:00
Ghanshyam Mann 721aeca8ef Unskip Device detach compute tests on Focal
During migrating the testing to Ubutnu Focal,
we skipped few device detach tests due to bug#1882521
- https://review.opendev.org/#/c/734700/8

Now Nova bug#1882521 is fixed so let's unskip those tests.

Change-Id: I9e48d72fc1192a775671ca339e0339e8ec1afa17
Related-Bug: #1882521
Related-Bug: #1894804
2020-11-01 18:47:32 +00:00
Ghanshyam Mann 1ca760cd29 Migrate tempest jobs to focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Most of the Tempest jobs will be migrate automatically once devstack
base job start running on Focal(Depends-On).

Few job like tempest-full-multinode and plugin sanity job needs to override
the nodeset. multinode job needs to run on Bionic till stable/ussuri and
on focal from master(victoria) onwards.

stable jobs testing stable branch needs to keep running on their supported
distro version which is bionic from stein till ussuri.

Keep 'tempest-integrated-compute' to run on bionic until
https://bugs.launchpad.net/qemu/+bug/1894804 is fixed.

Depends-On: https://review.opendev.org/#/c/731207/

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.html

Change-Id: I51fbd32a60c931d404e59e975049f7b01ed900dc
2020-09-17 17:34:16 -05:00
Zuul bd196b2016 Merge "Use the networking-l2gw project new location" 2020-09-03 22:32:20 +00:00
Ghanshyam Mann ff145e61ce Use the networking-l2gw project new location
networking-l2gw and networking-l2gw-tempest-plugin are
imported to new location now and supposed to be retired from
openstack/namespace[1].

-https://review.opendev.org/#/c/744110/

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-June/015647.html

Change-Id: If00bffe2b6d303686e15060f6b03400ad5a3089f
2020-08-27 22:25:41 +00:00
Martin Kopec 4c709ecaaf Use python3 venv instead of virtualenv
tempest-tox-plugin-sanity-check job is failing due to missing virtualenv.
As the job is running on master only and we don't support python2 anymore,
this patch edits the tempest-plugin-sanity.sh script so that it uses
python3 venv module to create a venv.

Change-Id: I3f711ec97ad9006c715bb45db9d8dd9d951bb6a1
2020-06-19 21:57:40 +00:00
Piotr Kopec fc7dd52a79 [compute] Blacklist test_create_second_image due to race
The test_create_second_image_when_first_image_is_being_saved
introduces race and might if the first image was created quickly.
Blacklisting this for now untli we decide what to do with this next.

Change-Id: I15df606fd163c75bf265d406771e4e946a1d38b9
Closes-Bug: #1881592
2020-06-03 16:00:07 +02:00
Ghanshyam Mann da3bb61f1f Add index page for plugins documents
Now we have more documents for plugins on stable release,
support and their testing policy. Let's prepare a
index page for it will be easy for plugins maintainer.

Also renaming the stable support policy section to have a clear
name.

Adding redirect links for moved documents.

Change-Id: I17a9a6e0e88605a0ee5047678d6ed168c31396ec
2020-05-05 02:12:05 +00:00
Zuul ba95c36a2d Merge "Integrated gate storage/swift: blacklist more tests" 2020-05-01 00:27:42 +00:00
Andreas Jaeger 99b085bdb9 Set TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is deprecatedi[1], set the newer
TOX_CONSTRAINTS_FILE as well when interacting with other repos for the
transition.

Update internal use but not the tox.ini file, since users calling it
might use the old variable.

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file

Change-Id: Iea09402cf918a6978120a341950643185c94ec85
2020-04-22 15:01:21 +02:00
Luigi Toscano abc06c36e8 Integrated gate storage/swift: blacklist more tests
Add all the scenario network tests which mainly involves network
and compute.
Also, fix an incorrect entry which most likely has no matches
(test_network_v6.py test_security_groups_basic_ops.py are different
files at the same level).

Change-Id: I936f263b4c1d96689d276ecfcf25ef1560d66ced
2020-04-19 00:57:38 +02:00
Masayuki Igawa 14d66b6a26
Add glare and taas to blacklist
This commit adds x/glare and x/tap-as-a-service to the BLACKLIST to
avoid sanity-job failures like following.

 Failed Plugins: x/glare, x/tap-as-a-service,
 + [[ -n x/glare, x/tap-as-a-service,  ]]
 + exit 1

It looks the root cause is related to pg_config installation but not
sure. So, this commit just blacklists them as a workaround.

 Error: pg_config executable not found.

Change-Id: I03c6f01593b8e414b5e111d0e0c971ae156da715
2020-04-13 09:32:11 +09:00
Martin Kopec e743e5d394 Blacklist x/kingbird project from sanity-check
x/kingbird doens't seem to be compatible with tempest anymore
which is breaking our tempest-tox-plugin-sanity-check gate job.

Change-Id: Icdaff49bbc2ba0e59cd528d55cad6c35014b7ad0
2020-03-30 13:50:15 +00:00
Slawek Kaplonski 3532444045 Blacklist compute.volumes and compute.images API tests
Those tests are related to Nova-Cinder and Nova-Glance interactions
and there is no need to run them on e.g. Neutron gate.
So this patch adds both groups of API tests to be blacklisted in
integrated networking template.

Change-Id: I500b4514f64c89e55d946b5958098511318ea358
2020-01-09 20:51:42 +00:00
Sphicas, Phil (ps3910) 52d7083f76 tempest-plugin-sanity: respect upper-constraints
tempest-tox-plugin-sanity-check zuul gates are currently failing for
plugins that use psycopg2, since the release of psycopg2 2.8.4. Global
upper constraints have the version pinned to 2.8.3.

This change updates the sanity check to use the global constraints.

Change-Id: I8bacf2d23a005e43c79d93086559b6f8462fc1bf
2019-10-22 14:29:52 +00:00
Masayuki Igawa 6fca957b09
Remove barbican-tempest-plugin from blacklist
This commit removes barbican-tempest-plugin from the blacklist. The
patch[1] got already merged. The plugin should work for the sanity now.

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

Change-Id: I34d119c58afa6b3c728d1a540b4ea1df27d9c4d0
2019-09-24 16:53:32 +09:00
Masayuki Igawa 8913b1db63
Add group-based-policy to blacklist
This commit adds x/group-based-policy plugin to the blacklist. It looks
this plugin doesn't support python3 yet.

Change-Id: I2f97f2245434d21b83c790efd37a7092ef1bfeb2
2019-08-29 11:21:28 +09:00
Zuul ce682d0312 Merge "Fix Tempest Plugin Registry page for plugins url" 2019-08-16 19:12:06 +00:00
Zuul 22258f28e0 Merge "Remove x/ranger-tempest-plugin from BLACKLIST" 2019-08-15 22:40:17 +00:00
Zuul b48cf5dea5 Merge "Retry http requests to generate plugins list" 2019-08-15 09:23:03 +00:00
saswati 61f03b7fed Fix Tempest Plugin Registry page for plugins url
There is extra 'openstack/' is added in each plugin url, for example:
- https://opendev.org/openstack/openstack/barbican-tempest-plugin
- https://opendev.org/openstack/x/trio2o

https://docs.openstack.org/tempest/latest/plugin-registry.html

Change-Id: Idc19bedeb171a91079008e79267304158504d932
2019-08-15 08:48:38 +08:00
Masayuki Igawa 411f4bbc5c
Retry http requests to generate plugins list
This commit retries http requests to generate a plugins list. We often
see internal server errors(500) in the gate. It makes sanity jobs fail.
So, it would be better to retry internally instead of 'recheck'. To
accomplish it, this uses urllib3 module.
NOTE: The default total number of retries[0] is 10. It should be enough
for us.

[0] https://urllib3.readthedocs.io/en/latest/reference/urllib3.util.html#urllib3.util.retry.Retry

Change-Id: Id3da3e2895fc2324d5a2db91f82b12ec5bb610f8
2019-08-08 18:24:40 +09:00
Masayuki Igawa fdd964494a
Make bashate E005,E042 error and ignore E006
This commit makes two bashate rules E005 and E042 treat as error and
ignores E006. It is difficult to keep E006 rule because bash scripts
tend to be long naturally. Both E005 and E042 are good to be errors
since it should be safer.

These additions can be seen in devstack[0] too.

E005: file does not begin with #! or have a .sh prefix
E006: check for lines longer than 79 columns
E042: local declaration hides errors

[0] 0fc6b2c5a8/tox.ini (L35)

Change-Id: I56c017569aa8660648764502cce5adfe2e946a58
2019-08-02 14:29:45 +09:00
Zuul 236a14bf3c Merge "Introduce bashate" 2019-08-02 02:53:28 +00:00
Masayuki Igawa be05dfab76 Remove x/ranger-tempest-plugin from BLACKLIST
This commit removes x/ranger-tempest-plugin from BLACKLIST. The patch[0]
is trying to support the tempest-sanity job. So, when the patch is
merged, we can remove it from BLACKLIST.

[0] https://review.opendev.org/#/c/672585/

Change-Id: Ia7f0bdad9f854c0f6724537e1ca0234f2952aca8
Depends-On: https://review.opendev.org/672585/
2019-07-31 22:14:35 +00:00
Masayuki Igawa de1153b361
Introduce bashate
This commit introduces bashate[0] which is a code style checker for bash
scripts. We already have some bash scripts in Tempest repo. So, it might
be good to check the style automatically.

Some scripts under the tools directory are also fixed due to the bashate
violation.

Change-Id: I07820f10387552f93a9d8891b58a8c7fcdb83046
2019-07-30 18:02:07 +09:00
Ghanshyam a0b8ca43e4 Setup framework for IPv6-only deployment verification
Devstack IPv6 base job 'devstack-IPv6' setup the IPv6 setting
to deploy the services to listen on IPv6 address.

Tempest 'devstack-tempest-ipv6' job derived from 'devstack-IPv6'
job adds the playbooks to run the tests.

As part of Train community goal 'Support IPv6-Only Deployments',
we will expand the 'devstack-tempest-ipv6' job to do
IPv6-only deployments verification.

This commit define the new roles of 'ipv6-only-deployments-verification'
which will be invoked as part of run phase of 'devstack-tempest-ipv6' job.
This role will do IPv6-only setting and deployments verification via
tools/verify-ipv6-only-deployement.sh

IPv6 verification script can be extended further to perform more checks
and via project specific test case. Those tests will run as part of project
specific child jobs.

The 'devstack-tempest-ipv6' job will be used as parent for project specific
IPv6-only job. Those child job can extend the project specific IPv6 verification
by defining new playebook for post-run. That way the base verification
done in 'devstack-tempest-ipv6' will still run in addition to project specific
verificaiton and tests run.

Verification structure will be:
- 'devstack-IPv6' deploy the service on IPv6
- 'devstack-tempest-ipv6' run will verify the IPv6-only setting and listen address
- Child jobs derived from 'devstack-tempest-ipv6' will run the IPv6 related test case or
  any further IPv6 deployment verification.

This commit also adds the new job 'tempest-ipv6-only' which will run smoke
and ipv6 related tests present in Tempest. This job will be used to run
on 6 services (Nova, Neutron, Cinder, Keystone, Glance, Swift) deployed
by devstack.

Story: #2005477
Task: #35923

Change-Id: Ie1e5e5e02ee45ab7a4aae0f35bdb42afc2c3fe2e
2019-07-29 07:37:33 +00:00
Zuul e53d6b9800 Merge "Add ranger-tempest-plugin to blacklist" 2019-07-19 03:59:18 +00:00
Masayuki Igawa 4f87f6bd2e
Add ranger-tempest-plugin to blacklist
This commit adds ranger-tempest-plugin to the blacklist. The plugin
looks like very new and it looks it doesn't work correctly yet. So, it
might be better to skip to sanity for the plugin now.

Change-Id: I6d5d647d92916e5b62e8c67094d04f028e25ee67
2019-07-17 11:58:24 +09:00
Ghanshyam 95358523e4 Define the Integrated-gate-object-storage gate template
tempest-full job run all services API and scenario tests (non slow)
and this job is part of Integrated-gate gate template which run on
multiple services (nova, neutron, cinder, glance, placement) check
and gate pipeline.

But there are many unrelated tests run on each project gate. For example,
neutron gate run cinder only tests and fail due to cinder bugs. There is
no point of breaking the neutron gate due to cinder only test failure and
slow down the neutron development phase.

This is what we dicussed in Train PTG in denver to improve the integrated
gate[1] and came up with idea of split the integated-gate template into
much logical way so that only dependent services tests run on their gate.

One way was to move the service only tests to service tempest plugin side
but Tempest is used by interop as well as on production cloud testing so
moving the test is not good idea.

This commit propose the idea of defining the 'Integrated-gate-object-storage'
gate template for swift gate which will run only Swift, Cinder and glance tests.

ML discussion: http://lists.openstack.org/pipermail/openstack-discuss/2019-May/005871.html

Next step will be to replace the Integrated-gate-py3 template with new
Integrated-gate-object-storage template on swift gate.

[1] https://etherpad.openstack.org/p/qa-train-ptg

Change-Id: I70851d41174462b83cc8c525cecdb1b3d65e4ec7
2019-07-16 04:37:49 +00:00
Ghanshyam ee7fd1f7e9 Define the Integrated-gate-compute gate template
tempest-full job run all services API and scenario tests (non slow)
and this job is part of Integrated-gate gate template which run on
multiple services (nova, neutron, cinder, glance, placement) check
and gate pipeline.

But there are many unrelated tests run on each project gate. For example,
neutron gate run cinder only tests and fail due to cinder bugs. There is
no point of breaking the neutron gate due to cinder only test failure and
slow down the neutron development phase.

This is what we dicussed in Train PTG in denver to improve the integrated
gate[1] and came up with idea of split the integated-gate template into
much logical way so that only dependent services tests run on their gate.

One way was to move the service only tests to service tempest plugin side
but Tempest is used by interop as well as on production cloud testing so
moving the test is not good idea.

This commit propose the idea of defining the 'Integrated-gate-compute'
gate template for nova gate which will run only nova, neutron, cinder
and glance tests.

ML discussion: http://lists.openstack.org/pipermail/openstack-discuss/2019-May/005871.html

Next step will be to replace the Integrated-gate-py3 template with new
Integrated-gate-compute template on nova gate.

It will also help to disable the non-nova related serviecs and tests which
cannot be disabled from tempest-full job.

[1] https://etherpad.openstack.org/p/qa-train-ptg

Change-Id: I807d4cac6214395df292a6955686ea44677c3481
2019-07-16 04:37:34 +00:00
Ghanshyam 31609dc1da Define the Integrated-gate-placement gate template
tempest-full job run all services API and scenario tests (non slow)
and this job is part of Integrated-gate gate template which run on
multiple services (nova, neutron, cinder, glance, placement) check
and gate pipeline.

But there are many unrelated tests run on each project gate. For example,
neutron gate run cinder only tests and fail due to cinder bugs. There is
no point of breaking the neutron gate due to cinder only test failure and
slow down the neutron development phase.

This is what we dicussed in Train PTG in denver to improve the integrated
gate[1] and came up with idea of split the integated-gate template into
much logical way so that only dependent services tests run on their gate.

One way was to move the service only tests to service tempest plugin side
but Tempest is used by interop as well as on production cloud testing so
moving the test is not good idea.

This commit propose the idea of defining the 'Integrated-gate-placement'
gate template for placement gate which will run only nova and neutron tests.

ML discussion: http://lists.openstack.org/pipermail/openstack-discuss/2019-May/005871.html

Next step will be to replace the Integrated-gate-py3 template with new
Integrated-gate-placement template on placement gate.

[1] https://etherpad.openstack.org/p/qa-train-ptg

Change-Id: I200197e2fb57879aaeb382266d6309f0d1137b0c
2019-07-16 04:37:16 +00:00
Zuul aa30a65c9e Merge "Define the Integrated-gate-storage gate template" 2019-07-12 04:14:04 +00:00