Commit Graph

278 Commits

Author SHA1 Message Date
Michal Nasiadka b3c601735b CI: Wait before checking pods status
Currently sometimes the check for ContainerCreating status is run too early,
Helm based services are not even spawning Pods yet.

Also improve wait time for ContainerCreating

Change-Id: Ifd08eccdbc15446e3f4e883712c5035df3b9e370
2024-03-26 12:57:20 +00:00
Michal Nasiadka ed4cc97d4d CI: Rework job definitions into templates
Create templates per release, set labels tested in cycle
to proper job.

2023.1 and 2023.2 test cluster jobs are defined but not
yet enabled to run, they show some flakiness - will
enable them in a followup.

Change-Id: I2b3f44af0864c95eaca58a70471ee1991f4db921
2024-03-13 09:11:49 +00:00
Michal Nasiadka a3e09cfcbe Add pods description in logs
Change-Id: I83bb918cf835fc968f8d7d71b24470688a4b1c81
2024-02-22 05:49:46 +00:00
Michal Nasiadka 1e37dbafd4 CI: Wait for pods to exit ContainerCreating state
Change-Id: I038cfab481f3a30050f39883fce99973586597b0
2024-02-21 14:55:31 +00:00
Michal Nasiadka c4bdd870a4 Remove yoga job
It's going into unmaintained - see [1].

[1]: https://review.opendev.org/c/openstack/releases/+/906569

Change-Id: I8deed0f1ef91297a7cabdf07a6b34a6b8e8d4d1f
2024-02-19 16:59:52 +01:00
Michal Nasiadka 2fe075ae78 Add job for cluster tests
Remove test that creates cluster with zero nodes,
it was failing for long time

Depends-On: https://review.opendev.org/c/openstack/magnum/+/893823
Depends-On: https://review.opendev.org/c/openstack/magnum/+/905357

Change-Id: I6bc2fbb78241765ac5f1c67675e152d0691b8d23
2024-02-02 08:37:08 +00:00
Michal Nasiadka 4320429c89 Drop xena jobs after xena EOL
Change-Id: I8a7313cd9e42f9a718006b45614730a98932ba2f
2024-01-10 08:35:54 +01:00
Zuul ef90336315 Merge "Add magnum service to rbac tests" 2023-09-12 06:32:24 +00:00
Zuul 78771a9ef0 Merge "Add RBAC tests" 2023-09-12 06:30:41 +00:00
Zuul 1d1dfe8c8b Merge "Cleanup py27 support" 2023-08-30 15:25:50 +00:00
ricolin c5743fbea2 Add magnum service to rbac tests
Although we didn't change policy of magnum service,
but we should add this to complete test scope of job
`magnum_tempest_plugin.tests.api.v1.rbac`.

Change-Id: I5dfbad43d5a515312ef285aff208e1c9e36cf684
2023-08-30 14:12:10 +00:00
niuke c471391f35 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: I7c735a461440bc1222f2f56d709e738c7bfde365
2023-08-04 15:02:11 +08:00
ricolin 718190b7da Add RBAC tests
Create new job magnum-tempest-plugin-tests-api-rbac
Also fix get_credentials calls
Depends-On: https://review.opendev.org/c/openstack/magnum/+/875625

Change-Id: I8f9e184881c2da2a0432e25f5f1f3ddcf178015a
2023-07-18 14:20:37 +08:00
ricolin 89cba9b96c Add clients to tempest plugins
Change-Id: I847efff138dc4c3dbae686310221e1dfd0423587
2023-07-18 14:17:49 +08:00
Zuul a00cd2f638 Merge "Add stable/2023.1 jobs on master gate" 2023-06-26 02:11:03 +00:00
Ghanshyam Mann 8af1d1a416 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: Id27c73a530820dd08b9d85843844d2e151212d72
2023-06-09 05:06:58 +00:00
Zuul 0805f24e65 Merge "Remove stable/wallaby job from master gate" 2023-02-06 09:24:09 +00:00
Diogo Guerra dc7f0ba4aa Drop bay and baymodel
Change-Id: Ib85e4fda8e4ac467bd49590dc72ba5913bb9a19d
Signed-off-by: Diogo Guerra <diogo.filipe.tomas.guerra@cern.ch>
2023-02-05 11:17:48 +00:00
Ghanshyam Mann b223e8e6c4 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: I15afdc2d8e472e8ad93192155900aa10a4b8439f
2023-01-26 19:20:22 -06:00
Zuul 246c3f5544 Merge "remove unicode prefix from code" 2022-11-10 11:16:07 +00:00
Ghanshyam Mann be05c7ced0 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: I1406a1bf99861315001a573a7d187957bab37682
2022-10-15 22:44:06 -05:00
Ghanshyam Mann fd018af9c5 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: I0f29d5989b82020bee585f7075915c7c87c7dfc3
2022-10-15 20:56:32 -05:00
Zuul 462da99461 Merge "setup.cfg: Replace dashes by underscores" 2022-09-27 00:06:58 +00:00
Jake Yip 65f0c07f4f [CI] move queue setting to project level
Fix as described in [1][2]

[1] https://lists.opendev.org/pipermail/service-announce/2022-September/000044.html
[2] https://lists.zuul-ci.org/pipermail/zuul-discuss/2022-May/001801.html

Change-Id: I3923f9abddf24b6bf30b6cfcd9b2d2394ef171a3
2022-09-23 01:49:12 +00:00
niuke 0982123fdb remove unicode prefix from code
Change-Id: Id51cab6f2cca118d091b38ddb957dd2a5c220f5c
2022-08-24 11:03:26 +08:00
songwenping 64a4270ad6 setup.cfg: Replace dashes by underscores
Since setuptools v54.1.0[1], the parmeters with dash have been
deprecated in favor of the new parameters with underscore.

This change updates the parameters accordingly to avoid the warnings
like the example below.

  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: Ica879c31574060471fb22c53761e6d4549a05db2
2022-08-19 10:21:35 +08:00
Ghanshyam Mann 62c83d376b 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: Iac14d4874dd455ebfcafa777de1d720d020624b6
2022-05-31 16:02:24 -05:00
Ghanshyam Mann 70d8e45514 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: Ic283d95deebfb71236941f369fae1f0c72136881
2022-04-14 20:29:55 -05:00
Ghanshyam Mann 969753e8fd Add stable branch jobs on the plugins master gate
Supported stable branches in maintenance state
(ussuri, victoria, wallaby, xena) 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].

We are adding Victoria onwards jobs and ussuri one which is failing
and might need more fixes can be added separatly.

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: If92a78f10935b374de5508df14b428d0aa5e24ce
2022-02-26 22:41:27 +00:00
Takashi Kajinami 9b9eacfa51 Extend default glance limit
Since [1] is merged, quota in glance is enabled but limit is set to
1GB by default and this is too small for Magnum jobs using Fedora
images.
This change extends the limit to fix the issue caused by that low
limit.

[1] https://review.opendev.org/c/openstack/devstack/+/788056
Depends-on: https://review.opendev.org/802413

Change-Id: Id741fafc7e1da2d4e180f0745cd4d4b367472f06
2021-07-28 00:23:08 +09:00
Zuul 7762c6e801 Merge "Switch to new rolevar for run-temepst role" 2021-04-01 10:41:33 +00:00
Zuul 0e797a80b3 Merge "Switch to using Focal for testing" 2021-02-17 09:45:22 +00:00
Ghanshyam Mann 05db7c7e03 Switch to new rolevar for run-temepst role
Tempest replaced the below rolevar for run-tempest role
- tempest_test_blacklist is replaced by tempest_test_exclude_list
- tempest_black_regex is replaced by tempest_exclude_regex

old name are still supported for compatiblity but we recommend
to switch to new one.

Depends-On: https://review.opendev.org/c/openstack/tempest/+/774835
Change-Id: I5d66e18757d516f8c761875bd2f824d0e839f1ac
2021-02-11 13:35:29 -06:00
Erik Olof Gunnar Andersson 83a43fdca4 Switch to using Focal for testing
Depends-On: https://review.opendev.org/c/openstack/magnum/+/774142
Change-Id: I6baad8e3bf640959ee9e34b8e5fdef1a0bf9295b
2021-02-06 21:07:16 +00:00
Bharat Kunwar b68a678f37 Disable test_create_cluster_with_zero_nodes
Cluster creation fails on the CI due to an issue similar to what we've
seen before for another test (test_create_list_sign_delete_clusters).
Disable it for now.

story: 2007272
task: 38867

story: 2007851
task: 41443

Change-Id: Ie91fdfe71058b45c5fd1217920b8b5b993e47734
2021-02-04 09:02:20 +00:00
Ghanshyam Mann 487571aa0c Keep magnum-tempest-plugin-tests-api job running on Bionic
keeping magnum-tempest-plugin-tests-api job running on bionic nodeset till
https://storyboard.openstack.org/#!/story/2007732 is fixed
otherwise base devstack jobs switching to Focal will block
the gate.

Story: #2007865
Task: #40190

Change-Id: I78c8f92428efd27d604258f361077d909a27aa23
2020-09-22 17:41:27 +00:00
Feilong Wang abe58fe334 Fix HTTP 400 error
This is kind of a race condition issue, Tempest is doing a wait and check
when it is trying to delete a cluster. However, at the very end of the cluster
deletion process, a cluster GET request may get a HTTP 400 error which
will cause the Tempest case failed. This HTTP 400 exception reported
by a cluster GET request should be caught and take cluster as still existing.

Task: 40120
Story: 2007833

Change-Id: Ic97abf8d4d584f35b18bff9eab5d3e5ac80c0f02
2020-06-23 21:36:07 +12:00
Zuul 98db8b59dc Merge "Add py38 package metadata" 2020-06-11 13:38:04 +00:00
Zuul 65c3879ada Merge "Stop to use the __future__ module." 2020-06-08 09:40:00 +00:00
Hervé Beraud bcf46c505f Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I17c818e0e2cb5b4dc2b24cf689ceeb9b391c83bf
2020-06-02 20:22:19 +02:00
Andreas Jaeger 5da8cf6ad0 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: I54eee940d3c787fddc1278619981d7a90310fbd0
2020-05-31 17:51:47 +02:00
inspurericzhang 0770360f51 Add py38 package metadata
Change-Id: Iaf0b95597d6dc968c9745690f4a2663de8442876
2020-05-28 11:39:31 +08:00
Zuul 8a54f99111 Merge "Remove six" 2020-05-18 09:26:06 +00:00
jacky06 7c9ce9623e Remove six
We don't need this in a Python 3-only world.

Change-Id: I0ec4a2fe359c285460f64949943649b25938f3b1
2020-05-06 09:19:48 +08:00
Andreas Jaeger 6bb7b82275 Update docs building, cleanup
Update docs building, cleanup a bit:
* Switch to sphinx-build
* Update requirements for Sphinx and openstackdocstheme for
  python 3, create doc/requirements.txt
* 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
* Update to hacking 3.0, fix problems found

Change-Id: I76fe5602928bede439133993b0d85669228f25ed
2020-05-03 11:41:00 +02:00
pengyuesheng 599a7c392d Updated from global requirements
--

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.

Ic9207bb8d3e602dd71cc4c7cefde739130f3d48b

--

Blacklist sphinx 2.1.0 (autodoc bug)

See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details

Ia029f66cfde96d97754e38b5278f1b24081a09e0

--

tox: Keeping going with docs

1. Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.

2. Remove the py27 from tox since magnum already drop support python 2.7

[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045

I6e713b51cf9fac87e696fdfce8156f656a0f1df5

--

Change-Id: I53800a688fae3ba9cc551b0ceffe96938f2df59d
2020-04-29 14:03:36 +00:00
Bharat Kunwar 9cdd32cc03 [ci] Define/enable magnum-tempest-plugin-tests-api
This commit defines magnum-tempest-plugin-tests-api job which uses the
new devstack-tempest as parent job recommended for running
Tempest tests in Zuul v3.

Story: 2007561
Task: 39470

Depends-on: https://review.opendev.org/#/c/721265

Change-Id: If7b77099a90d405e248c80777fa5e8b3612b5c2e
2020-04-21 15:55:42 +00:00
Bharat Kunwar d75cbd1e48 [ci] Support fedora-coreos in magnum-tempest-plugin
Story: 2007561
Task: 39512

Change-Id: I2a5ba0a3bbc99c31af5de96e5b2acfa6107b698e
2020-04-21 15:38:51 +00:00
Ghanshyam 0655f1a2cb [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

magnum-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://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I58baf3f7361468de98fc43a1aed036af9c4e5051
2020-01-23 15:54:57 -06:00
caoyuan d558880e77 Replace git.openstack.org URLs with opendev.org URLs
1. Replace git.openstack.org URLs with opendev.org URLs
2. Update some urls to latest

Change-Id: I802feec03e5c0e93854266c51b596043bf3f4c45
2019-10-13 09:00:29 +00:00