Commit Graph

67 Commits

Author SHA1 Message Date
Ghanshyam Mann b540700061 Retire patrole
Patrole project is not active anymore and its gate is broken.
We waited for couple of cycle to see if there is any interest
in this project and anyone can maintain it. But we did not get any
new maintainers and current QA team does not have bandwidth/interest
to continue maintaining it.

This project was for RBAc testing which is moving towards unit/functional
tests on service side as well as tempest plugins tests.

In QA 2023.2 PTG, we decided to retire this project

- https://etherpad.opendev.org/p/qa-bobcat-ptg

Change-Id: I7721cf06104e5871ec27cdd87d4608dace60a8b7
2023-04-10 22:29:00 -05:00
Martin Kopec fa0ee13512 Switch testing to Yoga testing runtime
Upating the tetsing template to Yoga testing runtime:
https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: I800e6f273412671239eabd7d5e86b5ba7acd3745
2021-10-07 08:48:51 +00:00
Ghanshyam Mann 7304b7c8d5 Add stable/wallaby job on master gate
stable/wallaby is not supported stable branch and
we are in Xena cycle development so adding wallaby
job on master so that we keep testing branchless
Patrole for all maintained stable branches.

Change-Id: If7106cdff4dbf30b549bf9e5e4fddf1ed5156070
2021-09-23 14:14:47 +00:00
Ghanshyam Mann c341f4228d Move to Xena testing runtime template
Change-Id: Ifa54e4b7b809ce2b9c1652557aa50181a5639307
2021-09-23 14:14:42 +00:00
Ghanshyam Mann 57ffb341cf Remove stable/train job
stable/train is in EM state and master patrole
does not support it, this commit removing
the stable/train job from master gate.

Change-Id: If43d5ae46c99b1170e76e72a70b81559f2d36fc1
2021-09-23 14:14:23 +00:00
Ghanshyam Mann 8cac133b6a Fix gate: fix the failing network, image, volume RBAC test
1. Image update member test is failing because image owner
itself try to update the image member status but only
admin or that member can update it. Fixing this test.

2. Network tests are failing to create public network
on vxlan or so, fixing those with right parameters.

3. Volume type extra type specs is facing the race condition,
where same name specs is created for all the test which update
delete it. But still it fails so skipping this test too for now.

4. Skipping volume detach test for now, basically squashing
https://review.opendev.org/c/openstack/patrole/+/800594

Story: 2009210
Task: 43272
Story: 2009050
Task: 42820

Change-Id: I5fbcaf219d23d5c94a180c3447ca851d844e1dca
2021-09-11 03:58:10 +00:00
Ghanshyam Mann 700c1db070 Remove stable/stein testing jobs
stable/stein is not suported in Patrole now, so
let's remove their jobs from master gate.

In order to pass the CI, the following changes are also made:
* Added skip for Nova policy
  "os_compute_api:os-admin-actions:reset_network", which was removed in
  https://review.opendev.org/c/openstack/nova/+/749315
* Removed openstack-tox-lower-constraints job for now until we have a
  solution.

Change-Id: Id73342c24342637edc37104f2112235a2edcac39
2021-01-06 10:50:47 +13:00
Ghanshyam Mann f6d7d0f8a9 Add Patrole gate job for stable/victoria
Now we have stable/victoria branch ready for devstack
and so does for all service projects.

This commit adds the Patrole testing for stable/victoria
by adding new jobs running on stable/victoria version of
openstack.

Change-Id: Icf6a2c86b92937089f7e3af96eec5ad6b1304e8d
2020-11-17 12:37:49 -06:00
Doug Schveninger ff2fba20db Clean up tox.ini and document zuul.yaml settings
I tried to remove --sitepacakges and the gate failed
so I added comment and in the .zuul.yaml so future people
will understand why.

I Updated the tox.ini environment description so if someone
does a tox -av it will list all command supportted and a
small description of what

While dcoumenting the zuul.yaml I noticed that I made
patrole-reader a job and I feel that we should also
have it as a gate.

I also saw that extension and multi-node non-voting jobs
where missing reader versions so I added them.

Change-Id: I7b8e4c06ece6b32cab4d7238d0bc250334a3adb3
2020-09-08 23:44:07 -05:00
Zuul 3ab156a545 Merge "Set admin, member and reader gates to be the same" 2020-08-28 13:17:41 +00:00
Doug Schveninger 8e3b0322b3 Set admin, member and reader gates to be the same
Since the stein train and usuri and master gates are
running successfully I am proposing to turn on all
of the gates the same and make reader voting.

Add opendev.org to project reference in .zuul.yaml.
to clean up the yaml and make it more like the
tempest .zuul.yaml.

I will do small changes overtime to clean up little
issues and test the gate changes.  Some future area are
tox clean up and looking into the multinode failures
to see if we can make them voting gates.

Removed define concurrency value to allow it to
be set according to the CPU in the VM that the
test are running.

Change-Id: Iad76ad66605a12d55afcc3561e807374ba2943f9
2020-08-18 08:01:02 -05:00
Ghanshyam Mann 8592e58477 [goal] Migrate patrole 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.

Also fixing few lower constraints.

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

Change-Id: Id1799fee94071c2eaea17bc50ef2845a8489fa92
2020-08-16 21:05:48 +00:00
Zuul 1e77d7a44e Merge "Add Patrole gate job for stable/ussuri" 2020-05-08 18:10:59 +00:00
Zuul 638202f983 Merge "Add Patrole gate job for stable/train" 2020-05-08 18:10:57 +00:00
Vishakha Agarwal 15d8f26965 Switch testing to Victoria testing runtime
Upating the testing template from ussuri to victoria
testing runtime
- https://governance.openstack.org/tc/reference/runtimes/victoria.html

Change-Id: Ifd65c0359509a4b59f3e876c42cef7cbf6f9ef93
2020-05-05 13:23:05 +05:30
Vishakha Agarwal a19f3dbe5c Add Patrole gate job for stable/ussuri
Now we have stable/ussuri branch ready for devstack
and so does for all service projects.

This commit adds the Patrole testing for stable/ussuri
by adding new jobs running on stable/ussuri version of
openstack.

Change-Id: I4ad6f84c71733b0bcc76d97493aa403d8c38de74
2020-05-04 23:08:57 +00:00
Ghanshyam Mann 6d97d0f8cb Add Patrole gate job for stable/train
Now we have stable/train branch ready for devstack
and so does for all service projects.

This commit adds the Patrole testing for stable/train
by adding new jobs running on stable/train version of
openstack.

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

Change-Id: I3655cf176f12685dd87c52d8e4979d8f8e000a38
2020-05-04 15:57:47 +00:00
Ghanshyam Mann 1fcf4bbd05 Remove the stable rocky job from Patrole master gate
Rocky is in Extended Maintainance state now so we can
remove its jobs to run on master gate.

-https://releases.openstack.org/

Change-Id: I6426aea405cf1d230259a7af8f17c8ed9287b2ec
2020-04-22 21:20:37 -05:00
Ghanshyam Mann 51368ef31c [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

patrole 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: Ied5cfb29363401d713c21fc579f30e1ef9c1210f
2020-02-28 01:22:58 +00:00
Ghanshyam 1488e1ef5b Remove the Queens stable branch jobs from master gate
Patrole 0.8.0 is released now, which marks the end of support
for Queens release - https://review.opendev.org/#/c/703523/

We do not need to run the Queens stable jobs on master gate now.

Depends-On: https://review.opendev.org/#/c/703523/
Change-Id: I36f519afb422eae8c7cc62b03893aacb01c7fe44
2020-01-21 09:49:56 -06:00
Ghanshyam Mann 6d62df53bc Remove the Pike stable branch jobs from master gate
Patrole 0.6.0 is released now, which marks the end of support
for Pike release - https://review.opendev.org/#/c/672485/

We do not need to run the Pike stable job om master gate now.

Change-Id: Id0579ce285f24c24a57c6674f93798215848441d
2019-09-19 17:46:55 +00:00
Zuul c8246e66e4 Merge "Add Python 3 Train unit tests" 2019-07-18 21:39:31 +00:00
Corey Bryant 6f15d30d75 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Ib3e0b4220d9a8a076ba2c26ac68852aa3953f134
Story: #2005924
Task: #34240
2019-07-15 13:19:43 -04:00
ps3910 6b229a720e Zuul: Fix extra quotes when writing devstack localconf
Generate the correct TEMPEST_PLUGINS environment variable, moving to
the new variable tempest_plugins introduced with [0], to get around
devstack's behavior of quoting all arguments [1]. Maintain the old
syntax for releases earlier than stein.

[0] https://review.opendev.org/639374
[1] https://review.opendev.org/636078

Change-Id: I498c637da9dac7605851b2edbbfb302103c3d6a9
2019-07-13 16:24:27 -07:00
Zuul fb0be77a18 Merge "Add Patrole gate job for stable/stein" 2019-05-16 22:50:47 +00:00
ghanshyam b3606a058b Add Patrole gate job for stable/stein
Now we have stable/stein branch ready for devstack
and so does for all service projects.

This commit adds the Project testing for stable/stein
by adding new jobs running on stable/stein version of
openstack.
Depends-On: https://review.openstack.org/#/c/647867/

Change-Id: I180d1133b4b77ee7aeff596899f9d7ad9b6d14fe
2019-04-29 00:10:18 +00:00
Ghanshyam Mann 35062ad415 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I09222df09e6c6618a06a08479638be3953e19ed4
2019-04-29 00:09:55 +00:00
OpenDev Sysadmins eedb039d5b OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:33:57 +00:00
Ian Wienand 20b808874f Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: Ibc123e273b3297ee604bcd8b2210f717ce07e1f4
2019-03-24 20:35:34 +00:00
ZhongShengping 198ac02ce2 add python 3.7 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.7.

See ML discussion here [1] for context.

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html

Change-Id: I6be6db7011c296b5eba6164eaa82d53fe3b7d202
Story: #2004073
Task: #27445
2019-02-19 17:06:16 +08:00
Sergey Vilgelm 11e0c66cf8 Enable checks and gate for reader role
Since there are three basic roles, Patorle should run checks for all of them

Change-Id: Ic467045a0c784c4b468091c2c2a2583e88c51e58
2019-02-01 13:12:34 +00:00
Zuul ead6d4a960 Merge "Migrate patrol jobs to bionic(Ubuntu LTS 18.04)" 2019-01-29 23:04:47 +00:00
ghanshyam a78dcae503 Fix the branches variant for stable branch job
Keeping explicit mention of stable/pike onwards branches with
all current stable + master end up keep updating that in every cycle.
For example stable/rocky is missed for those job.

This commit use explicit exclusion logic for branches so that we do not
need to update that in every cycle.

Change-Id: I8ff9b5f0648d5f4a145e846315807c730bd20f4b
2018-11-22 08:50:47 +00:00
ghanshyam f5c0dfb2bd Migrate patrol jobs to bionic(Ubuntu LTS 18.04)
This commit switch the patrole gate testing on Bionic (Ubuntu LTS 18.04)
from stein onwards.

patrole use base jobs from Tempest so we do not need to override the
nodeset. All magic happen with Tempest/Devstack base jobs (Depends-On patch).

Stable branch testing jobs like patrole-member-rocky on xenial for
backwards compatibility.

Depends-On: https://review.openstack.org/#/c/618169/

Change-Id: I7e3ec9079da98e111aa750004a284a0257cb86ce
2018-11-22 08:32:49 +00:00
Felipe Monteiro 825d79452c trivial: Fix irrelevant-files regexes for unit tests
This is to fix the regexes for unit tests in irrelevant-files
in .zuul.yaml to avoid unnecessarily running unit tests. Currently
the regex includes "patrole/" which is incorrect as the "root"
should be the topmost patrole package in the project's repo
which is "patrole_tempest_plugin".

.. https://github.com/openstack/patrole

Change-Id: I16c91b378d23e0c917f2cf5975f9c0f8fa33c620
2018-11-13 23:40:45 -06:00
Zuul f7c54efb7f Merge "refactor: Rename PluginRbacTest => ExtRbacTest" 2018-11-13 21:47:04 +00:00
Felipe Monteiro 0d3c743c11
zuul: Use all rather than all-plugin for tox_envlist
Since 'all-plugin' is deprecated in Tempest, this is to
switch to 'all' instead in .zuul.yaml; for more info,
see: 9b4c50cf63/tox.ini (L64)

Depends-On: Ib3264f54075216471720483c8dd816887c1f413c
Change-Id: I440b6cff2b5378e18304017589e3e7cf4748c28c
2018-11-07 08:01:49 -06:00
Felipe Monteiro bbbdd9391d refactor: Rename PluginRbacTest => ExtRbacTest
This patch set is a follow up on discussion in [0] which
concluded that Patrole should not test Neutron plugins.

The pertinent discussion from [0] is:

Patrole can test Neutron extensions but not plugins in tree
and that requires renaming the classes
(.*PluginRbacTest => .*ExtRbacTest) to make it clearer.

Having to support all the Neutron plugins in tree is out of scope
for Patrole. Clarifying documentation (which will be done in follow
up) can be added to Patrole documentation to make it clear that
it will only test "main" OpenStack projects, like Tempest.

[0] https://review.openstack.org/#/c/599869/

Change-Id: Iab029f2f875ce2268de12cc2a40e30f2f1a913fe
2018-11-07 04:13:25 +00:00
Zuul 742b73767b Merge "Define common irrelevant-files" 2018-11-07 01:35:29 +00:00
Zuul 415261e3d5 Merge "Multi role RBAC validation" 2018-11-07 00:33:28 +00:00
ghanshyam b688823056 Define common irrelevant-files
This commit define the irrelevant-files in common
place to use it in all jobs.

Change-Id: I0de220ff9bd067a2d23a9cb4280341b2e09bf84b
2018-11-04 12:54:58 +00:00
Felipe Monteiro d1a87c598d trivial: Add hacking checks to irrelevant-files in .zuul.yaml
This is to skip over hacking modifications triggering all Patrole
Zuul jobs as in [0]. Besides, Tempest also skips hacking in its
irrelevant-files [1]. Also do this for etc/.

[0] https://review.openstack.org/#/c/614655/3
[1] da8aec9aed/.zuul.yaml (L326)

Change-Id: Iee5b634e77c2faaa36d3d19a3b56b1fec685aa7e
2018-11-01 11:37:15 -04:00
Mykola Yakovliev e0f35503c9 Multi role RBAC validation
This patchset replaces ``CONF.patrole.rbac_test_role`` with
``CONF.patrole.rbac_test_roles``, where instead of single role
we can specify list of roles to be assigned to test user.

Change-Id: Ia68bcbdbb523dfe7c4abd6107fb4c426a566ae9d
2018-10-31 20:45:13 +00:00
Zuul abd981d56d Merge "Add tests to cover policy_dscp_marking_rule" 2018-09-19 22:16:54 +00:00
Zuul 45fdb0ea25 Merge "Add periodic-stable entry to .zuul.yaml" 2018-09-11 22:01:59 +00:00
Zuul fbdd39ffdb Merge "Add Patrole gate job for stable/rocky" 2018-09-11 21:59:39 +00:00
Andreas Jaeger a3c15da1cd Use templates for cover and lower-constraints
Use openstack-tox-cover template, this runs the cover job
in the check queue only.

Use openstack-lower-constraints-jobs template.

Remove jobs that are part of the templates.

Change-Id: I8d8b49d6256c7f7adb05d4c3c9f5b2aae3af6105
2018-09-09 06:42:19 +02:00
Doug Hellmann d720baddfe switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ief323de5c09fcff7d3b51421faa6b10dddd69a54
Story: #2002586
Task: #24327
2018-09-08 22:54:03 -04:00
Doug Hellmann 4635c6adf5 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I99bc949484e22a45fdb6f05043b9fef0534f6028
Story: #2002586
Task: #24327
2018-09-08 22:52:43 -04:00
Felipe Monteiro 1bee142cf5 Add periodic-stable entry to .zuul.yaml
This adds a periodic-stable entry to .zuul.yaml for
periodically running stable jobs from previous releases
so we can gauge their stability over time using OpenStack
Health.

Change-Id: I672ff9c699afb7968f1cf0039915d5ce742da34c
2018-08-28 21:19:32 -04:00