42 Commits

Author SHA1 Message Date
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
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
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
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
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
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
22258f28e0 Merge "Remove x/ranger-tempest-plugin from BLACKLIST" 2019-08-15 22:40:17 +00: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
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
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
Zuul
b3f8338289 Merge "Remove networking-ansible from tempest plugins list" 2019-07-09 16:12:54 +00:00
Zuul
a25ba46c64 Merge "Remove nova-lxd plugin from blacklist" 2019-07-09 16:11:36 +00:00
Masayuki Igawa
0187a6647a
Remove nova-lxd plugin from blacklist
This commit removes the nova-lxd plugin from the blacklist. The proposed
patch was already merged, so this plugin should pass the sanity job now.

Change-Id: I72eb62af993bc978127185a1aed0763af18ce9f3
2019-07-04 16:51:56 +09:00
Masayuki Igawa
012dc98fb2
Remove networking-ansible from tempest plugins list
This commit removes x/networking-ansible from the tempest plugins list.
The original patch[0] was abandoned because networking-ansible took a
different approach[1] for the testing. So, it's not a tempest plugin
anymore.

[0] https://review.opendev.org/#/c/634647/
[1] https://review.opendev.org/#/c/634918/

Change-Id: I554c438f27a7032f31e56eac2aac110e08bb3d7d
2019-07-04 16:20:15 +09:00
Masayuki Igawa
3f5748906b
Remove cyborg-tempest-plugin from BLACKLIST
This commit removes the cyborg-tempest-plugin entry from the BLACKLIST
since the patch was already merged and this plugin should pass the
sanity job now.

Change-Id: Ifec2e45761961bc4dfc3b5c11709c0ac9e81855f
2019-07-04 16:14:40 +09:00
Zuul
2df6114e44 Merge "Raise non 404 Error in generate-tempest-plugin-list.py" 2019-07-03 03:13:04 +00:00
Masayuki Igawa
2957b4020a
Raise non 404 Error in generate-tempest-plugin-list.py
This commit makes the tempest plugin function raise non 404 errors
when it catches them. Without doing that, we just ignore the errors.
However we shouldn't do that because it just causes another error when
the variable is used.

Change-Id: Ia82ef2aa9cb0959ccee1600feff297abb451176a
2019-06-24 15:22:13 +09:00
Masayuki Igawa
6617b834ff
Add project prefix to blacklist
This commit fixes to add prefixes to the blacklist. The blacklist was
moved to generate-tempest-plugins-list.py by the recent patch[0].
However, the blacklist was updated by the other patch[1] before that.
So, it should have been updated correctly when the conflict was
occurred.

[0] I707aba930037e86f5f94dac73da957f5afacf935
[1] Ieecb8989ff8959f1b2c0e5f2f6b8ea2c3ebbcaa9

Change-Id: I090dd235dd7911aa9bb0eb13d8e65b501dc206fe
2019-06-20 16:23:43 +09:00
Masayuki Igawa
ac8ae64d5b
Publish BLACKLIST on Tempest plugin registry page
This commit makes the BLACKLIST to be published on the Tempest plugin
registry page which we discussed at the PTG[0].

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

Change-Id: I707aba930037e86f5f94dac73da957f5afacf935
2019-06-13 11:57:09 +09:00
Masayuki Igawa
e36fe67e86
Publish non-openstack namespace tempest plugins
This commit changes to publish non-openstack namespace tempest plugins
to the tempest registry doc page. We missed some tempest plugins such as
airship's tempest-plugin because of the recent namespace change. And
also, this commit adds two projects[0] to .zuul.yaml because it had
been added already.

This commit republish them on the doc page, and add two projects to the
blacklist to pass the sanity tests.

Change-Id: Ieecb8989ff8959f1b2c0e5f2f6b8ea2c3ebbcaa9
2019-06-10 11:08:06 +09:00
caoyuan
349ba75410 Replace git.openstack.org URLs with opendev.org URLs
Thorough replacement of git.openstack.org and review.openstack.org URLs
with their opendev.org counterparts.

Change-Id: I88e894db7b854d32593c770f5aa9b8a91fad7866
2019-05-23 10:19:31 +00:00
Felipe Monteiro
ec4c668764 docs: Fix plugin registry generation failures
This patch set fixes plugin registry generation script which
is resulting in the documentation page ending up empty [0].

This is because the script `tools/generate-tempest-plugins-list.sh`
is using an old flag (`-A`).

This drops the `declare -A plugins` command because `plugins` isn't
used anywhere and also uses `decode('utf-8')` on the initial response
lookup for all the projects which is done already in the script
elsewhere [2].

[0] https://docs.openstack.org/tempest/latest/plugin-registry.html
[1] https://bash.cyberciti.biz/bash-reference-manual/Bash-Builtins.html#index-declare-132
[2] da8aec9aed/tools/generate-tempest-plugins-list.py (L67)

Change-Id: I70b59c869df06f35c0f7ca6d20e3584502cda8ef
2018-11-07 03:00:52 +00:00
Stephen Finucane
7f4a6211bf Mark raw strings as such
This is raising warnings now and will be an error in future versions of
Python 3.

Change-Id: I8827cb36ef2ef85e8f245a2a181fb23ee75bfd16
2018-07-06 14:01:28 +01:00
ghanshyam
95b68befc4 Skip puppet-* projects for plugin search
openstack/puppet-* projects can be skipped to
search for tempest plugin.

Change-Id: I8ca7bd944f250b168077ffc8c82b9bddb338eddb
2018-04-12 02:30:29 +00:00
mmkmmk57
7295698fde Fix verbose grammar
Fix verbose grammar about "import as."

Change-Id: If7841e177c47b00a52fd4638a21295e14ebc110f
2017-11-28 20:48:00 +00:00
Masayuki Igawa
3e1f330236
Fix import error "No module named six.moves" for plugin sanity job
This commit fixes the import error "No module named six.moves" without
using the module for the plugin sanity job. Because the job call the
script directly.

Change-Id: Id0fa1b15fe443d65a1b6ca008e490d0fa54d6b32
2017-07-04 13:19:06 +09:00
Jenkins
1b786f1c6d Merge "Fix no attribute 'urlopen' error in python3" 2017-06-29 01:20:04 +00:00
Masayuki Igawa
73c33455be Fix no attribute 'urlopen' error in python3
This commit fixes an error: "AttributeError: module 'urllib' has no
attribute 'urlopen'" with using six library. This is an incompatible
thing between python2 and python3.

Change-Id: I62ee7ee555708a2e948e6b812d996c3bb93cd6e8
2017-06-27 20:41:37 +00:00
Chandan Kumar
3c81b41d11 Fixed project lists for retrieving tempest plugins
As openstack/deb-, -specs and -ui project namespaces do not contain
tempest plugins. So, it is better to remove the above projects from
the list in which tempest plugin is searched.

Change-Id: Ie490073ea195a462cb7be0b88b6cb1b8a7b324b3
2017-06-15 11:33:55 +05:30
Jenkins
1f170f6a22 Merge "Use urllib2 instead of requests in tempest generate plugin list" 2017-06-15 05:51:17 +00:00
Chandan Kumar
1b1e6df9af Use urllib2 instead of requests in tempest generate plugin list
While using generate-tempest-plugins-list.py in tempest-plugin-sanity
CI jobs fails to run as it requires requests module to parse the git
url and is not install by default in CI job. If we are going to
install requests we need to use sudo for that which is not a
good idea, so it is better to move the script to urllib2.

Change-Id: Ifed51c67c03f993a4833413826ac15104db152fc
2017-06-13 15:42:22 +05:30
Chandan Kumar
0601be1bfd ported tools/*.py scripts to python3
Change-Id: Ib8dcc8b0c77515f8a302ed5bf03dc8283f36414b
2017-06-13 08:04:59 +05:30
Masayuki Igawa
134d9f748b
Introduce flake8-import-order
This commit introduces flake8-import-order to check import orders
automatically. We shouldn't do it manually.

Depends-On: Ia2140f5566ce169b076ffa5c9ebfbdbfc41e5bed
Change-Id: Iff75ebec42b295870edd1c04001adfb17460a682
2017-02-13 17:16:18 +09:00
Matthew Treinish
cc4ae4887e
Ignore deb-* packaging repos in the plugin list
This commit starts ignoring plugin hits from deb-* repos when generating
the plugin list for the plugin registry doc. These are just packaging
repos and not really relevant for a plugin list.

Change-Id: I5146936824c17476d4e7f3fab058c80fd932e512
2016-09-13 19:23:18 -04:00
Clint Adams
a413652c25 Prepare for dynamic generation of tempest plugin registry
This is based on the devstack plugin detection code, modified
to check setup.cfg for a tempest_plugins string.  It is to be
executed from a periodic proposal job, generating a list of
plugins in the same format.

Change-Id: I53d082319b6af6fb47083ea42c3ff6b109882e72
2016-03-28 20:11:23 -04:00