Commit Graph

248 Commits

Author SHA1 Message Date
Ghanshyam Mann 8a0b3cf100 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: I4558cc01c224ba9f57231c494270b396f6736f1e
2023-06-22 10:45:44 +00:00
Zuul 29250bda50 Merge "Remove stable/wallaby job from master gate" 2023-01-31 06:54:20 +00:00
Hongbin Lu b97d49c9bb Allow executable "rm" in docs job.
Change-Id: I01e7fd361044a73c62fb00107260d82f3d2c67a3
2023-01-31 02:40:11 +00:00
Ghanshyam Mann 56388ea537 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
tesitng[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: I204d770e687c9ae194bec72f259d7cd2d0bfcdea
2023-01-26 19:20:46 -06:00
Ghanshyam Mann 6a7c3f7c4c 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: I54d140972e3f28c32623b3c66fd0f8c0dd7f25cb
2022-10-15 22:49:09 -05:00
Ghanshyam Mann e8be4c7b08 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: I3fb61e06a31f0bb641909f45b9dda1ee1dfad5bc
2022-05-31 16:05:14 -05:00
Ghanshyam Mann c6b830885c Add yoga stable branch jobs on master gate
We have stable/yoga released now so we should add their
job on master gate to keep branchless tempest plugins compatible
to those branch.

This also removes the stable/ussuri job as it 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: I1297877db64364436d5160720bf33962024964e4
2022-04-15 02:18:16 +00:00
Ghanshyam Mann 538ba39e14 Add victoria/wallaby/xena stable branch jobs on master gate
We have stable/victoria, stable/wallaby, and
stable/xena released so we should add their job on
master gate to keep branchless tempest plugins compatible
to those branch.

This also removes the stable/train|stein|rocky job as they
are 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: I1ae7cf05a7e73f2f05eaaa27cd3613beb0c455a9
2022-01-18 19:55:54 -06:00
Hongbin Lu 6d2529583b Temporarily disable capsule tests
Related-Bug: #1941982
Change-Id: I219042307bea53ae56515c95b380b4c4cfb03c4d
2021-08-29 17:19:30 +08:00
Zuul 9e0cf8fe91 Merge "Migrate from testr to stestr" 2021-07-10 06:44:31 +00:00
Anand Bhat 06283974c4 Migrate from testr to stestr
* Replace .testr.conf by .stestr.conf for migration and update
  .gitignore and test-requirements.txt file accordingly
* Use py3 as the default runtime for tox

Change-Id: Ib24d7b90a20f3b56993c1faede020c015395a1be
2021-07-01 16:08:49 +05:30
maaoyu 8e24aaaa7b setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: Ic2c882bf42886f5a12115f464189d784b5149952
2021-04-27 11:51:53 +08:00
Hervé Beraud 749acf98d6 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].
Removing 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: I813c8d5c20b576911baea15fe9ae106e74500f3b
2021-01-07 17:32:29 +01:00
Zuul f34364a7bc Merge "Use tempest's ServiceClients rather than Manager" 2020-12-29 10:52:30 +00:00
Hongbin Lu 49df2e2f7d Change image in glance driver test
Use docker image 'alpine' (instead of 'cirros') to avoid conflict
with other tests.

Closes-Bug: #1909454
Change-Id: Idec49b2bef2a2b4a91b301aa1a1a64408511a36e
2020-12-28 16:54:09 +08:00
Martin Kopec 334b6139a4 Use tempest's ServiceClients rather than Manager
tempest.Manager has been deprecated for more than 4 years already
and will be removed by [1].
Tempest plugins are expected to consume
tempest.lib.services.clients.ServiceClients directly.

[1] https://review.opendev.org/c/openstack/tempest/+/767628

Change-Id: I84afb611cb994ce0ef5eaa94fd14612d00327182
2020-12-21 11:59:55 +00:00
Zuul 9c28eca4f5 Merge "[goal] Migrate zun-tempest-plugin jobs to focal" 2020-09-29 02:39:53 +00:00
Hongbin Lu b81e8cbad6 Increase timeout to create a container or capsule
Change-Id: I7998b30eb46552fb84dc1edf52ece1b88d72227f
2020-09-28 04:35:01 +00:00
Ghanshyam Mann 79008bf25e [goal] Migrate zun-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.

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

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

Change-Id: I30ffa2328a5739e229a06729d471e31b9be53be5
Story: #2007865
Task: #40230
2020-09-23 01:01:57 +00:00
Hongbin Lu 275d2087ef Sleep 1 second to wait for logs
After introducing the CNI network driver for docker, there are
some delay for container to print out the logs.
This commit modifies the relevant tests to accommodate such delay.

Change-Id: I9a1eddadc0e9729a385713da314ebd5285107850
2020-09-12 21:47:28 +00:00
Hongbin Lu 6db3f1eb2f Use entrypoint in test_commit_container
Move "/bin/sh -c" from command to entrypoint which aligns with
the common practice.
Since entrypoint is supported since api version 1.40, we keep
the old test for testing api version earlier than 1.39.

Change-Id: I3d85fe16f9d992efb2365ec6c78f08323d5950d1
2020-09-08 02:58:49 +00:00
Zuul f88ab90318 Merge "Add container network connectivity test" 2020-08-25 18:26:19 +00:00
Hongbin Lu 1502b7a567 Add container network connectivity test
Change-Id: I55f1d5cd209d5baa80783b05a16ae6d1d5745663
2020-08-25 01:58:28 +00:00
Hongbin Lu b5c6b0349e Remove assertion of neutron port tagging
Neutron port won't be tagging on CNI network driver.

Change-Id: I6d4f70976f74eb4167c033e1af1db6a0857fdd86
2020-08-09 05:32:40 +00:00
Zuul 4a69e89f38 Merge "Test container in subnet without gateway_ip" 2020-07-05 04:43:51 +00:00
Zuul a0508a46fb Merge "Verify capsule's containers status" 2020-07-04 23:48:14 +00:00
Hongbin Lu 1e6bcd4759 Test container in subnet without gateway_ip
Related-Bug: #1881910
Change-Id: I89a25883b6341357d6d98b60445eba9d0fe69623
2020-06-07 23:38:56 +00:00
Zuul a02d0aa0fc Merge "Add py38 package metadata" 2020-06-07 19:23:00 +00:00
inspurericzhang 31366abe5c Add py38 package metadata
Change-Id: If8b11ab488e0418b344ebe0693ea7ba0ddeb6ce3
2020-06-03 00:10:03 +00:00
Andreas Jaeger 9232f14ea1 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_version to not auto-version the documents.

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.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

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: I3ef12cec64103a3fe2c101d05b211bc94c147d59
2020-06-01 16:27:45 +02:00
Hongbin Lu ab1fc1ab9f Verify capsule's containers status
After a capsule is successfully created, iterate each containers
of this capsule and verify its status.

Depends-On: https://review.opendev.org/#/c/730513/
Change-Id: I862ce25f0072724870462a6f5bc9633ac66cea4f
2020-05-25 13:44:52 +00:00
Hongbin Lu 3dc2289538 Fix stable branch py2 job
The hacking version is not available at python2, which breaks
stable/stein py2 job. This commit makes hacking py3 only.

Change-Id: I3864f5eb05321345bfc3b2fa7d08654665a84219
2020-05-25 01:26:47 +00:00
gujin 01d03bb71e Update "python setup.py build_sphinx" to build_sphinx
1. Update "python setup.py build_sphinx" to build_sphinx
2. Keeping going with docs

Change-Id: I729ae1a6c106cbc126d6d5849ed2f86673a29b4e
2020-05-21 09:28:27 +08:00
Ghanshyam Mann 5df462dcfa 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: I80ac3e7869d315f23c66b3f9684a8b63209f0eb0
2020-05-12 21:44:27 -05:00
Zuul 552edb7146 Merge "Add stable/ussuri job on master gate" 2020-05-06 14:40:38 +00:00
jacky06 5a193ab20f Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Change-Id: I16995f9237168d16c834662876683760127aabb3
2020-05-06 13:28:00 +08:00
Ghanshyam Mann 7f2fd34ca8 Add stable/ussuri job on master gate
Now we have stable/ussuri branch ready for devstack
and so does for all service projects.

This commit adds the stable/ussuri job on tempest plugin
master gate.

Change-Id: Ia9ca8dc083354afb056880a00944a11782741bbe
2020-05-05 18:00:42 -05:00
jacky06 06439d33a5 Remove six
Change-Id: I1c9dd70d2d3319ad9012620fe8478316f6a940d2
2020-05-05 12:30:42 +08:00
Andreas Jaeger 9043347888 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 unneeded, the default is fine.

Change-Id: I3d2e0459ba4aedf21c01d7725fe5ab266f9f4da3
2020-04-19 10:24:33 +02:00
Hongbin Lu a5ff9442ec Add test case for requested host
Depends-On: https://review.opendev.org/#/c/711864/
Change-Id: I78f534c6464231059806c008de278f4a13e8fc31
2020-03-15 17:28:54 +00:00
Zuul a6a9b3919e Merge "Drop python 2.7 support and testing" 2020-02-15 22:21:19 +00:00
Hongbin Lu 5f8aa8de42 Add stable/train job to CI
Change-Id: I689f15a070628a24ca55d931004ffa7264b69d91
2020-02-09 18:51:09 +00:00
Hongbin Lu 9b836e0048 Remove stable/queens job
The stable/queens branch enters extended maintenance phrase

Change-Id: Iceb2ebd82b87e258b760e0eb3977665ef30f5dac
2020-02-09 18:46:04 +00:00
Ghanshyam Mann ce8f9d7b5c Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

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

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://review.opendev.org/#/c/691178/

Change-Id: If4cec36beab64c83a59ebc7cf5c98f3d15ba328b
2020-01-22 22:17:45 +00:00
Zuul 0d639a465e Merge "Add tempest test for init containers" 2019-09-01 23:18:35 +00:00
Zuul 221ca1ad8d Merge "Skip tests if glance is not available" 2019-08-18 19:50:16 +00:00
Zuul cd60fdbc45 Merge "Bump the openstackdocstheme extension to 1.20" 2019-08-18 16:59:31 +00:00
Zuul 7eae05b45e Merge "Add tempest test for rebuild" 2019-08-18 16:52:50 +00:00
Hongbin Lu 7103718418 Skip tests if glance is not available
There are some tests requiring glance service. If glance service
is not available, we want to skip those tests instead of failing
them. The following are the affected tests:
* test_commit_container
* test_run_container_with_image_driver_glance

Change-Id: Iee1f53c905863eb842535090a2bb67c3babf9b05
2019-08-18 15:46:46 +00:00
pengyuesheng de8893e91f Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: I43a278afd810498606c4ce5bc2ca50079380599e
2019-08-05 09:38:38 +08:00