Commit Graph

97 Commits

Author SHA1 Message Date
Takashi Kajinami c5ef0113df Remove six
This plugin no longer supports python 2 thus usage of six is no longer
needed.

Change-Id: Id087aeab1c3e5baf540f99ed843e4c3cfc763006
2024-02-13 23:20:04 +00:00
Takashi Kajinami 63064a5b47 Update stable branch testing
Remove tests for unmaintained branches and add a new test for 2023.2
release.

Change-Id: I1e4593eadd9545ac1f3e0b1a272a9ac24516499b
2024-02-08 23:04:37 +09:00
wangjiaqi07 9dd53ae3f9 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py

Change-Id: I4e5de13060670efa0268856334508b2348b25a64
2023-08-08 15:40:23 +08:00
Ghanshyam Mann 2758d56872 Add stable/2023.1 jobs on master gate
As 2023.1 is released, we should add its job on master
gate to keep branchless tempest plugins compatible
to stable branch.

Ref: Tempest plugins guide for stable branch testing:
- https://docs.openstack.org/tempest/latest/stable_branch_testing_policy.html

Change-Id: I5b43a1a3061367a2d49b2d8dc10a06da6742bdaf
2023-06-09 05:07:43 +00:00
Ghanshyam Mann 190a7c165e Remove stable/wallaby job from master gate
stable/wallaby is in EM state. As Tempest and
plugins masters does not support EM stable branches,
QA team is pinning tempest in devstack stable/wallaby
testing[1]. With that we do not need to test the
stable/wallaby jobs on master gate.

[1] https://review.opendev.org/c/openstack/devstack/+/871782

Change-Id: I3979f6e275f7b189546f4cc02e7db68238d77721
2023-01-27 08:10:26 +00:00
Pierre Riteau b04a4d07ea Wait longer for lease deletion to complete
When testing with Ubuntu Jammy, this test is consistently failing. Wait
longer for Blazar to complete lease deletion, since server deletion is
only the first part of it.

Change-Id: Ibd48ad420c3f4de43950c15769c7701a7eb49222
2022-11-17 15:23:21 +01:00
Ghanshyam Mann 5334331b20 Add stable/zed jobs on master gate
As zed is released, we should add its job on master
gate to keep branchless tempest plugins compatible
to stable branch.

Ref: Tempest plugins guide for stable branch testing:
- https://docs.openstack.org/tempest/latest/stable_branch_testing_policy.html

Change-Id: Ie8a57fa9e5ef8bef775b8ab78b7d04bceaf795ed
2022-10-15 22:47:32 -05:00
Ghanshyam Mann 4fc39c70e6 Pin stable branch jobs nodeset to Ubuntu Focal (20.04)
In 2023.1 cycle. we are moving the default distro
version of Ubuntu to Jammy (22.04)[1] so we need to pin
the nodeset for stable branch job in master gate so that
they continue run on their supporting distro version which is
Ubuntu Focal since stable/victoria.

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

Change-Id: I5436b2f9a8e531490637c624ace5d2dc7412363b
2022-10-15 20:58:01 -05:00
Roman Popelka a604ac89e5 Update minimal tempest version to 27.0.0
As tempest.scenario.manager was announced stable interface in Tempest
27.0.0[1] it can be now reused in plugins.

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: I70aba51b6bff49cab193c91516532edb24319f4e
2022-07-14 07:57:46 +00:00
Roman Popelka e1dde454f3 Remove setup_clients method
As tempest.scenario.manager was announced stable interface in Tempest
27.0.0[1] it can be now reused in plugins.

Replaced methods:
    * setup_clients

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: Ib6c365a01bfebbcc355160f6139d9ac97e557b69
2022-06-09 13:40:27 +02:00
Roman Popelka b6b967963d Remove unused methods
As tempest.scenario.manager was announced stable interface in Tempest
27.0.0[1] it can be now reused in plugins.

Removed methods:
    * create_volume
    * create_volume_type
    * _create_loginable_secgroup_rule
    * create_security_group
    * get_remote_client
    * _image_create
    * glance_image_create
    * _log_net_info
    * nova_volume_attach
    * nova_volume_detach
    * check_vm_connectivity
    * check_public_network_connectivity
    * create_floating_ip
    * create_timestamp
    * get_timestamp
    * get_server_ip

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: Ib8e1f9d9017b8e807a19fdebc1c5ccba25e7b933
2022-06-09 13:39:01 +02:00
Pierre Riteau 26d1192a97 [CI] Move queue setting to project level
Per [1].

[1] http://lists.zuul-ci.org/pipermail/zuul-discuss/2022-May/001801.html

Change-Id: I14982e505eeb01e428bf6aa1d5c1589ac76f0151
2022-06-08 22:10:53 +00:00
Ghanshyam Mann 9436185ee8 Remove stable/victoria job from master gate
stable/victoria is in EM state and Tempest is pinned
there so we do not need to test the stable/victoria
jobs on master gate.

Change-Id: I0930cdb342bd1c03a5ed405cf08efc587f244728
2022-05-31 16:02:08 -05:00
Ghanshyam Mann e6dfe3dd4c Update 'Maintained' stable branch jobs on master gate
We have stable/yoga released and stable/ussuri is in
'Extended Maintenance' state. Current 'Maintained'
stable branches are yoga, xena, wallaby, and victoria.

As per tempest stable branch testing policy[1], adding the
newly released stable/yoga job and remove the EM stable/ussuri
job.

[1] https://docs.openstack.org/tempest/latest/stable_branch_testing_policy.html

Change-Id: I6efd637271247cc33880db6b3ac49243c299cdf9
2022-04-14 20:16:31 -05:00
Zuul ddd4072f6e Merge "Remove _log_console_output, ping_ip_address methods" 2022-04-06 13:31:49 +00:00
Zuul 97efa5180e Merge "Remove create_server and rebuild_server methods" 2022-04-06 13:31:47 +00:00
Zuul e2d8c738a7 Merge "Remove _create_port and create_keypair methods" 2022-04-06 13:31:45 +00:00
Roman Popelka 652c9a8d2d Remove _log_console_output, ping_ip_address methods
As tempest.scenario.manager was announced stable interface in Tempest 27.0.0[1] it can be now reused in plugins.

Replaced methods:
	* _log_console_output
	* ping_ip_address

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: I5f4332f62c44430418e55c0acffc8531a54f25b9
2022-03-17 06:39:01 +00:00
Roman Popelka 7669fc715c Remove create_server and rebuild_server methods
As tempest.scenario.manager was announced stable interface in Tempest 27.0.0[1] it can be now reused in plugins.

Replaced methods:
	* create_server
	* rebuild_server

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: Ic0cbced04abe6af5d20ff5c461d0304cf5ef475a
2022-03-17 07:37:07 +01:00
Zuul 41347cd00f Merge "Remove create_server_snapshot method" 2022-03-08 17:19:31 +00:00
Roman Popelka 94c16b1a59 Remove _create_port and create_keypair methods
As tempest.scenario.manager was announced stable interface in Tempest 27.0.0[1] it can be now reused in plugins.

Replaced methods:
	* _create_port
	* create_keypair

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: I800e55bb5a433961a96c57195fd806881caac4be
2022-03-08 11:15:05 +00:00
Roman Popelka 6063a467e4 Remove create_server_snapshot method
As tempest.scenario.manager was announced stable interface in Tempest 27.0.0[1] it can be now reused in plugins.

Replaced methods:
	* create_server_snapshot

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: I559fafba4d354f759bef69c0bdd9c3681f27d8c7
2022-03-08 11:13:36 +00:00
wu.shiming 36369381f5 Updating python testing classifier as per Yoga testing runtime
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: I05acf8987578c80afe2089d6e2c49129c0d729a3
2022-02-16 14:42:06 +08:00
Ghanshyam Mann 65c81be68d Add stable/xena jobs on master gate
We have stable/xena released so we should add
their job on master gate to keep branchless tempest
plugins compatible to stable branch.

This also removes the stable/train job as that is in EM
state now.

Ref: Tempest plugins guide for stable branch testing:
- https://docs.openstack.org/tempest/latest/stable_branch_testing_policy.html

Change-Id: I78a046f576a9fb666c11b8a15134dc46bb3537bf
2022-01-18 18:38:56 -06:00
wu.shiming 362c6c5209 Changed minversion in tox to 3.18.0
The patch 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: I1db5597ab78d19b7dac5de895745079ea1094666
2021-06-10 09:37:46 +08:00
wangzihao 7c19d7528f Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: I19ad6237ca33b9144fb1303506d717620840baaf
2021-05-19 14:57:01 +08:00
Ghanshyam Mann 4440335291 Add victoria/wallaby stable branch jobs on master gate
We have stable/victoria and stable/wallaby released so we
should add their job on master gate to keep branchless
tempest plugins compatible to those branch.

This also removes the stable/stein job as that is in EM
state now.

Ref: Tempest plugins guide for stable branch testing:
- https://docs.openstack.org/tempest/latest/stable_branch_testing_policy.html

Change-Id: Ide464d5b64494050ff52f58832ed24bacecb83e9
2021-04-29 18:53:38 -05:00
Zuul 93422b61f4 Merge "Change dashes to underscore in setup.cfg" 2021-03-11 14:35:06 +00:00
Pierre Riteau 82adfbc02f Change dashes to underscore in setup.cfg
Recent versions of setuptools are warning that usage of dash-separated
keys will not be supported in future versions.

Change-Id: I921ede38ce77bf4a95f34fdc7b4dd293d490b78f
2021-03-11 06:22:47 +01:00
wu.shiming fb0477e488 remove unicode from code
In Python 3, all strings are represented in Unicode.In Python 2 are
stored internally as 8-bit ASCII, hence it is required to attach 'u'
to make it Unicode. It is no longer necessary now.

Change-Id: I3f2204d96ac3834ec652b95fd4ad47e4f5dcc7f2
2021-03-04 06:15:55 +00:00
Zuul d952210ecd Merge "Bump py37 to py38 in tox.ini" 2021-01-06 10:33:31 +00:00
wu.shiming b979560d88 Bump py37 to py38 in tox.ini
In 'wallaby' cycle, we should test py38 by default.

ref:
  https://governance.openstack.org/tc/reference/runtimes/wallaby.html

Change-Id: I7de0f99a4b15cd4c21a815f6d6bdeac99bb657ba
2021-01-05 22:26:33 +00:00
Hervé Beraud f6b619e8e8 Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver [1] for the release team [2][3].
Removed specific doc requirements from test-requirements.txt.

The problem here is that this repos haven't doc/requirements.txt file
and by default in this case zuul will use the test-requirements.txt file
to pull requirements [4].

This requirements file contains extra requirements like flake8 that
collided with those allowed in our job environment and so the new pip
resolver fails to install these requirements and the job exits in error.

This project meet the conditions leading to the bug.

[1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html
[4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36

Change-Id: I23bbefb2549afdb7e54c9b0c245a338cae4e81e9
2021-01-05 23:23:56 +01:00
Pierre Riteau 10ef8b76dd Fix multiple CI failures
1) Bump hacking max version to 3.0.1 and fix code style failures.

pep8 job is failing because the version of flake8 (flake8<2.7.0,>=2.6.0)
requested by hacking<1.2.0 is not compatible with pyflakes>=2.1.1.
Therefore the patch increases the max version of hacking.

2) Disable swift-proxy service which fails to start on stein. Disabled
   other unneeded services while here.

Change-Id: I87c6d037fbbc24ef795ddbe26b5e297fb1bbc7a9
2021-01-05 17:18:45 +01:00
inspurericzhang 85b54e1f6a Add py38 package metadata
Change-Id: I1f7736f8b15450e94204f78be042e470bdee766a
2020-08-18 12:00:14 +00:00
Luigi Toscano 69b9ed3f8e Pin the <=ussuri jobs to a bionic nodeset
The newer branches continues to inherit the default from devstack,
which will change to track focal soon.

This change is part of the "move to focal" community goal:

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

Story: 2007865
Task: 40178
Change-Id: I307f593c33e75ed9b409a16efa8a8f9f9b466fb1
2020-07-31 09:27:42 +02:00
Zuul 6a61fcba8b Merge "Port the blazar jobs to native Zuul v3" 2020-07-28 10:09:38 +00:00
Luigi Toscano 064d2ae486 Port the blazar jobs to native Zuul v3
- move the base devstack jobs to blazar-tempest-plugin,
  following the pattern used by other jobs, and make it
  easier to use them on all branches;
- rename the jobs using the current convention;
- make the branch-specific jobs inherit from the base
  (IPv4) job.

Change-Id: I30cf367a40620ce6c57d43df4be48a9a9d18ced6
2020-07-24 08:48:24 +00:00
Ghanshyam Mann 339c3e1e26 migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing:
- bug#1886296
Bump the pyflakes to 2.1.1 as min version to run pep8 jobs
on py3.8 which is default python vesion in ubuntu focal.

Story: #2007865
Task: #40178

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

Change-Id: I295c8e2fe6b135833b33cdf9d405d169f358c083
2020-07-09 15:11:33 -05:00
Andreas Jaeger 9468fcf2dc Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I524d5c8b09b31dbc6781792d5dc91994f7ed4791
2020-05-30 15:53:26 +02:00
Ghanshyam Mann 046e1c495e Add stable branch jobs on the plugins master gate
Supported stable branches in maintenance state
(stein, train, ussuri) use the Tempest and plugins master
version for their testing. To make sure master version (new
tests or any changes) is compatible with stable branch testing,
we need to add the stable branches job on the plugins master gate.
Tempest and many other plugins are already testing the stable
branches in same way[1].

Ussuri onwards, Tempest or plugins are py3 only, so we are
running only python3 version of stable jobs

Tempest plugins guide for stable branch testing:
- https://docs.openstack.org/tempest/latest/stable_branch_testing_policy.html

 [1] e8f1876aa6/.zuul.yaml (L646)

Change-Id: Idc3791730eb5173d867254633152e51bc718b00c
2020-05-05 17:15:11 -05:00
Andreas Jaeger bcdfdf25b3 Update docs building
Update docs building:
* Switch to sphinx-build
* Update requirements for Sphinx and openstackdocstheme for
  python 3
* Remove unneeded doc and translation sections from setup.cfg
* Remove install_command, it's not needed, the default is fine

Change-Id: I34fa39d1d57352b7187b986473bce772dcdc32f0
2020-04-19 10:25:53 +02:00
Martin Kopec 053132173f Remove deprecated scenario image options
The following options have been deprecated for more than 4 years
already and currently are being removed from tempest:
* aki_img_file
* ari_img_file
* ami_img_file

Change-Id: I50559a47520c15b7ed09f10427ecae9a6ce123e1
Related-Bug: #1393881
2020-03-12 11:46:38 +00:00
Zuul cd629d46dd Merge "Stop testing with py2" 2020-01-27 23:07:24 +00:00
Tetsuro Nakamura 31b690c1f7 Stop testing with py2
Python 2 is no longer supported. Python 3 is required.
This patch stops testing with Python 2.

Change-Id: Ia18f527ccacc14630a3ec4a2335c99a654b7fea0
2020-01-22 05:52:07 +00:00
Ghanshyam Mann b390e9d8a4 Remove use of deprecated config options for volume API selection
Tempest has moved the Volume APIs testing to v3 as default and can be run
under v2 API via catalog_type.
- https://review.opendev.org/#/q/topic:volume-default-testing-v3+(status:open+OR+status:merged)

Below config options were deprecated since Rocky and now Tempest is going
to remove those (Needed-By patch):
    * ``CONF.volume-feature-enabled.api_v2``
    * ``CONF.volume-feature-enabled.api_v3``

Change-Id: I251145bd649704099e159264da085a4c72f11a95
Needed-By: https://review.opendev.org/#/c/698754/
2020-01-07 12:43:50 +00:00
Pierre Riteau d75253ae78 Update lease dates to be far in the future
Our Gabbi tests started failing because the start date of 2020-01-01 is
now in the past.

Change-Id: Ic7f5c751cd9523fe80acf88c40c7ad1cceaa1d5a
2020-01-07 10:30:35 +01:00
Pierre Riteau 5e3f2736fe Generate PDF documentation
Change-Id: I82069d3b92350bf51def36822094aeeae8a5ee73
Story: 2006073
Task: 34799
2019-09-27 15:50:11 +02:00
Zuul 9b7aa0dd24 Merge "Use global request id for scenario tests" 2019-09-27 13:39:44 +00:00
Pierre Riteau 9a34ee32e3 Fix path to source code in configuration files
Change-Id: I56c03f6e7c9fe30dcea36a9843da205c4adf1d03
2019-09-16 12:04:26 +02:00