Commit Graph

24 Commits

Author SHA1 Message Date
Ade Lee 933a7b7e6c Add fips check jobs
This patch adds two new FIPS enabled jobs to determine if there are any
issues when FIPS is enabled.

Because the FIPS jobs currently run on centos, code is added to the
test setup script to set up the databases correctly.  Also had
to increase the swap space on the nodes; see [0] for an explanation.

[0] https://review.opendev.org/c/openstack/devstack/+/803706

Depends-On: https://review.opendev.org/c/openstack/devstack-plugin-nfs/+/847087
Depends-On: https://review.opendev.org/c/openstack/cinder-tempest-plugin/+/847086

Change-Id: Ib85b6ecc6f1b12eb8afa866e56afbfb13aad0cba
2023-04-18 19:45:55 +00:00
Luigi Toscano 7e04b5b0d4 Handle the case when tempest fails
Before this change, the errors from tempest run are suppressed
in order to always execute cinderlib tests.

Use the variable exported by run-tempest instead,
and fail properly if needed.

This is a port of Ic1fd6fcc9b9183f195c66f0022e913ae9734c97b
from cinder-tempest-plugin.git to this repository.

Change-Id: I216a82a29c7fb6b1b2fac95b2a1af667c4e2b22d
2022-05-03 17:22:27 +02:00
Luigi Toscano 1c0c25babb Native multibackend-matrix Zuul v3 job
Port the legacy legacy-tempest-dsvm-multibackend-matrix job to the
native Zuul v3 syntax, and rename it following the guidelines
(cinder-multibackend-matrix-migration).

This job tests the migration between two different backends
specified through the volume.backend_names configuration
key in tempest.conf.

Now the job leverages the existing zuul code, namely the
run-tempest role, which is called multiple times with all
the possible combinations of the 3 tested backends
(lvm, ceph, nfs) where the source and the destination differ.

The final JUnitXML output summarizes the test results
for each of the tested combinations.

Change-Id: I34e7e48ee63c4c269f82ae178a7118ed402cad6d
2021-09-08 01:05:44 +02:00
Luigi Toscano 9487f0f408 zuul: collect cinderlib logs from tempest node(s) only
The functional tests are executed from the tempest node(s), which means
that the collection must happen from the same place, not all nodes;
otherwise the playbook code fails on pure compute nodes.

Change-Id: Ibe1796e1380add34b6d8f19606bb55fda13c3c08
2020-07-16 14:42:29 +02:00
Luigi Toscano f9019679b3 Disable siblings for the cindelib functional tests
Follow the same pattern of the other jobs which deploy devstack
but runs also functional tests (see devtack-tox-functional
and devstack-tox-functional-consumer).

Without this, the older branches where cinderlib functional tests
use Python 2 (stein, and soon train when that is branched) fails
because they try to install packages part of which are Python 3
only.

The same change was applied to the branchless jobs defined
inside cinder-tempest-plugins: https://review.opendev.org/738078/

Change-Id: I2e8af74bae63c487e786da6e99aa4827029a05a2
2020-06-26 22:10:58 +02:00
Luigi Toscano 6c1e52cefc Native Zuul v3 cinder-grenade jobs
Specialize the grenade-multinode job and test the variations
on upgrade where a few services are available on the subnode only
(c-bak only, c-bak+c-vol, c-bak+c-sch+c-vol).

Also, use grenade instead of grenade-py3. The former is now used
(after Iea355514ec7cc2a52ed5e88c356bcb1cdeadd639) in
integrated-gate-storage instead of the latter, which means
that we need to change it in order to apply the value of
irrelevant-files.

Depends-On: https://review.opendev.org/548936
Change-Id: I3eac1afcbb69e25e9b2a916910caf3291aa7c1fe
2020-05-01 00:23:25 +02:00
Luigi Toscano 9ab1ff0059 Port several legacy tempest jobs to Zuul v3
- cinder-tempest-lvm-multibackend is the simple LVM multibackend job
  and replaces legacy-tempest-dsvm-lvm-multibackend.
- remove legacy-tempest-dsvm-zeromq-multibackend, as ZeroMQ
  support was deprecated in Rocky and removed in Stein.
  It could be replaced by inheriting from
  cinder-tempest-lvm-multibackend in older branches
  when this patch is backported;
- replace cinder-tempest-dsvm-lvm-lio-barbican with
  cinder-tempest-dsvm-lvm-lio-barbican provided by
  cinder-tempest-plugins;
- replace legacy-tempest-dsvm-full-devstack-plugin-nfs with
  devstack-plugin-nfs-tempest-full, now provided by
  devstack-plugin-nfs;
- update cinder-plugin-ceph-tempest to also run cinderlib tests
  and make it inherit from devstack-plugin-ceph-tempest-py3.

Change-Id: Icdafaf55494b6dd74ec31c3572d7344fcc028166
2020-02-28 10:06:42 +01:00
Ghanshyam Mann 3ab8ec971c Move cinder grenade job to py3 and in cinder repo
below grenade jobs for cinder are present in opensatck-zuul-jobs
repo. These needs to run on py3 from Ussuri onwards and py2 for
stable/branch.

py2 version has been kept in opensatck-zuul-jobs and for ussuri
onwwards these has been migrated to cinder repo with py3 version.

- legacy-grenade-dsvm-cinder-mn-sub-bak
- legacy-grenade-dsvm-cinder-mn-sub-volbak
- legacy-grenade-dsvm-cinder-mn-sub-volschbak

Change-Id: I67d2504dd80214e615a45f605b0023ca6919fb73
2019-12-12 13:27:19 +00:00
Brian Rosmaita c93000b2cd Remove Python 2 support from testing and gate jobs
tox:
- bumped tox minversion to 3.1.0 to get 'ignore_basepython_conflict'
- tox 'ignore_basepython_conflict' allows us to factor basepython=
  python3 to the [testenv] but override it when using '-e py37'
  (that way you actually get python 3.7 instead of whatever the system
  has for python3)
gate:
- adjusted tempest-dsvm-lvm-lio-barbican to use python 3 for devstack
- removed openstack-python-jobs template as these tests are covered
  in py3 by openstack-python3-ussuri-jobs
- dropped integrated-gate template as these tests are covered by the
  integrated-gate-storage template, which is already python3
- dropped tempest-full jobs as these are covered in py3 by tempest-
  integrated-storage
- changed openstack-tox-functional to openstack-tox-functional-py37
  and made it voting

The legacy-grenade-dsvm-cinder-mn-sub-* jobs are converted to py3
in a different patch, https://review.opendev.org/#/c/695787/

Left py2 requirements and did not adjust setup.cfg to require py3.
This prevents breakage for any projects still installing cinder under
py2.  These can be changed by a follow up patch in January.

Co-authored-by: Sean McGinnis <sean.mcginnis@gmail.com>
Co-authored-by: Brian Rosmaita <rosmaita.fossdev@gmail.com>

Closes-bug: #1853372

Change-Id: I376bd708ecc864f29c35b7225f875bb20a98cd3c
2019-11-25 13:31:32 -05:00
Sandeep Yadav f2b0de24c6 Correcting typo in environment spelling
There is a typographical error in tempest-and-cinderlib-run.yaml.
Correcting spelling from enviroment to environment.

Change-Id: Iaebfd31bc2c4fd304a11c49da23f5f5efc513757
2019-07-31 06:25:25 +05:30
Gorka Eguileor d17760e066 Run cinderlib functional tests on Ceph job
This patch replaces job devstack-plugin-ceph-tempest with
cinder-plugin-ceph-tempest that inherits from it.

This job runs the same devstack-tempest.yaml playbook but also runs the
cinderlib-run.yaml playbook for the cinderlib functional tests.

Since the openstack/cinderlib project is a required project for this job
we'll be able to run cross-repo dependencies with cinderlib.

Change-Id: Ia532b3fcfbecee7c6dc7aa302e6d90a8067b7ff0
2019-06-13 19:19:07 +02:00
Zuul 88a2dbd084 Merge "Run cinderlib functional tests on LVM-LIO job" 2019-06-12 18:30:38 +00:00
OpenDev Sysadmins 3669d52048 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:26:48 +00:00
Ian Wienand c40765acdc 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: I394887884fb90778a6704bd6cf29783885cb5972
2019-03-24 20:33:14 +00:00
Gorka Eguileor 0bdb3cdd27 Run cinderlib functional tests on LVM-LIO job
This patch adds the openstack/cinderlib project as a required project
for cinder-tempest-dsv-lvm-lio-barbican job and then runs its functional
tests as part of the CI job.

With this we'll be able to run cross-repo dependencies with cinderlib
for the cinder-tempest-dsv-lvm-lio-barbican job.

Change-Id: I25c19cf1f7da6881807e729a326cd94d07b4c42d
2019-03-22 10:15:13 +01:00
Zuul d2de5bdbd5 Merge "Trim test list for lio-barbican job" 2019-02-26 18:10:18 +00:00
Eric Harney 8af8119ce1 Disable etcd3 for lio-barbican job
Test with local file locks instead of etcd.

Change-Id: I189e2be2ea3bb9eb0858d152d64f99bbef7295b2
2019-02-25 23:47:08 +00:00
Eric Harney 4334e44bb7 Trim test list for lio-barbican job
We're running a fair number of scenario tests
that we don't need to be here.  Just grab the
ones that are interesting for Cinder.

Change-Id: If17a249bc99d3e16bd57cdf7ce73e1ce3a739455
2019-02-21 16:23:30 -05:00
Eric Harney 737c50b4ea Disable failing backup tests in LIO/Barbican job
Change-Id: Ie4a5178b0705f2286805eba2a352a3f6b287762d
2018-06-06 10:45:40 -04:00
Eric Harney d1733a6e20 Disable test_volume_backup_restore for lio-barbican job
Tempest recently added this test and it is
failing here.

Change-Id: Idfe243347ec7fb529c253955b27d499718ef086e
2018-05-17 11:13:13 -04:00
Eric Harney 7ec55338da Enable slow tests for lvm-barbican job
We would likely benefit by running
tempest.scenario.test_encrypted_cinder_volumes tests
and
TestVolumeBootPattern.test_create_server_from_volume_snapshot

Change-Id: I5082926cc5ede463d67e3ab995e17983b5db3855
2018-03-13 11:01:21 -04:00
Eric Harney 39bc4d5a6a Rename lio job to lio-barbican
Indicate that this job is testing Cinder with
Barbican.

Change-Id: Ide9b5abfb681f921cd2fc6c412df6b21819af759
2018-01-30 14:41:56 -05:00
Eric Harney e298e43674 Test os-brick master in LIO gate job
Pull os-brick from git instead of pip
when testing on master.  For stable branches,
still pull os-brick from pip.

Change-Id: Ib9ebfa67020d99d83ebb33552677e9e2e334f9a7
2017-11-16 11:23:54 -05:00
Eric Harney 5601d336ca Add .zuul.yaml with LIO job
This replaces the legacy-tempest-dsvm-full-lio job.

Skip tests that are currently failing.

Change-Id: Ief6ff0771488417fc80a3ffe7505a0d478ec5eb6
2017-11-08 17:22:25 -05:00