Merge tag '1.15.0' into debian/dalmatian
cinder-tempest-plugin 1.15.0 release
meta:version: 1.15.0
meta:diff-start: -
meta:series: dalmatian
meta:branch: master
meta:release-type: release
meta:pypi: no
meta:first: no
meta:release:Author: Elod Illes <elod.illes@est.tech>
meta:release:Commit: Elod Illes <elod.illes@est.tech>
meta:release:Change-Id: I2161b328a1e4d4b1be417ff43d7b485477a3dc93
meta:release:Code-Review+2: Elod Illes <elod.illes@est.tech>
meta:release:Code-Review+2: Thierry Carrez <thierry@openstack.org>
meta:release:Workflow+1: Thierry Carrez <thierry@openstack.org>
Thomas Goirand
1 year, 8 months ago
| 253 | 253 | Integration tests that runs with the ceph devstack plugin, py3 |
| 254 | 254 | and enable the backup service. |
| 255 | 255 | vars: |
| 256 | # FIXME: change I29b1af0a4034decad to tempest added image format tests that | |
| 257 | # cannot pass in this job because the image data takes a optimized path that | |
| 258 | # bypasses nova's checks. Until the nova team decides on a strategy to handle | |
| 259 | # this issue, we skip these tests. | |
| 260 | tempest_exclude_regex: (tempest.api.image.v2.test_images_formats.ImagesFormatTest.test_compute_rejects) | |
| 256 | 261 | configure_swap_size: 4096 |
| 257 | 262 | devstack_local_conf: |
| 258 | 263 | test-config: |
| 303 | 308 | parent: cinder-tempest-plugin-lvm-barbican-base |
| 304 | 309 | vars: |
| 305 | 310 | devstack_localrc: |
| 306 | CINDER_ISCSI_HELPER: lioadm | |
| 307 | ||
| 308 | - job: | |
| 309 | name: cinder-tempest-plugin-lvm-lio-barbican-centos-8-stream | |
| 310 | parent: cinder-tempest-plugin-lvm-lio-barbican | |
| 311 | nodeset: devstack-single-node-centos-8-stream | |
| 312 | description: | | |
| 313 | This jobs configures Cinder with LVM, LIO, barbican and | |
| 314 | runs tempest tests and cinderlib tests on CentOS Stream 8. | |
| 311 | CINDER_TARGET_HELPER: lioadm | |
| 315 | 312 | |
| 316 | 313 | - job: |
| 317 | 314 | name: cinder-tempest-plugin-lvm-lio-barbican-centos-9-stream |
| 375 | 372 | parent: cinder-tempest-plugin-lvm-barbican-base |
| 376 | 373 | vars: |
| 377 | 374 | devstack_localrc: |
| 378 | CINDER_ISCSI_HELPER: tgtadm | |
| 375 | CINDER_TARGET_HELPER: tgtadm | |
| 379 | 376 | |
| 380 | 377 | - job: |
| 381 | 378 | name: cinder-tempest-plugin-cbak-s3 |
| 16 | 16 | from tempest.lib import decorators |
| 17 | 17 | from tempest.lib import exceptions |
| 18 | 18 | |
| 19 | import testtools | |
| 20 | ||
| 19 | 21 | from cinder_tempest_plugin.rbac.v3 import base as rbac_base |
| 20 | 22 | |
| 21 | 23 | CONF = config.CONF |
| 308 | 310 | def test_force_delete_snapshot(self): |
| 309 | 311 | self._force_delete_snapshot(expected_status=exceptions.Forbidden) |
| 310 | 312 | |
| 313 | # We don't need to skip the unmanage because the failure should happen at | |
| 314 | # the API level, so it should fail regardless of the driver support for | |
| 315 | # unmanaging snapshots. | |
| 311 | 316 | @decorators.idempotent_id('35495666-b663-4c68-ba44-0695e30a6838') |
| 312 | 317 | def test_unmanage_snapshot(self): |
| 313 | 318 | self._unmanage_snapshot(expected_status=exceptions.Forbidden) |
| 314 | 319 | |
| 320 | @testtools.skipUnless(CONF.volume_feature_enabled.manage_snapshot, | |
| 321 | 'manage snapshots are disabled') | |
| 315 | 322 | @decorators.idempotent_id('d2d1326d-fb47-4448-a1e1-2d1219d30fd5') |
| 316 | 323 | def test_manage_snapshot(self): |
| 317 | 324 | self._manage_snapshot( |
| 361 | 368 | def test_force_delete_snapshot(self): |
| 362 | 369 | self._force_delete_snapshot(expected_status=exceptions.Forbidden) |
| 363 | 370 | |
| 371 | # We don't need to skip the unmanage because the failure should happen at | |
| 372 | # the API level, so it should fail regardless of the driver support for | |
| 373 | # unmanaging snapshots. | |
| 364 | 374 | @decorators.idempotent_id('dd7da3da-68ef-42f5-af1d-29803a4a04fd') |
| 365 | 375 | def test_unmanage_snapshot(self): |
| 366 | 376 | self._unmanage_snapshot(expected_status=exceptions.Forbidden) |
| 367 | 377 | |
| 378 | @testtools.skipUnless(CONF.volume_feature_enabled.manage_snapshot, | |
| 379 | 'manage snapshots are disabled') | |
| 368 | 380 | @decorators.idempotent_id('c2501d05-9bca-42d7-9ab5-c0d9133e762f') |
| 369 | 381 | def test_manage_snapshot(self): |
| 370 | 382 | self._manage_snapshot( |
| 70 | 70 | # Create a multiattach volume |
| 71 | 71 | volume = self.create_volume(volume_type=multiattach_vol_type['id']) |
| 72 | 72 | |
| 73 | # Create encrypted volume | |
| 74 | encrypted_volume = self.create_encrypted_volume( | |
| 75 | 'luks', volume_type='luks') | |
| 73 | # Create a volume with the default volume type | |
| 74 | default_volume = self.create_volume() | |
| 76 | 75 | |
| 77 | # Create a normal volume | |
| 78 | simple_volume = self.create_volume() | |
| 76 | # Create other volume | |
| 77 | if CONF.compute_feature_enabled.attach_encrypted_volume: | |
| 78 | other_volume = self.create_encrypted_volume( | |
| 79 | 'luks', volume_type='luks') | |
| 80 | else: | |
| 81 | # Create secondary volume type | |
| 82 | second_vol_type = self.create_volume_type() | |
| 79 | 83 | |
| 80 | # Attach normal and encrypted volumes (These volumes are not used in | |
| 84 | other_volume = self.create_volume( | |
| 85 | volume_type=second_vol_type['id']) | |
| 86 | ||
| 87 | # Attach default and secondary volumes (These volumes are not used in | |
| 81 | 88 | # the current test but is used to emulate a real world scenario |
| 82 | 89 | # where different types of volumes will be attached to the server) |
| 83 | self.attach_volume(server_1, simple_volume) | |
| 84 | self.attach_volume(server_1, encrypted_volume) | |
| 90 | self.attach_volume(server_1, default_volume) | |
| 91 | self.attach_volume(server_1, other_volume) | |
| 85 | 92 | |
| 86 | 93 | instance_ip = self.get_server_ip(server_1) |
| 87 | 94 |