Commit Graph

16 Commits

Author SHA1 Message Date
Zuul 6d76a0868c Merge "Remove secgroups related methods" 2022-10-20 10:44:03 +00:00
Zuul 5aab50bde0 Merge "Add skip for test_encrypted_cinder_volumes_cryptsetup" 2022-10-20 10:23:03 +00:00
Roman Popelka 29541dcf25 Remove secgroups related methods
As tempest.scenario.manager was announced stable interface in Tempest 27.0.0[1]
it can be now reused in plugins.

Barbican tempest plugin still uses nova-network old interface for floating ip
related methods, this patch removes them and use tempests's ones which
already use neutron's interface.[2]

Replaced/Removed methods:
    * _default_security_group
    * _create_security_group
    * _create_loginable_secgroup_rule
    * _create_security_group_rule

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0
[2] bbc9dd34f6

Change-Id: I7605fe11caa8ae5725e0c0583c623ebad73d40da
2022-07-13 15:49:32 +02:00
Roman Popelka 6c0902bea7 Remove get_remote_client method
As tempest.scenario.manager was announced stable interface in Tempest 27.0.0[1] it can be now reused in plugins.

Replaced methods:
	* get_remote_client

Related tempest commit:
f52c759e5c

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: Iab28d75999ae408a8bbefab76319f384e49cbcc0
2022-03-17 10:08:46 +01:00
Luigi Toscano 990536bb6c Use the encryption provider constants (2)
Follow-up of I05b0200b80d8ae957caaa53d5006b050d2d49da6
which fixes also the other leftover usage of a legacy
encryptor class (plain this time).

Change-Id: I8fc4e2e6ed84bf18a4c89c30ee5c40b743d00e46
2021-05-07 14:45:27 +02:00
Douglas Mendizábal d013596f3d Add secure-rbac gate
This patch adds a gate to test the new secure-rbac policy.

Currently, Tempest is unable to create system admin credentials
when the isolated networks option is set to true, so we disable
that option for this gate.

This patch also includes fixes needed to get the existing tests
to pass, as well as some skips for scenario tests that require
isolated networks.

We should be able to remove the skips once Tempest is fixed to
work with system admin.

Depends-On: I584f7b67f2f95caa7c4db3d9d9222d0a9d38442d
Change-Id: I0129ab6d15bc42d98a19e3551b8d009f9ad05e10
2021-03-24 17:26:01 -05:00
Benny Kopilov 183e0df532 Add skip for test_encrypted_cinder_volumes_cryptsetup
Ceph does not support Provider plain.
Volume driver reported an error: Provider plain not supported

Change-Id: If14e6abbf4baf58bda31a476b126bcc18987fc32
2021-03-02 15:59:52 +01:00
Marian Krcmarik da01199b5e Ceph Multibackend changes
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
2020-09-12 03:04:04 +02:00
Zuul a10345f993 Merge "Use the encryption provider constants" 2020-09-01 14:31:28 +00:00
Luigi Toscano 0a13a38541 Use the encryption provider constants
... 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
2020-04-22 15:57:27 +02:00
Jackie Truong f36d46b724 Add certificate validation scenario tests
This patch adds certificate validation scenario tests
incorporate cursive's new certificate validation feature.

Change-Id: Ica1d32ca66d6f89692e9cc90e415bf569332f58d
Implements: blueprint nova-validate-certificates
2020-03-13 21:18:57 +00:00
yatin 5ddcc7eefa Use addCleanup to detach volume instead of explicit detach
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
2018-03-27 17:06:44 +05:30
Ihar Hrachyshka 2d0cf0a500 Validate instances are accessible before messing with their disks
This should help to isolate failures that are generic from specific test
failures related to barbican. If a test can't pass simple connectivity
check, it's probably broken, and there is no point to attach disks,
because it won't work.

Related-Bug: #1742936
Change-Id: I96cd35392f638c0e5b668f4f3b15cf4cd6114b71
2018-01-31 06:12:11 +00:00
Ade Lee f3dcdd472a Add connection test to help diagnose failure
Change-Id: I979bb12907ef25bf9247bab1fa4eddc6a474c54c
2018-01-19 17:49:41 -05:00
yushangbin 078a6c435e Replace deprecated function in tempest
DeprecationWarning: Function 'tempest.test.services()' has moved to
'tempest.common.utils.services()' in version 'Pike' and will be
removed in a future version

Change-Id: Icc6409fcd140406b36a6a84dfa16de8a879cc3b2
2017-09-04 10:13:28 +08:00
dane-fichter 53f4fea68b Add volume encryption scenario tests
This change adds scenario tests for Cinder volume
encryption.

Change-Id: Ibe47a916ab77eeb970a2b201fbf1b8cf2409f4a2
Depends-On: Id9629ecbbc75e19eec81f60daec7b0a085bcdc12
2017-03-29 16:13:40 -04:00