Commit Graph

769 Commits

Author SHA1 Message Date
Zuul aeb9b13e93 Merge "Add scenario test: test instances with cinder volumes" 2024-04-05 21:16:02 +00:00
Zuul 8794025588 Merge "Allow tempest cleanup delete resources based on prefix" 2024-03-31 23:41:12 +00:00
Luigi Dino Tamagnone 9052dfcc85 Allow tempest cleanup delete resources based on prefix
A warning in command description of run cleanup first with dry-run
is added. The cleanup behavior is extended to allow users to delete
only resources if their name starts with a certain prefix.

Closes-Bug: #1945082
Change-Id: I65dfe051c891b3679538acec713e8616746c47f6
2024-03-29 20:14:15 +01:00
Ghanshyam Mann 8db2b1c203 Create releasenotes page for tempest 37.0.0, 38.0.0
Depends-On: https://review.opendev.org/c/openstack/releases/+/913952
Change-Id: I0840bbeafb3a2398998ccf199cab04067cb74b0c
2024-03-28 16:38:30 -07:00
Zuul 1dfa07524d Merge "Remove deprecated alias of test decorators (1/2)" 2024-03-28 20:33:59 +00:00
Takashi Kajinami 23fa0d2de2 Remove deprecated alias of test decorators (1/2)
These were deprecated during Pike cycle[1] and multiple cycles have
passed since then.

[1] cd36841ca2

Change-Id: I15929c6f2cd472ad96a6b7086ccb8ac81ccbe7c5
2024-03-28 11:40:47 +09:00
Ghanshyam Mann cfdaf9a4b9 Add releasenote to tag the Tempest for 2024.1 release
Updating the doc for the same.

Change-Id: Id1e7ac3e21aa713aa1a21740d59b547fd566f23b
2024-03-21 23:20:29 -07:00
Zuul 06552014ea Merge "Remove deprecated [network] dns_server options" 2024-03-17 21:03:34 +00:00
jskunda d744598179 Add scenario test: test instances with cinder volumes
This patch adds a scenario test instances with cinder volumes launches
on all available compute nodes, up to CONF.compute.min_compute_nodes.
Also 1 additional configuration is added: volume_types_for_data_volume.

Also function for create and add security group to server is moved
to tempest/scenario/manager.py to avoid code duplication.

Change-Id: I346a9505bc942e66aedad2029215617d0918a885
2024-03-15 18:29:36 +01:00
Zuul 1b548f951f Merge "Add option to specify source and destination host" 2024-02-28 21:03:16 +00:00
jskunda 5a7ed97b7f Add option to specify source and destination host
This patch adds new class of tests, in which it is possible to
specify source and destination host to migration.

Closes-Bug: #2028540
Change-Id: If07355464d1567c18bedbf07c479e61874ec2031
2024-02-24 22:34:55 +01:00
Ghanshyam Mann a7b530ce7a End support for stable/yoga
This marks the end of support for stable/yoga
which is moving to 'unmaintained' stage[1].
This remove the stable/yoga jobs and also adds
relesenote to mark the end of support of Yoga.

[1] https://review.opendev.org/q/topic:%22yoga-unmaintained%22

Change-Id: I364bcd69f55753e4c99f66240f743e3bc7205832
2024-02-07 12:34:55 -08:00
Zuul a605aff46d Merge "Clean up [identity-feature-enable] options for old releases" 2024-01-26 11:18:22 +00:00
Zuul 566ac3faa3 Merge "Remove nova_cert option" 2024-01-24 08:01:23 +00:00
Takashi Kajinami 1ae8b1db41 Remove deprecated [network] dns_server options
This option was deprecated some years ago[1] because it was unused.
It hasn't been used since then, too, so we can remove it now.

[1] e027ea931c

Change-Id: Id965f4b141d6ba83d4f6280f8da1475e73860cb2
2024-01-24 02:04:46 +00:00
Zuul 10ec447fd7 Merge "Remove rdp_console option" 2024-01-23 22:22:42 +00:00
Takashi Kajinami 73005a1452 Clean up [identity-feature-enable] options for old releases
Project tags API and application credentials API are default features
since Queens and we can now assume these features are available when
identity v3 API is available. Becuase queens and older releases are no
longer supported by tempest, we can drop the options to enable tests
for these features.

Also, access rules for application credentials has been a default
feature since train so we can also assume this feature is available,
because train and older releases are no longer supported.

Change-Id: I138ac02f61c5a0a22ce0d5ad2d600a09166a4764
2024-01-23 03:39:36 +00:00
Takashi Kajinami 304f7d7134 Remove rdp_console option
This option was deprecated some years ago[1] because of lack of actual
implementation. RDP console is used by Hyper-V which is being retired
because WinStackers project has been retired, so no one may implement
the test cases.

[1] d5bda71259

Change-Id: I8effa01766e63645b7afb8a11dca061b3cce0334
2024-01-23 10:08:54 +09:00
Takashi Kajinami 74c19b3a57 Remove nova_cert option
The nova-cert service was removed from nova during Pike cycle[1] and is
no longer available since 16.0.0 release. Because Pike and older
releases are no longer supported, the option can be removed now.

[1] https://review.opendev.org/c/openstack/nova/+/459460

Change-Id: If520dc802bced4acfddd75a05a31dd83bc8c6354
2024-01-23 10:03:10 +09:00
Zuul 1da7a33099 Merge "Remove [compute-feature-enabled] vnc_server_header" 2024-01-20 06:57:52 +00:00
Zuul 2921b3d3f4 Merge "Remove [compute-feature-enabled] block_migrate_cinder_iscsi" 2024-01-20 01:24:25 +00:00
Takashi Kajinami 4c73e54f94 Remove [compute-feature-enabled] vnc_server_header
This option was deprecated some years back[1], and has had no effect
since the 22.0.0 release.

[1] fd01d15d14

Change-Id: Ib2ac35eec958153e139f2fcfee05c2d6aeb56e81
2024-01-19 22:09:22 +00:00
Takashi Kajinami 019e04c6e1 Remove [compute-feature-enabled] block_migrate_cinder_iscsi
This option was removed a few years ago[1], and is no longer needed
after queens EOL, according to the commit message.

[1] 48fe99faf2

Change-Id: Ia3985fcdda570c5e0cd32bdd87abfabb0ff516ac
2024-01-20 00:53:43 +09:00
Maxim Sava bd9cbd35cc Add delete image from specific store API
This patch add delete image from specific store API as in doc [1] and
move create_stage function to image base class
[1] https://docs.openstack.org/api-ref/image/v2/#delete-image-from-store

Change-Id: Ifd07423b5ec3f10e7c21125f52b1ab9e5ed35467
2023-12-13 09:42:28 +02:00
Luigi Dino Tamagnone 17053d69e5 Adding tempest prefix option in tempest.conf
Adding a new config option in tempest.conf as the prefix for the random
name resources with this new option all the resources created by
tempest will have the prefix defined by resource_name_prefix option
in tempest.conf. If not defined the default is tempest.

Tempest cleanup CLI will then use this config option to cleanup only the
resources that match the prefix. Make sure this prefix does not match with
the resource name you do not want Tempest cleanup CLI to delete.

This is a patch created after the conversation on
https://review.opendev.org/c/openstack/tempest/+/879923?tab=comments

Related-Bug: #1945082
Change-Id: I663a6307a5aa63299d20a304188efe6d29aea9d3
2023-12-06 21:24:14 +01:00
Lukáš Piwowarski 553d91b51e Fix cleanup for object_storage tests
This reverts change I98a75cbf119ba8126253a681c046f4cf44b1607e.

Volume backup tests create a container when Swift is used as a backup
driver. This causes a failure of an object storage test [1] as it
expects no containers being present before the testing.

This patch fixes the cleanup by deleting properly the containers
created during the volume backup tests. Before the deletion we check
using a new tempest.conf option whether swift is used as a backup
driver.

This patche also un-skips the
test_volume_backup_create_get_detailed_list_restore_delete test as the
patch ensures that we do not use the container parameter in the API
call when Swift is not used as a backup driver.

[1] https://opendev.org/openstack/tempest/src/tempest/api/object_storage/test_account_services.py#L67

Closes-Bug: #2034913
Change-Id: I33ba1838bf0bfcf94424e7288249dae3feeeb2a2
2023-10-09 07:28:50 +00:00
Ghanshyam Mann 2ce81e5185 Create releasenotes page for tempest 35.0.0, 36.0.0
Change-Id: I94bcfe2ee10c222a5c3845743ad889fb4a80442d
2023-09-27 10:47:34 -07:00
Ghanshyam Mann 2d5987fbe6 Add releasenote to tag the Tempest for 2023.2 release
Updating the doc for the same.

Change-Id: Idfdaabd01cc4e872efca3939e0494b059c14f431
2023-09-22 03:06:56 +00:00
Zuul 49c64a985c Merge "Remove Glance v1 APIs tests" 2023-08-16 15:03:11 +00:00
Zuul 5cf76f44e6 Merge "Skip failing tests affected by minimum password age" 2023-08-14 16:42:26 +00:00
Ghanshyam Mann 3562cd0017 Remove Glance v1 APIs tests
Glance v1 APIs were removed in Rocky and tempest master
does not support the Rocky release. If glance v1 APIs
needs to be tested for older release then older Tempest
can be used.

This removes the Glance v1 APIs tests, config option,
and its service clients.

Change-Id: I6741e2204de251ee8f16b0249a73bee5912c1135
2023-08-14 11:35:59 +02:00
Katarina Strenkova 702f0befce Skip failing tests affected by minimum password age
Some identity api tests are failing, when keystone parameter
minimum_password_age is set to value greater than 0. It causes inability
to update user's password more than once per test suite. As in this test
suite it is required total of four times, this patch suggests skipping
these tests to avoid complicated workaround.

This bug has been discussed in several patches [1][2].

Additionaly, config option for user_minimum_password_age is added into
tempest/config.py, to allow users to work with this keystone parameter.

[1] https://review.opendev.org/c/openstack/tempest/+/806671
[2] https://review.opendev.org/c/openstack/tempest/+/838726

Related-Bug: #1946459
Change-Id: I418e4001b0aa27f10a78f3490cc233293c30c274
2023-08-10 07:20:27 +00:00
Zuul 3e996dc6ce Merge "Remove nova-network tests" 2023-08-08 13:04:38 +00:00
Zuul 982f31b9f2 Merge "Add image task client and image tests task APIs." 2023-08-06 14:50:18 +00:00
Ghanshyam Mann 5b5e81c6a1 Remove nova-network tests
nova-network was removed in rocky release
and tempest master does not support rocky so
we can remove those tests now.

Along with the tests, it also removes the below
service clients:
    * floating_ip_pools_client
    * floating_ips_bulk_client
    * fixed_ips_client
    * list_virtual_interfaces

Change-Id: I682ebb0e3ea0d7ef0e429ad32899c406e46ffae7
2023-08-04 15:12:34 -07:00
msava 88660d436b Add image task client and image tests task APIs.
This patch add task APIs as in the doc following and tests for task APIs.

[doc]https://docs.openstack.org/api-ref/image/v2/#tasks

Change-Id: I237e0467a0e8edde0b2858551d8bc01e8ba410e0
2023-08-03 21:34:59 +03:00
Ghanshyam Mann c550f77976 End support for stable/xena
This marks the end of support for stable/xena
which is EM now [1]. This remove the stable/xena
jobs and also adds relesenote to mark the end of
support of Xena.

[1] https://review.opendev.org/c/openstack/releases/+/881254
    https://releases.openstack.org/

Change-Id: I1027823aa378e9c669dca5a1bc49a9ada604a3d7
2023-06-06 20:37:18 +00:00
Zuul 58e17903eb Merge "Add tests to check attachments are secure" 2023-05-24 10:38:00 +00:00
Gorka Eguileor cbaf22e85d Add tests to check attachments are secure
A vulnerability was detected in Cinder that could allow users to access
other people's volumes.

The solution was to limit some of the operations on attached volumes to
only OpenStack services.

This patch adds some negative tests to check that a user cannot directly
call Cinder to detach a volume, force detach it, terminate its
connection, or delete its attachment.

Depends-On: I612905a1bf4a1706cce913c0d8a6df7a240d599a
Related-Bug: #2004555
Change-Id: Ice6532ce7943e9a9363e443515946865541d09c2
2023-05-17 11:06:32 -07:00
Ghanshyam Mann 4054e13e65 Create releasenotes page for tempest 34.2.0
Change-Id: Ibc48eedb6c1fe7defca878c10805484b07b3f624
2023-05-09 12:54:57 -05:00
Ghanshyam Mann 79fe137cf6 Add release notes for 2023.2 cycle intermediate release.
Change-Id: I02c033604eb7e5bde5fb0e984d2d143abde2cbe8
2023-05-05 00:21:51 +00:00
Arx Cruz 05c805f7f3 Update v3_endpoint_type to use public
The default endpoint type for OpenStack Identity should be the public
version, and it was something missed for a while.

Change-Id: Ib679fb21d8d815317ecdd03e40dfe16e6ef3915e
2023-04-28 16:00:00 +02:00
Ghanshyam Mann 7fdc604079 Create releasenotes page for tempest 34.0.0
Change-Id: Ifceec758bd48c916682edb1db78585c87f7eb730
2023-03-17 17:02:45 -05:00
Ghanshyam Mann 50d52e239e Add releasenote to tag the Tempest for 2023.1 release
Change-Id: I11996f06bd17cdce4ee2313e4604474591c466a5
2023-02-25 02:53:28 +00:00
Ghanshyam Mann 35fc95dbd0 Fix creation of requested creds within the same project
We have a bug in dynamic creds creation where project creds
with different roles are created under a new projects. Creds
of different role of projects must be created within the same
project.

Fixing the creation of 'project_admin', 'project_member',
'project_reader', 'primary' creds in same projects. All the alt
creds will be created under same projects. but main and alt creds
will use different project, for example, 'project_alt_member'
and 'project_member' creds will be created in different project.

'admin' creds will continue be in new project as many test
use it as legacy admin.

Closes-Bug: #1964509
Change-Id: I9af005e2900195c42ecbbf7434facae2d3952f30
2023-02-22 15:46:42 +00:00
Julia Kreger a6614d38dd Allow SSH connection callers to not permit agent usage
While debugging the ``rescue`` test functionality with ironic's
tempest plugin, we discovered that if the environment suggests the
agent is available, then we may enter a situation where the test
can fail because paramiko prefers ssh over password authentication.

This is important, because for rescue functionality in particular,
it is password authentication based without the use of SSH keys,
as a temporary password is generated by the services and provided
to the user requesting to rescue the instance/node.

Instead of trying to make an assumption that password being present
means we should just disable the agent, explicitly allow the caller
to specify it.

Change-Id: Iefb6cb5cb80eb2b9a4307912c4d6d07c684ed70a
2023-02-02 08:30:32 -08:00
Ghanshyam Mann 3cafeddfe4 Add release notes page for version 33.0.0
Tempest 33.0.0 has been released [1].
This commit adds a new page for 33.0.0 release notes.

[1] https://review.opendev.org/c/openstack/releases/+/866857

Change-Id: Ied05cbc02509ff5a98a75bf18d2f08c30a5601ae
2022-12-27 01:47:18 +00:00
Zuul 54fd0732ec Merge "Add placement service in 'enforce_scope' config" 2022-12-14 03:40:48 +00:00
Ghanshyam Mann 5844fd9aeb End support for stable/wallaby
This marks the end of support for stable/wallaby
which is EM now [1]. This remove the stable/wallaby
jobs and also adds relesenote to mark the end of
support of Wallaby.

Depends-On: https://review.opendev.org/c/openstack/releases/+/862393

[1] https://releases.openstack.org/

Change-Id: Ie3bbbc80e4b2e7bca8e8b70fce1d31166220c6d3
2022-12-06 18:37:17 -06:00
Ghanshyam Mann b6521a8314 Add placement service in 'enforce_scope' config
Adding placement service in 'enforce_scope' config
so that we can switch the placement scope and new defaults
and test them.

Change-Id: Ie9a4c22dee892eae84f35af2b6b5ff2098225495
2022-11-30 14:59:39 -06:00