As per victoria cycle testing runtime and community goal
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).
Tempest based jobs are migrated automatically via devstack
base job start running on Focal but stable jobs testing stable
branch needs to keep running on their supported
distro version which is bionic from train till ussuri.
Also, remove stein support (removed from tempest)
and add a job for victoria.
Change-Id: I3d792925e81172ae8abe75c5ceb2d5a039fc84f7
Story: #2007865
Task: #40184
The openstack can have multiple glance stores deployed/available.
It may be a proper thing to copy newly created signed image into
all the available glance stores so barbican tempest tests can access
image regardless on which compute and storage backend they are ran on
and regardless on which glance store is local.
Additionally there is a nova-compute conf parameter[1] which can even
prevent instances being spawned from image which is not available in local
glance store.
The copy-image would happen only if import_image tempest cong option
is available which indicates glance multistore is available.
[1] https://review.opendev.org/#/c/657078/
Change-Id: I1f0d8be1b237da0c96e820c4b3dca09a83b29752
Current skip runs from the testcase and consumes time and resources.
Changed the skip to decorator.
Change-Id: Ia98fa1607c56b34ed1c764873f2909f423d1fffd
1.update barbican and tempest plugins links to the lastest ones
2.since we don't use launchpad to report bugs,replace it with
storyboard.openstack.org
Change-Id: I287563a7abfa57021cbdebeece35057e85691056
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Change-Id: Ia59a23a36ebb8548a20e894000f7342c73012eac
Remove six Replace the following items with Python 3 style code.
- six.moves.urllib
- six.binary_type
Change-Id: I234c3b205ee21b59953aa6ce7af5c2a1e4a6cfa6
It seems this dummy test has been around since the creation of the plugin,
but it is not really needed.
Change-Id: Ic17ac37472dc2742fa5d6299ff5724bfd9f7197e
The option is deprecated for more than 4 years already and it will
be removed soon, see the change in Tempest [1]
Starting Tempest 25.0.0 release, CONF.scenario.img_file need
a full path for the image. CONF.scenario.img_dir was deprecated
and will be removed in the next release. Till Tempest 25.0.0,
old behavior is maintained and keep working but starting
Tempest 26.0.0, you need to specify the full path in
CONF.scenario.img_file config option.
This patch does analogically the same change as was done in Tempest,
in order to give users of the plugin some time for removing img_dir.
[1] https://review.opendev.org/#/c/710996
Related-Bug: #1393881
Change-Id: I610d267eab287e3df8dd428621c4d3abace6dd0c
1. Tempest has an option CONF.compute.compute_volume_common_az to make
sure that Volume and Instance are created in common AZ If Availability
zones are used. The paramater is respected when instance is created
because tempest.common.compute.create_test_server() is used but not
respected when volume is created for test purpose. Let's make sure
AZ is set when volume is created if parameter is set.
2. The plain Encryptor provider is not support on ceph backends, the
test test_encrypted_cinder_volumes_cryptsetup fails on:
cinder.exception.VolumeDriverException: Volume driver reported an error:
Provider plain not supported.
This comes from [1] which is called in [2]. The Plain provider will be deprecated
in future completely.
[1] https://opendev.org/openstack/cinder/src/branch/master/cinder/volume/volume_utils.py#L1195
[2] https://opendev.org/openstack/cinder/src/branch/master/cinder/volume/drivers/rbd.py#L877
Change-Id: Ib6290ed1ad5779e4e6fed449f3335dbdada42f0d
Define here the barbican tempest plugin which rely on
barbican-tempest-plugin, following the common patterns:
- follow the rules for naming (repository name as prefix,
remove some redundant details);
- define branch-specific jobs from the most basic job
to catch regressions against older branches;
- remove barbican-simple-crypto-devstack-tempest-py35,
long gone, from the experimental queue.
Change-Id: I106addbe99b1bd4ed72ab07aba16031067503483
... instead of the encryptor classes, whose direct usage has been
deprecated since Ocata.
See also Id221414d74af8413084c7935b762f93b7ce43c42 which applied
those changes to tempest.git.
Change-Id: I05b0200b80d8ae957caaa53d5006b050d2d49da6
oslosphinx project is retired. Since this repo does not build any docs,
we can remove oslosphinx and sphinx requirements directly.
Change-Id: If6b19082bc1092f5322dc529458af1e07da90194
Without this patch, if the barbican tempest plugin is installed in an
environment running with `[glance]/verify_glance_signatures] set to
false in nova.conf, which is the default value, the test will fail.
Enabling glance signature verification unconditionally in order to
support this test is not realistic, as it then prevents users from
booting from unsigned images which may not always be desired. This patch
adds a configuration option to allow for disabling the
`test_signed_image_upload_boot_failure` test, so that we can still run
the majority of the plugin tests for a standard environment with default
nova configuration. The new option defaults to `True`, meaning assume
that nova's configuration has been overrridden to enforce image
verification, which allows the barbican CI to run as normal with no
configuration changes, but it allows operators to explicitly disable the
test as needed.
Change-Id: Ibb5c06ce2773e0ee13bda97717e8e18e77e0be7c
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: I145f449d42c0d9a9102ae5216dde4d75d9c37855
Story: #2002586
Task: #24285
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: I3fb32622b029bfadef7f34e973d8277c107112f0
* From rocky release projects are consuming the volume featured
enabled v3 API, Since the earlier code has support
for v1, v2 and since api_v3 is used in tempest.conf, it will give
AttributeError: 'Manager' object has no attribute 'volumes_client'.
The above patch fixes the issue.
* Keep cinder v1 api as tempest plugin is branchless, it would avoid
breakage if someone is still consuming it.
Closes-Bug: #1775353
Change-Id: Ia9d070a6033a8192112dbaa1704b1de6838051c5
Cinder volume delete [1] is executed during resource cleanup.
So, if test fails due to some reason then it tries to delete a volume
which is "in-use" state. Detach volume should be executed before
trying to delete the volume. This patch adds nova_detach volume
as a cleanup task.
[1] a6d945d8e6/barbican_tempest_plugin/tests/scenario/manager.py (L229)
Change-Id: I3457bb6fc22a7bb6a32c8d6f4ea5879aeb8d43c5
Related-Bug: #1755485
e.g. services/key_manager/json/secret_client.py
is importing six unconditionally, so it is good to
declare the dependency appropriately.
Change-Id: I62eab606546c8654bd42b47b054c0c041f60e864