Commit Graph

166 Commits (2cb36e636bab349239501d68ce6dd92b234a44c2)

Author SHA1 Message Date
Zuul 2cb36e636b Merge "Refactor test_volume_backup due to leftovers" 2022-01-10 15:21:53 +00:00
Rajat Dhasmana 638f2308a1 Import from tempest stable manager
This patch removes the copy of tempest scenario manager
and directly imports the manager from tempest which has been
marked stable in tempest 27.0.0 release.

Change-Id: I403d5bc2eef464e6071e466aeab8e040b9055568
2021-12-03 18:51:05 +00:00
Zuul 961bab0212 Merge "Improve snapshot data integrity test" 2021-12-03 18:21:12 +00:00
Benny Kopilov e9834cd872 Refactor test_volume_backup due to leftovers
Current test class does not clean volume / backup resources.
Change the create for volume and backups from base and not from  client.

The base create contains waiters and run cleanup resources.

Change-Id: I8a6a7945870d30f180bd41940b8ee8b82e2f87b7
2021-10-03 21:08:35 +03:00
Seena Fallah a30dd6ea33 volume: fix wrong snapshot_id for revert_to_snapshot_after_extended_negative
revert_to_snapshot receive snapshot_id not a snapshot object

Signed-off-by: Seena Fallah <>
Change-Id: Ibccc48c5afb402e899ebbb471e2fc2e90d4d8886
2021-10-01 01:26:30 +03:30
Zuul a2a23ca6d1 Merge "Change minversion to 3.18.0 in tox" 2021-07-17 15:16:24 +00:00
tushargite96 040eb509fd Change minversion to 3.18.0 in tox
Change-Id: I0601c1055bee5926830146723a7bf4983460fb63
2021-06-29 15:25:20 +05:30
Luigi Toscano eba85546f1 zuul: pin cinder-tempest-plugin/stein-last on stein
Right now master is used, but it is not compatible with stein.
Tempest is already pinned to an older version, but there is no way
at the moment to globally pin tempest plugins to the last known
working version for a branch (but it will be added soon).

Change-Id: Iec75740e31e1be581ee0e7ef64214358ef6b790d
2021-06-28 17:31:59 +02:00
Rajat Dhasmana d9e5925bf6 Improve snapshot data integrity test
Currently the test require lot of resources i.e. 4 instance.
This patch uses recommendation from the comments of initial patch[1]
i.e. creates 1 instance, attach volumes to it, snapshot etc



Change-Id: I151b034dd28834290ffeb3ce9c052a6c3bbfb7d8
2021-06-14 02:32:22 -04:00
Radosław Piliszek 51b819b912 [CI] Move to CentOS Stream
CentOS Stream 8 (aka CentOS 8 Stream) is the currently
supported runtime platform. [0]

DevStack works with CentOS Stream only now. [1]
This patch prepares the ground to drop the devstack-*-centos-8


Change-Id: I53231cb6b00a57927b3d19115f64117f7cd755ed
2021-06-07 17:25:51 +00:00
Zuul d5dad1a718 Merge "Fix stein: use the old terminology for exclusion list" 2021-05-21 15:55:06 +00:00
Zuul b2be234d11 Merge "Add a job for S3 backup driver" 2021-05-20 21:28:45 +00:00
Zuul b937e4a61b Merge "Implement basic protection testing jobs" 2021-05-20 17:32:23 +00:00
Hironori Shiina 207d6677a0 Add a job for S3 backup driver
This job tests S3 backup driver with Swift S3 API.

Change-Id: I222c6ee4de01bdaba9ef5e5b5a92889486d6401b
2021-05-20 14:14:07 +02:00
Ghanshyam Mann 75bf2c2af8 Add stable/wallaby jobs on master gate
We have stable/wallaby released so we should add
their job on master gate to keep branchless tempest
plugins compatible to stable branch.

Ref: Tempest plugins guide for stable branch testing:

Change-Id: I493f44fdc7b5d4093e19ca19153644c20517941f
2021-04-29 23:56:55 +00:00
Lance Bragstad d3fddec498 Implement basic protection testing jobs
This commit lays down a basic structure for protection tests. These are
useful for testing various secure RBAC personas, but leveraging all the
dynamic credential work in tempest's authentication libraries to
provision clients for testing. We're also adding a non-voting protection
test job so that we can integrate protection testing into the cinder
gate as we work through policy changes.

This commit also adds some basic tests exercising the capabilities
admin-only API. These tests ensure that only operators (e.g.,
system-administrators) or formally known as project-administrators, can
access the capabilities API. Assertions and functionality in these tests
may expand in the future to accomodate system-scope when cinder can
properly consume system-scoped tokens from keystone.

For now, the tests assume project-administrators are deployment
operators, which is the legacy way of denoting "admin-ness" in OpenStack


Change-Id: I6d4ae6d516f4c2dda4dcb6b974857b34f2ef2254
2021-04-23 18:11:54 +02:00
Luigi Toscano 7e297886f0 Fix stein: use the old terminology for exclusion list
This fixes the jobs in stein (and potentially other older branches,
if they are not dropped before porting them to native Zuul v3).

Change-Id: Ie35075fe633376209a72c3fcc507357a7318187c
2021-04-20 17:04:12 +02:00
Zuul 1a0b126246 Merge "Refactor the lvm barbican job(s): cinderlib-less variant" 2021-04-16 20:13:09 +00:00
Zuul 1b2644ad7f Merge "Update example local.conf within README.rst" 2021-04-16 20:13:05 +00:00
Luigi Toscano 3d907472f1 Ceph jobs: re-enable a few c-bak tests, add more jobs
Those tests were disabled when ceph was upgraded
to a newer release (I51c90e592070b99422e692d5e9e97083d93146e8)
because they were failing.
But it seems they are working now, and it is not not trivial
at this point to understand whether something was fixed
in ceph or in cinder, so let's re-enable them.

Also, add a few additional (initially experimental) jobs
to double-check the ceph/c-bak scenario against
the stable branches.

This reverts commit 9d626d0de5
and adds more functionalities.

Change-Id: I033e0dc04f342e27d6266ad412d3cb256787c0e6
2021-04-07 10:06:47 +02:00
Zuul 7dece094f2 Merge "Switch to new rolevar for run-tempest role" 2021-04-07 00:24:51 +00:00
Rafael Fayan 76448ff911 Update example local.conf within README.rst
Removed duplicated 'VIRT_DRIVER=libvirt' entry, removed deprecated service 'n-net' and added 'c-bak' service

Closes-Bug: #1824918
Change-Id: I6214b0e6f94abbfae795d8bd5ecb8adcdaa79c08
Signed-off-by: Rafael Fayan <>
2021-03-25 15:27:14 -03:00
Zuul cc7e74b163 Merge "zuul: Add nova-ceph-multistore as a non-voting job" 2021-03-20 13:34:17 +00:00
Lee Yarwood 1ee1efc962 Set CINDER_ISCSI_HELPER explicitly for tgtadm job
Required to allow the default of CINDER_ISCSI_HELPER to change for
Ubuntu based hosts to lioadm without breaking these tgtadm jobs.

Change-Id: Ie9ca822f53abf90052ddfae52852b8b78c910ece
2021-03-10 09:34:49 +00:00
Luigi Toscano 1370db4b7c Refactor the lvm barbican job(s): cinderlib-less variant
The first real cinderlib supported branch works with train,
so restructure the lvm/barbican jobs to disable cinderlib testing
with any branch older than train.
While those branches are in Extended Maintenance status,
the job may be still used there to remove their old legacy
counterpart to easy the maintenance.

Change-Id: I5fa1b2d0348e86988f616dd7404dedc4eb9c4666
2021-03-04 01:28:24 +01:00
Zuul 641d6a009e Merge "Use the embedded scenario manager instead of tempest one" 2021-03-03 20:00:18 +00:00
Zuul 19078934c8 Merge "Wait for CG to be available before creating volume in the CG" 2021-03-01 16:57:40 +00:00
Zuul 548a31afb7 Merge "Add Snapshot data integrity test" 2021-02-27 16:47:15 +00:00
Zuul 6b6a54a322 Merge "Switch to stestr" 2021-02-27 15:13:26 +00:00
Luigi Toscano 5d7847ccbc Fix cinder-backup/swift: readd member to tempest roles
Change I0b6ab9fb943c7b0925a0a0d2490a8bcdfa76cedc removed the 'member'
user from the default roles assigned to dynamic tempest users.
This broke cinder-backup with the default swift backend.

Set the full list of roles, including 'creator' which should be
added by the barbican devstack plugin. Unfortunately the values
here overrides any other setting.

Change-Id: Id6dc96915f5b15827e6e8f58cc8195a0f76e9686
2021-02-25 22:16:32 +01:00
Luigi Toscano 3c5c8a2364 Use the embedded scenario manager instead of tempest one
While waiting for tempest scenario manager to stabilize its API,
a copy of it has been imported, so make sure to use it and to not
rely on tempest's one (whose API is changing during the stabilization
process, so it may break anytime).

Just one file needs to change its imports.
At the same time, fix the import order for another file.

Change-Id: I29c4784d59151948778cad57b7db56a368ed821d
2021-02-23 10:24:01 +01:00
Zuul ec742c8cb7 Merge "Add test idempotent IDs when missing" 2021-02-19 20:07:43 +00:00
Zuul 60703cd7f3 Merge "Add py38 package metadata" 2021-02-19 20:06:17 +00:00
Ghanshyam Mann 8e0986f09e Switch to new rolevar for run-tempest 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.

Change-Id: I37302d238c0cf66b6b0ff696e7a63379d5e22b10
2021-02-19 15:10:11 +00:00
Luigi Toscano f220e45333 Add test idempotent IDs when missing
Each test should have one:

Change-Id: Icd119d710376c0f5e4c6d2932ca39d55648cc9b7
2021-02-19 13:49:38 +01:00
Luigi Toscano 7c47222c54 Switch to stestr
We don't really have unit tests in the repository and any py3x venv
would not really be useful (the tests are executed through tempest),
but let's remove the old dependency anyway and depend on stestr
like all the other OpenStack projects.

Change-Id: I52d06f1c1e141cb455fb7a823a27be532afb4c16
2021-02-09 22:47:08 +01:00
Zuul 26807d154a Merge "Ignore H101 rule" 2021-01-31 14:26:30 +00:00
Zuul 537f9bd7a6 Merge "Add doc/requirements" 2021-01-30 00:57:35 +00:00
Rajat Dhasmana 21d63a3ada Add Snapshot data integrity test
This patch adds data integrity tests for snapshot with the following
procedure :

1) create a volume from image
2) Boot an instance from the volume
3) create file on vm and write data into it
4) create first snapshot
5) repeat 3
5) create second snapshot
6) repeat 3
7) create third snapshot

Now restore the snapshots one by one into volume, create instances
from it and check the number of files and file content at each
point snapshot was created.

We are also temporarily making a copy of tempest scenario manager until
the actual manager is available for import in tempest plugins.

Change-Id: I5c5ff6f996dd39b52fada82f3938b628e58b0a2c
2021-01-29 19:52:01 +00:00
Rajat Dhasmana df4f94711e Ignore H101 rule
It doesn't seem to provide any benefit and is also removed from cinder
For detailed reason, please look into the commit message of the cinder

[1] b0a56ddd25

Change-Id: I9a7749288706c8b326c1acd0cef6edd5ea91503e
2021-01-29 17:01:24 +00:00
Lee Yarwood 103c2f7d84 zuul: Add nova-ceph-multistore as a non-voting job
As discussed in I50d3b874b7e0676436c434be6c059f221041560f the tests
introduced by I846b96ef925c34162cf462da91d854ceacabe022 broke
nova-ceph-multistore thanks to the use of
[workarounds]/never_download_image_if_on_rbd in the job and some image
creation in the test that isn't strictly required.

To ensure breakages like this are visable in the future this change adds
the nova-ceph-multistore job as a non-voting job within this repo.

Related-Bug: #1912607
Change-Id: Ifbdaef0b82cc4b1e77e0ecc440e194e5544fe320
2021-01-28 17:50:07 +00:00
Lee Yarwood 3c96bfb431 test_volume_encrypted: Stop creating an image for each instance
An independent image isn't required for these tests and additionally
isn't required when calling create_server as the lack of an image
results in CONF.compute.image_ref being used by
tempest.common.compute.create_test_server [1].

The creation of this image resulted in the nova-ceph-multistore job
breaking as documented in bug #1912607. This broke as we use the job to
provide both our core ceph coverage and slightly more edgey topologies
using Glance multistore and the [workarounds]/ workaround option. This
option blocking the download of rbd images via g-api when n-cpu can't
clone the rbd volumes directly, as caused by the image creation in

Iaf6f6e0dbcb25561bf00e969e1964cd30e974e64 is currently skipping any
encryption test in the nova-ceph-multistore job to workaround bug
 #1912607 for the time being but we would obviously like to revert that
if possible and expand our coverage.

A follow up change will also propose adding nova-ceph-multistore to the
gate of this plugin to avoid future breakage.

Related-Bug: #1912607


Change-Id: I50d3b874b7e0676436c434be6c059f221041560f
2021-01-21 15:39:24 +00:00
Zuul 1281522816 Merge "Encryption Test Scenario for clone volume" 2021-01-20 21:12:07 +00:00
Sofia Enriquez 5ab3fef762 Encryption Test Scenario for clone volume
Due to an error in the _setup_encryption_keys volume rekey code, a
cloned encrypted volume that has been rekeyed will specify an
encryption key different from the key used to format the volume,
so it cannot be attached.

This test scenario will cover this feature and also the case of
source-vol feature.

Related-Bug: #1904440
Change-Id: I846b96ef925c34162cf462da91d854ceacabe022
2021-01-18 17:24:07 +00:00
Luigi Toscano 3f52f35e7c Run the tests on stable/victoria as well, remove stein
So that changes to this plugin (at least, most of them) don't break

As stein moved to EM, remove its job according the common guidelines.

Change-Id: If4857a8beaa46b48c0f7d44ff707dd44425b530c
2021-01-05 22:09:29 +01:00
Hervé Beraud efc7caabe9 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].
Removed 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 however it doesn't
produce any doc or releasenotes, but uniformization can't hurt and help
us in the future.

Notice that I voluntarily added the doc directory even if no docs
are generated here because zuul will try to pull this requirements from
there first and the contained requirements are needed for reno but AFAIK
the releasenotes dir is ignored by zuul. c.f [4] for further details.


Change-Id: I166c9479d94a42114adc94778140a9878a5949c5
2021-01-05 11:47:20 +01:00
wu.shiming f2ef479058 Add py38 package metadata
Change-Id: Ie7e6b07dad5d2d732eac809e14714ccb19850bba
2020-11-18 11:55:52 +08:00
Sam Wan 4f00e9f52b Wait for CG to be available before creating volume in the CG
The test cases should wait for CG to be available first before moving to
create volume in the CG.

Change-Id: Iac0aefff7a2277e1d3a36d8943e285a226a6830f
Closes-Bug: #1897532
2020-10-08 22:11:50 -04:00
tushargite96 3b255b7696 Enable barbican jobs to run on ubuntu focal
This is fixed by
SO removing the TODO to anable to run the job on ubuntu focal.

Change-Id: Idce913345c1bf8a47e678d706364c09837221a82
2020-10-06 12:25:15 +05:30
Zuul 6336800cbd Merge "[goal] Migrate cinder-tempest-plugin jobs to focal" 2020-09-24 03:20:23 +00:00