Commit Graph

258 Commits

Author SHA1 Message Date
Zuul a259e8d43e Merge "Add volume dependency test coverage" 2024-03-13 23:32:41 +00:00
Zuul cb3937363f Merge "Cleanup: unneeded client definition, API override" 2024-03-13 17:08:14 +00:00
Zuul ec1b30b6e2 Merge "Deleting volumes which are consumed as a basis for others" 2024-03-08 21:14:21 +00:00
Zuul da2f21c732 Merge "Moving API microversion fixture in resource_setup" 2024-02-28 22:41:54 +00:00
Brian Rosmaita bda383efae Update stable branch jobs
Remove yoga (which is now Unmaintained) and add 2023.2 (Bobcat, which
is the most recent Maintained branch).

Change-Id: I1966f79a724ea27c729e5a31162a090d65a1aa02
2024-02-08 16:39:41 -05:00
Eric Harney 08da44d79d Add volume dependency test coverage
These tests are handy for testing the current RBD
deletion work.

Change-Id: I281f881ad565e565839522ddf02057f7545c7146
2024-01-25 15:24:17 +00:00
Sofia Enriquez 861993b5e9 Deleting volumes which are consumed as a basis for others
This patch includes two test scenarios:

- Create a cloned volume from another volume. Cinder should
be able to delete the source volume.

- Create a volume from a snapshot. Cinder should be able to
delete the source volumes while the new volume still exists.

Related-Bug: #1969643
Depends-On: https://review.opendev.org/c/openstack/cinder/+/848013
Change-Id: I8daed0824f5ac60877e839265c09217dcce6dd21
2024-01-25 15:21:59 +00:00
Douglas Mendizábal c00cb0ad7d Enable scope testing for SRBAC
This patch updates the protection (Secure RBAC) job to enable scope
checking.  It also turns on scope checking in Keystone to ensure that
integration is working correctly.

This is the firs step in implementing Phase1 for Cinder [1]

[1] https://governance.openstack.org/tc/goals/selected/consistent-and-secure-rbac.html#phase-1

Change-Id: Id059ab97f099c88aa2a52a29a7de9c8e8676ee85
2024-01-23 12:38:01 -05:00
Zuul befec23ec1 Merge "No cinderlib testing in 2024.1 and later jobs" 2024-01-16 22:22:19 +00:00
Zuul 50bc3fb9e9 Merge "Update stable jobs on master gate" 2024-01-10 10:58:50 +00:00
Brian Rosmaita 4ee0bbaa55 No cinderlib testing in 2024.1 and later jobs
The cinderlib project is deprecated in the 2024.1 cycle and is
no longer undergoing development.  So remove cinderlib testing
from 2024.1 and later jobs.

Depends-on: Ib186ac5830e5920e264d79be946995e63e960426
Change-Id: If2b9a82cddb20543b176ee22765049db257c89b9
2024-01-09 18:02:47 -05:00
Zuul 9067a9a1eb Merge "Increase swap size for lvm-barbican jobs" 2024-01-09 18:35:12 +00:00
Brian Rosmaita 0de194cf6e Increase swap size for lvm-barbican jobs
Increase the swap size used by the cinder-tempest-plugin-lvm-barbican
family of jobs by setting it to 8GB in the
cinder-tempest-plugin-lvm-barbican-base-abstract job definition.

Also increase for ctp-lvm-multiattach job, which has been hitting
OOM errors.

See https://review.opendev.org/q/topic:caracal-gate for how we
arrived at 8GB as a suitable value for these jobs.

Change-Id: Id560bc3d078ce2ccbd87b32c317bf61cc519a92a
2024-01-05 15:36:27 +00:00
Ghanshyam Mann 8992770bad Moving API microversion fixture in resource_setup
API microversion fixture is used to set the API
microversion on service client and reset it back
after test execution. That is done in setUp()
method and due to that API microversion is not
set on service client during resource_setup()
method and any API call will be requested on base
version.

To sync the complete test execution of test class
with requested API microversion, this commit moves
the API microversion setting in resource_setup()
method.

Related-Bug: #1881863
Change-Id: Id26c73e4f0554770cd13d2b8840fe430448cc87f
2023-12-14 23:33:21 +00:00
Ghanshyam Mann ed387a0540 Update stable 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.

Also, removing the stable/xena job as that is in EM
state.
- https://review.opendev.org/c/openstack/releases/+/881254

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

Change-Id: I39b5296ee68544a43182dcb346a040856d062aca
2023-12-14 23:33:00 +00:00
Brian Rosmaita dad66cfd21 zuul: use only RE2 syntax
Zuul has deprecated Perl-style regex expressions in favor of RE2,
and our zuul config file is generating warnings [0], so let's
fix this now before it becomes an issue.

[0] https://zuul.opendev.org/t/openstack/config-errors?project=openstack%2Fcinder-tempest-plugin

Depends-on: https://review.opendev.org/c/openstack/cinderlib/+/896658

Change-Id: I90c9cde9e825b49b94202708e7bffc3556288a6d
2023-09-27 09:59:56 -04:00
Katarina Strenkova dfe2c229ed Replace deprecated terms
Following up on	the usage of inclusive jargon and to ensure
consistency in code, there is a need to replace deprecated term
tempest_test_blacklist with a new term tempest_test_exclude_list.

Change-Id: I35f764f39e2e07c15822feaf966fb3dfd285d9e0
2023-08-03 09:44:41 +02:00
Zuul 52a75f4e3a Merge "Test srbac on backups" 2023-07-04 17:18:01 +00:00
Zuul 8bf7f0bf0d Merge "zuul: new LVM/nvmet job (relevant scenario)" 2023-06-13 19:00:23 +00:00
Alexander Deiter 9fd78d520d Fixed cinder-tempest-plugin-lvm-lio-barbican job
Use v1.8.0 for cinder-tempest-plugin

Closes-bug: #2023341
Change-Id: I2ee66e959e590f0405fe98e74225f4ff4cf12751
Signed-off-by: Alexander Deiter <adeiter@infinidat.com>
2023-06-12 10:04:13 +00:00
Yosi Ben Shimon bbb3cd6124 Test srbac on backups
Testing reader, member and admin roles.
This file contains test 2 classes for API version 3.3 and 3.9

Signed-off-by: Yosi Ben Shimon <ybenshim@redhat.com>
Change-Id: I9e6ea838fa7a93fcfc3d4ef7f807224aadee187b
2023-06-07 11:30:54 +03:00
Zuul 09048aea04 Merge "test srbac on volume-types" 2023-06-06 12:15:43 +00:00
Zuul a8f4fde019 Merge "[srbac] Testing Volume Actions" 2023-05-30 20:03:05 +00:00
Zuul cba2416798 Merge "[srbac] Testing Volumes" 2023-05-30 16:10:03 +00:00
Zuul d081783226 Merge "zuul: Exclude unneeded tests from multiattach job" 2023-05-29 20:55:56 +00:00
Zuul dc76e8d7d7 Merge "Test srbac on user_messages" 2023-05-29 20:33:44 +00:00
Zuul 4cb9068314 Merge "[srbac] Test srbac on snapshots" 2023-05-29 20:26:15 +00:00
Eric Harney edd611188d zuul: Exclude unneeded tests from multiattach job
Trim off some expensive tests that are run in other LVM
jobs already, and don't add value here.

Change-Id: I222033ecf33f08b1d92e527b0fcf95e038b45685
2023-05-29 16:32:26 +02:00
Eric Harney d0e5b91649 zuul: Extend timeout for lvm-multiattach and cbak-ceph jobs
These jobs are frequently timing out with the default 2h
limit, extend them to 3 hours.
51c56f2 is one potential reason that these jobs are
taking longer to run now.

https://zuul.opendev.org/t/openstack/builds?job_name=cinder-tempest-plugin-lvm-multiattach&project=openstack/cinder-tempest-plugin
https://zuul.opendev.org/t/openstack/builds?job_name=cinder-tempest-plugin-cbak-ceph&project=openstack/cinder-tempest-plugin

Change-Id: Id0529a4f0a314996f8c0e8506596aefe0eb8648f
2023-05-26 09:52:26 -04:00
Evelina Shames de601aeb6b [srbac] Test srbac on snapshots
Adding Reader and Member srbac tests with snapshots operations

Change-Id: I838ba765851485e05df785740257caf89492e104
Signed-off-by: Yosi Ben Shimon <ybenshim@redhat.com>
2023-05-23 13:44:50 +03:00
Yosi Ben Shimon 5bd72415ff test srbac on volume-types
Change-Id: If2553946ba20f46a9e5d6fc73595dd7617098e78
Signed-off-by: Yosi Ben Shimon <ybenshim@redhat.com>
2023-05-23 13:36:00 +03:00
Yosi Ben Shimon b57a8dda9a Test srbac on user_messages
Test 'reader', 'member' and 'admin' roles for 'list', 'show' and 'delete'.

Signed-off-by: Yosi Ben Shimon <ybenshim@redhat.com>
Change-Id: I1273af9f12b6785fe2c648d53c66cf4d5a748243
2023-05-22 11:25:44 +03:00
Evelina 3367fdd997 [srbac] Testing Volume Actions
Adding Reader srbac tests with volume action operations

Depends-On: https://review.opendev.org/c/openstack/cinder-tempest-plugin/+/872986
Change-Id: Ic60eec73361dbdda68d4308140560be55102178e
2023-05-21 17:27:45 +03:00
Evelina 46910c6e48 [srbac] Testing Volumes
Adding Reader srbac tests with volume operations

Depends-On: https://review.opendev.org/c/openstack/cinder-tempest-plugin/+/872986

Change-Id: I08c39feadd5278ff79bb582d6c497b0ce169c206
2023-05-21 16:34:23 +03:00
Zuul b2609e62d4 Merge "Increase cinder volume quota for cbak job" 2023-05-18 16:51:40 +00:00
Zuul c32d73bf0c Merge "Add Python 3.10 to setup.cfg metadata" 2023-05-18 16:49:51 +00:00
Ghanshyam Mann 47958a8d77 Bump tempest version in requirements.txt
Tempest fixed server SSHABLE bug and the new way/fix is
consumed by cinder-tempest-plugin
- https://review.opendev.org/c/openstack/cinder-tempest-plugin/+/881764

To keep requirements.txt lower bound up to dated, this bumping
the Tempest version to 34.2.0 which include the SSHABLE fix
- https://review.opendev.org/c/openstack/releases/+/882356

Change-Id: I10137b03cc2e19f4f64220ad0c4cc8ee7c952122
2023-05-09 12:45:46 -05:00
Zuul fd4ad9ee4c Merge "Wait for servers to be SSHABLE" 2023-05-05 20:50:35 +00:00
Dan Smith 51c56f219e Wait for servers to be SSHABLE
This is necessary to make sure we don't miss an attach or detach
event in the instance.

Depends-On: https://review.opendev.org/c/openstack/tempest/+/882342
Change-Id: I4cb8af79d6d474b28e96d7b2c385ed8e5ba9c1d7
2023-05-05 06:46:16 -07:00
Yosi Ben Shimon 490c825713 Test capabilites for srbac feature
Changed the test to keep convention without abstract methods
Also remvoed base.BaseVolumeTest inheritance, to isolate RBAC tests from
the normal tests while they are developed, even though this could be
revisited in the future the base classes for API tests in
cinder-tempest-plugin could be unified.

Change-Id: I7020487fcdb0a8e34be92a2b0f110b885cbeb339
Signed-off-by: Yosi Ben Shimon <ybenshim@redhat.com>
2023-04-27 15:49:13 +03:00
Gorka Eguileor 87d48028b1 zuul: new LVM/nvmet job (relevant scenario)
This is a patch that adds a new LVM/nvmet job which also
exercises a few relevant code paths in os-brick
which are likely to be used in a production environment:

- Uses the new NVMe-oF connection information.

- Uses NVMe-oF native multipathing, even if it's by using the local IP
  address, which is not real multipathing.

- Shares the namespace for all connections on the same node.

Change-Id: I35beb893ad135043deb5a4ea283e0d668692a438
2023-03-31 10:09:55 +02:00
Zuul 9f1f4b88e1 Merge "Add FIPS job for barbican case" 2023-03-30 14:31:18 +00:00
Zuul c5b0af6bf1 Merge "zuul: make the SRBAC job voting" 2023-03-28 11:22:28 +00:00
Toheeb Oyekola d6989d3c1a Fix test_boot_cloned_encrypted_volume docstring
Updated the docstring description for test_boot_cloned_encrypted_volume
function to an accurate one.


Closes-Bug:2006594
Change-Id: I5e6e5444388acccb85d74d8ab2a22c8d988cfb5b
2023-03-20 22:28:57 +00:00
Ade Lee 723c3b9839 Add FIPS job for barbican case
Add cinder-tempest-plugin-lvm-lio-barbican-fips

Change-Id: Ib79ad929582b2fac61a37807a837dab55e720fba
2023-03-17 09:36:03 -04:00
Luigi Toscano 2cbd042871 zuul: make the SRBAC job voting
There are a few tests which pass, and more are coming.

Change-Id: I6a2584d983cbb0c9d41b188822aa4a26fd9d72eb
2023-03-13 14:50:26 +01:00
Eric Harney 310228cb7f Increase cinder volume quota for cbak job
With new tests such as I281f881 being added,
cinder-tempest-plugin-cbak-ceph is failing due to
the quota limit of 10 volumes.

Increase this to 25.

Change-Id: I5c7818da89323c9de4381326882707828a7a1db2
2023-03-09 14:11:34 -05:00
Eric Harney 8c60846e51 Add Python 3.10 to setup.cfg metadata
We support 3.10 as of Antelope.

Change-Id: Ic41eeb457e8e26f251471dc1de63e1f07729d468
2023-03-09 13:58:21 -05:00
Zuul 227f748f84 Merge "Update metadata in setup.cfg" 2023-03-03 14:57:44 +00:00
Zuul f80d3af2a4 Merge "Add stable/zed jobs on master gate" 2023-02-23 22:56:49 +00:00