Commit Graph

119 Commits

Author SHA1 Message Date
gecong f8fe406aaf Fix a typo
Change-Id: Id5001ee50418a2c7484c9ef84e8f0d664cd9a99a
2023-02-14 01:58:32 +00:00
Zuul 94e258a685 Merge "Remove stable/victoria job from master gate" 2022-08-01 00:47:51 +00:00
Zuul d96dc53c9b Merge "Dropped the python 3.6/3.7 in zed cycle testing runtime" 2022-06-18 03:59:17 +00:00
Ghanshyam Mann 7af11718f3 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: I5acf940826d481c380bb24d429ffd24a73b28004
2022-05-31 16:11:05 -05:00
Cai Hui 35e77f9e1c Dropped the python 3.6/3.7 in zed cycle testing runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support.

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

Change-Id: Ibb7949a7fcda59f70a1e99abda404ac7f568467c
2022-05-15 09:18:01 +08:00
Ghanshyam Mann 9d4e173fe0 Add stable/yoga jobs on master gate
We have stable/yoga released so we should add
their job on master gate to keep branchless tempest
plugins compatible to stable branch.

This also removes the stable/ussuri 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: Icf87c821f1dcccf301cc1f68024b3bde2621a46b
2022-04-14 21:00:08 -05:00
Ghanshyam Mann dad84aa468 Remove stable/train jobs on master gate
We have stable/ussuri to stavle/xena stable branch jobs
are running in master gate. This 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: Ia53eab84be9a000a843370551ce1bee1778e5b27
2022-01-18 18:48:41 -06:00
Carl caihui daa7c54182 Add stable/xena ci job
Add freezer-tempest-basic-xena ci job

Change-Id: Ic47b54ba66448b00e174dd62b0a0d0460e04d701
2021-11-04 05:15:55 +00:00
Cai Hui 5c66cdab07 Update setup.cfg
delete python::3.5/3.7,Add python3.8/3.9

Change-Id: Iac46ad8ace08ba156f786eb0e52c69f8a424ee88
2021-11-03 19:25:37 +08:00
Zuul de9f456c00 Merge "Enable tls-proxy support for test job" 2021-07-17 07:14:22 +00:00
Zuul cccf158daa Merge "Add victoria/wallaby stable branch jobs on master gate" 2021-06-24 23:27:19 +00:00
ricolin 1c5a831a44 Enable tls-proxy support for test job
Change-Id: I4ccb99acfb9ecc9a91fa94d9470488b367fe6b78
2021-06-17 16:15:19 +08:00
Zuul 4018b40454 Merge "[ussuri][goal] Update contributor documentation" 2021-06-16 02:36:59 +00:00
caihui f6f9250e62 Update some test cases for schedule
Update  some test cases for schedule.

Change-Id: I1538d5c1ec634ba6971bf160c6f066115f108551
2021-06-10 09:51:27 +08:00
caihui 9cff1a7a1a Remove to support ElasticSearch backend in tempest
Remove to support ElasticSearch backend in tempest.

Change-Id: I359551b1af5959f4505a03937e0186017bbbf2f5
2021-06-09 15:55:37 +08:00
caihui aaf0e2c3d4 Remove the below nodeset setting to Bionic
The bug https://bugs.launchpad.net/freezer/+bug/1896648 is fixed.
Once nodeset is removed form here then devstack-tempest job
will automatically run this job on Ubuntu Focal nodeset from
Victoria gate onwards.

Change-Id: I1df7562dd0ffcd8570b51ca238559ee9e2a2e654
2021-06-05 10:36:45 +08:00
Ghanshyam Mann b11daba48d [ussuri][goal] Update contributor documentation
This patch updates/adds the contributor documentation to follow
the guidelines of the Ussuri cycle community goal[1].

[1] https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html

Story: #2007236
Task: #38522
Change-Id: I0e2d1de8e96bbfe5964983d021eacc9e62265f86
2021-05-31 20:30:06 +00:00
Ghanshyam Mann 900356a192 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: I315dc315049583e7f3bb4c8716f59b57a3229b52
2021-04-29 18:42:20 -05:00
gecong1973 564b03758e Fix a bug for tempst
Change-Id: Id303f5e494b4feceaaedb7cc4f32f2e402735b43
2020-09-29 05:56:40 +00:00
Zuul 1428ab3a13 Merge "[goal] Migrate freezer-tempest-plugin jobs to focal" 2020-09-29 05:56:02 +00:00
Ghanshyam Mann e804615148 [goal] Migrate freezer-tempest-plugin 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).

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

keeping failing jobs running on bionic nodeset till
https://bugs.launchpad.net/freezer/+bug/1896648 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: If15af5cccfbc2d1e6e229909f8c1792ddbd7a3c3
Story: #2007865
Task: #40184
2020-09-22 18:05:20 +00:00
Luigi Toscano 36d588ab90 zuul: cleanup the jobs a bit
- use tempest_plugins to define the list of plugins;
- remove devstack-gate, not needed;
- do not set PYTHONUNBUFFERED, a leftover from the old jenkins days;
- make freezer-tempest-basic-sql inherit from freezer-tempest-basic -
  they are basically the same, apart from an additional definition
  and the removal of the explicit swift from freezer-tempest-basic-sql,
  which is inherited from devstack-tempest anyway.

Change-Id: I6bafe75e602c76037d3859c8c7829773740199c6
2020-08-07 15:51:28 +02:00
Zuul 329c9e58fd Merge "Update DevStack installation guide" 2020-07-08 07:45:05 +00:00
caihui d82ad4bda6 Update DevStack installation guide
Update DevStack installation guide for the project

Change-Id: I5d5c1e762c92d235df5dc3673e9475457a84ea40
2020-07-08 00:20:28 -07:00
Caihui a352e40f3e Remove keystone v2 related code.
Remove keystone v2 related code.

Change-Id: Ia63ca397ecf4df34a4a7e90bf4cbc20886368962
2020-06-19 02:28:04 -07:00
Andreas Jaeger e4b0b9377e 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.

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: Ia7f902cce276b8e9bbc62a6f75e123521e471289
2020-05-30 16:49:37 +02:00
Zuul 3afe535402 Merge "Add stable branch jobs on the plugins master gate" 2020-05-23 07:23:28 +00:00
Ghanshyam Mann 0659d1954d Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: Ib119207db682d20c01be673c5bc91227c80709e1
2020-05-12 19:24:09 -05:00
Ghanshyam Mann 3300282acd 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: I7d1db17f492d873ee7408286f8b83c325576012f
2020-05-06 00:17:44 +00:00
Andreas Jaeger a15380550b Update docs building
Update docs building:
* Switch to sphinx-build
* Update requirements for Sphinx and openstackdocstheme for
  python 3, create doc/requirements.txt, switch to openstackdocstheme
  from obsolete oslosphinx
* Remove unneeded doc and translation sections from setup.cfg
* Remove install_command, it's unneeded, the default is fine.
* Move constraints into deps, use TOX_CONSTRAINTS instead of obsolete
  UPPER_CONSTRAINTS
* Switch to hacking 3.0, fix problems found

Change-Id: I44d09a65349a1d9b564e69a7fc32eb435446245c
2020-05-03 12:03:41 +02:00
Zuul f75709dda5 Merge "Fix tests to use path_to_backup instead src_file" 2020-02-13 08:56:41 +00:00
caihui e6b20bb23c Remove six useage
We don't support python2 anymore so we don't need this compatibility
library.

This patch remove six useage.

Change-Id: I6521eebed209c976728bc189876f2406c1feea4c
2020-02-03 18:45:17 -08:00
Zuul 7d94053480 Merge "Update README.rst for devstack" 2020-02-03 05:28:48 +00:00
caihui d8191487cf Update README.rst for devstack
Change-Id: I044e5224f9b9bb7fd2fe555636ab12e1868fbef0
2020-02-02 20:48:41 -08:00
Michal Arbet 72543d2d62 Fix tests to use path_to_backup instead src_file
Src_file option was changed to path_to_backup in freezer git repository
below, but tests were never changed, this patch is fixing this behaviour.

Freezer's change :
c7f71ff70b

Doc changes in freezer:
https://review.opendev.org/#/c/705003/

Changes in freezer-api:
https://review.opendev.org/#/c/705012/

Change-Id: I64a3e36ac68de5c45a93b56be83b017ce9f1221c
2020-01-31 13:19:43 +01:00
Ghanshyam 3d8fcb4710 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

freezer-tempest-plugin is ready with python 3 and ok to drop the
python 2.7 support.

Removing the USE_PYTHON3=True from base job so that it can
keep running  on py3 for < ussuri branches.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I025c12a265de4e3fdfad67c9e570c3110869acd6
2020-01-23 16:13:28 -06:00
Zuul 1110d9c4aa Merge "Update freezer-tempest-agent job to voting job" 2020-01-19 01:04:37 +00:00
Zuul 96a6910cf2 Merge "fix python3 compility issue" 2020-01-16 05:34:09 +00:00
caihui 3daaebe4f8 Update freezer-tempest-agent job to voting job
Update freezer-tempets-agent job to voting job

Change-Id: Ia76bae610434c49a164b30c5c66cbd62accdb9c5
2020-01-15 20:55:58 -08:00
caihui f391fe3c09 fix python3 compility issue
Change-Id: I5621b549fd0c2d7c392a37e45c3404e8adf937a3
2020-01-15 18:48:51 -08:00
Zuul 9368bd1fd3 Merge "Fix some python3 compatility" 2020-01-16 02:14:54 +00:00
Zuul 6a8ea8af02 Merge "Fix tempest running under python3" 2020-01-16 02:12:25 +00:00
caihui acd6893d0a Fix some python3 compatility
Change-Id: I8cbcdbc175fbc37e1ebe2c53023abcc2aec9d28f
2020-01-15 03:39:07 -08:00
caihui 9c55a840cb Fix json.load() compatility issue in different python version
1. The issue:
Traceback (most recent call last):
2020-01-15 06:49:03.578487 | controller |       File "/opt/stack/tempest/.tox/tempest/lib/python3.6/site-packages/freezer_tempest_plugin/
tests/freezer/agent/test_metadata_checksum.py", line 68, in test_freezer_fs_backup_bad_checksum
2020-01-15 06:49:03.578502 | controller |         metadata = base.load_metadata(metadata_path)
2020-01-15 06:49:03.578516 | controller |       File "/opt/stack/tempest/.tox/tempest/lib/python3.6/site-packages/freezer_tempest_plugin/
tests/freezer/agent/base.py", line 99, in load_metadata
2020-01-15 06:49:03.578543 | controller |         return json.load(f)
2020-01-15 06:49:03.578574 | controller |       File "/opt/stack/tempest/.tox/tempest/lib/python3.6/site-packages/oslo_serialization/
jsonutils.py", line 276, in load
2020-01-15 06:49:03.578590 | controller |         return json.load(codecs.getreader(encoding)(fp), **kwargs)
2020-01-15 06:49:03.578603 | controller |       File "/usr/lib/python3.6/json/__init__.py", line 296, in load
2020-01-15 06:49:03.578616 | controller |         return loads(fp.read(),
2020-01-15 06:49:03.578630 | controller |       File "/opt/stack/tempest/.tox/tempest/lib/python3.6/codecs.py", line 499, in read
2020-01-15 06:49:03.578643 | controller |         data = self.bytebuffer + newdata
2020-01-15 06:49:03.578656 | controller |     TypeError: can't concat str to bytes
2020-01-15 06:49:03.578669 | controller |

2. Solve:

2.1 Ref:https://docs.python.org/3/library/json.html

json.load(fp, *, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, **kw)

Changed in version 3.6: fp can now be a binary file. The input encoding should be UTF-8, UTF-16 or UTF-32.

2.2 Use open(path,'rb') to  replace open(path,'r')

 'b' :  binary mode
 't' :  text mode (default)

Change-Id: I07d855a75b66bc5de987aed80d8722f653154924
2020-01-15 02:40:26 -08:00
Michal Arbet 2531984a01 Fix tempest running under python3
Change-Id: I602061f2d544854df4720fa414afd1c1687bf2d5
2020-01-12 15:21:44 +01:00
Michal Arbet eceef09870 Fix python3 compatibility
Change-Id: I37dfbeeb15db151982b79b1f46e5aca157b7a29b
2020-01-09 14:38:06 +01:00
caihui b7a7423305 Fix some Python3 compatibility issues
1.TypeError: a bytes-like object is required, not 'str'

 Python3.X need use decode() to  change  "bytes" -> "str"

ft1.2: freezer_tempest_plugin.tests.freezerclient.test_freezer_cmd_action.TestFreezerCmdAction.test_freezer_cmd_actiondelete[gate]testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/opt/stack/tempest/.tox/tempest/lib/python3.6/site-packages/freezer_tempest_plugin/tests/freezerclient/test_freezer_cmd_action.py", line 79, in test_freezer_cmd_actiondelete
    action_id = err.split(' ')[1]
TypeError: a bytes-like object is required, not 'str'

2.AttributeError: module 'urllib' has no attribute 'urlencode'
ft1.2: freezer_tempest_plugin.tests.freezer_api.api.test_api_actions.TestFreezerApiActions.test_api_actions_get_limit[gate]testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/opt/stack/tempest/.tox/tempest/lib/python3.6/site-packages/freezer_tempest_plugin/tests/freezer_api/api/test_api_actions.py", line 46, in test_api_actions_get_limit
    resp, body = self.freezer_api_client.get_actions(limit=valid_limit)
  File "/opt/stack/tempest/.tox/tempest/lib/python3.6/site-packages/freezer_tempest_plugin/services/freezer_api_client.py", line 136, in get_actions
    uri += '?%s' % urllib.urlencode(params)
AttributeError: module 'urllib' has no attribute 'urlencode'

Change-Id: Ice774245605fe3549c7dacb9a2891d8177777f66
2020-01-07 16:53:49 -08:00
caihui a408510094 Update Devstack doc
Add a sample file "tempest.conf" and some commands to debug for developer.

Change-Id: I938ab7fd94f59f6721236ec0c10876cf42b3acb9
2019-11-18 03:04:31 -08:00
Zuul 79d9ad5ed1 Merge "Sync Sphinx requirement" 2019-09-20 08:04:34 +00:00
jacky06 7c1db8fe06 Sync Sphinx requirement
1. Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
2. Update some URLs to latest
3. Remove unncessary "=="

Change-Id: I211039189a935e006dc77d3245486d72b7c104a9
2019-09-13 01:50:21 +00:00