4523 Commits

Author SHA1 Message Date
Damian Dąbrowski
582e8c0671 Revert "Fix Cinder service type"
This reverts commit ac333d4823615ee88daa44b4a95197cfbed46604.

Reason for revert:

Switching cinder service type to block-storage is not very optimal because volumev3 seems to be the recommended and most widely adopted option[1][2][3].

Reverting this commit because it will break most of the production environments.

Related bug report suggests few proper solutions.

Related-Bug: #2098991

[1] https://docs.openstack.org/cinder/latest/install/cinder-controller-install-obs.html#:~:text=Create%20the%20cinderv3,%24
[2] https://opendev.org/openstack/kolla-ansible/src/branch/master/ansible/roles/cinder/defaults/main.yml#L331
[3] https://github.com/openstack/openstack-ansible-os_cinder/blob/master/defaults/main.yml#L189

Change-Id: Ie85ce4a2d1666d42ca2e378f77b9bcd3b0be7102
2025-03-03 12:55:24 +00:00
Andriy Kurilin
4a9a54864f [ci] Generate a real raw and qcow2 image sfor tests
Also, this reduces payloadin neutron-trunk job. There is no indent to
test neutron as a part of Rally CI. And adds basic linting for ansible

Change-Id: I8129ae939d24d59688a535cdbbeff5d5f89f45c7
2025-03-03 12:33:28 +01:00
Zuul
a1e29cdebe Merge "Support create_volume_kwargs for relevant scenarios" 2025-02-18 11:54:25 +00:00
Zuul
0f908fbf6e Merge "Set image_alt_ssh_user to cirros" 2025-02-18 10:54:33 +00:00
Zuul
3fbabd91da Merge "Fix Cinder service type" 2025-02-17 17:26:46 +00:00
Jon Bernard
d8a16dbec9 Remove explicit cinder v3 endpoint test
Cinder now defaults to the v3 API and there are no longer multiple
versions/entrypoints.  This scenario can be deleted as it is now
redundant.

The test began breaking when devstack merged commit
d7c3c0accc89e4e99915c24fa7c3bff2e90a715ea to remove the 'cinderv3'
endpoint in keystone as 'block-storage' now points to the v3 API.

Change-Id: Ia5e045bef8485290fd54be6c8674ac0f0158e98c
2025-02-17 09:19:34 +01:00
Pierre Riteau
ac333d4823 Fix Cinder service type
Start using the 'block-storage' catalog type, which for DevStack has
pointed to the Cinder v3 API for many years now [1].

Similar to a recent change in Tempest [2].

[1] https://review.opendev.org/c/openstack/devstack/+/565479
[2] https://review.opendev.org/c/openstack/tempest/+/930296

Change-Id: I3570c8e785a8239360dc81c9485ad2398e84daa2
2025-01-23 16:13:23 +01:00
Pierre Riteau
1853aca838 Set image_alt_ssh_user to cirros
This fixes Tempest test test_rebuild_volume_backed_server with the
default image configuration.

Change-Id: Ic8918a11b3e7b2e55f2304719a6335b3eec0113e
2025-01-10 12:30:01 +01:00
Damian Dabrowski
c06215267e Support create_volume_kwargs for relevant scenarios
In some scenarios, rally creates a volume first and then it spins up a
VM using this volume.
Depending on the cloud configuration, there is a chance that volume will
be created in a different availability zone than a VM which will lead to
failure.

In some tests like 'boot_server_from_volume_and_resize' there already is
a support for 'create_volume_kwargs' and 'boot_server_kwargs' which
provide a way to define extra arguments for both volume and server
creation.

This patch implements 'create_volume_kwargs' and 'boot_server_kwargs'
for scenarios that may require it. It allows to explicitly define
availability zone when creating volume and a server.

'kwargs' argument in these scenarios was deprecated in favor of
'create_volume_kwargs' and 'boot_server_kwargs' but it's still supported
for backward compatiblity.

Change-Id: Ib43fa522e07afece38541d03ce70da87d8c836e4
2024-12-23 14:15:29 +01:00
Cyril Roelandt
85e56595d3 Python 3.14: do not use deprecated ast.Str
ast.Str has been deprecated since Python 3.8, and will be removed in
Python 3.14.

Change-Id: I1820466231a8fd3e46b5ec8fcf2138ccd8c73ede
2024-07-23 16:56:44 +02:00
Andriy Kurilin
7a45064547 Release 3.0.0
Change-Id: Ifa85b7af74a2d9990094dadc2198c154305daa87
3.0.0
2024-05-22 13:47:24 +02:00
Andriy Kurilin
9d53318f04 Multiple project updates
* upgrade Rally dependency to point to require 4.1.0

  This brings SQLAlchemy 2 support which is covered by
  unittests/functional tests now.

* dropping testtools test dep.

  We are dropping it just because standard unittest
  lib is good enough for our use

* deprecatng murani, sahara, senlin plugins as those projects are
  retired

Change-Id: I8ff6f8f8497907091a91c16a2e4a76051827397d
2024-05-21 11:41:13 +02:00
Zuul
c5cb9ba25b Merge "refectoring: Eliminate repetitive code" 2024-03-27 21:40:53 +00:00
Youngjun
371b48d45c refectoring: Eliminate repetitive code
- Removed to avoid repeatedly specifying dictionaries.

Change-Id: Ia0bcae7934646e01eea8e866b92b9b2b7d79f542
Signed-off-by: Youngjun <yj.yoo@okestro.com>
2024-03-13 14:23:43 +09:00
Youngjun
748cfbe997 refectoring: remove duplicated key
- Removed duplicate keys and values from the dictionary.

Change-Id: I1027ec33f18dd504ada9939a80e49c6984680548
Signed-off-by: Youngjun <yj.yoo@okestro.com>
2024-03-13 12:23:14 +09:00
do-gyun
2c05430515 Fix heat template validation when multi users
Fix that after the first user-related f.read(), the next user will attempt to f.read() at the end of the file, correcting the sending of blank content.

Closes-bug: #2054790
Change-Id: I95d73d3459087c8c18c1ecd5e7d1833268e7ed75
2024-02-26 14:13:28 +09:00
Andrey Kurilin
275e639388 Update u-c file
Change-Id: Idb1515ba381f3c0efa917c877c6722af58f63515
2024-01-18 14:25:04 +01:00
Andrey Kurilin
a5909fc8b0 Add nova_servers_list_page_size config option
New option should help to limit the size of pages while listening
nova servers

Change-Id: I5e6d6394bfc324d9e5b89988584d7c1bce598e5f
2024-01-16 16:18:57 +00:00
Andrey Kurilin
72bfcc6e27 use-rally-4-0-0
Change-Id: I462f9d28ba7f8280a50bf533c3c1105a9bd76bb2
2024-01-16 15:05:14 +01:00
Zuul
24981967fc Merge "Test python 3.11" 2024-01-11 18:48:25 +00:00
Ghanshyam Mann
eca93d05cb Test python 3.11
As per the current release tested runtime, we
need to test python 3.8 to python 3.11 so using the
generic python testing template which run the python
versions jobs as per the current release runtime.

Also, updating the same in python classifier in setup.cfg

Change-Id: I647dad04f5b457f396508361d68c88880d1258ca
2024-01-11 11:52:04 +00:00
Andrey Kurilin
e73a897642 [ci] Include pytest html reports for functional job
Change-Id: I35c68ab5ad3ff9ac2f12f383489a18d55d2d0bf1
2024-01-09 17:19:05 +01:00
Andrey Kurilin
615961558d Fix pep8 failures due to new hacking rules
Change-Id: Ie6cb4e8d6ab0ce5036566dd6900c45b734f1eb3d
2024-01-03 16:14:39 +01:00
Andrey Kurilin
9511371f73 Add support for cinder api microversions
Change-Id: I72ee9ac9a67f76176d516be16cafe6d769147818
2023-12-05 13:28:49 +01:00
Andrey Kurilin
89646a6cb4 Small improvements for Neutron Port and Nova Server cleanup
Change-Id: Ife293f744488ab8805b4da3187f342592eb5a54c
2023-12-05 09:34:40 +01:00
Zuul
682aeae21a Merge "Fix processing 'confirm' argument of NovaServers.resize_server scenario" 2023-12-04 22:54:33 +00:00
Andrey Kurilin
a8ac8cae28 Fix processing 'confirm' argument of NovaServers.resize_server scenario
In addition, the rally-task-nova zuul job is re-enabled with skipping
one workload to check all the others.

Change-Id: I0f0c838569ea2d5666fb17f415ca7fd4a384492f
2023-12-04 20:15:20 +01:00
Andrey Kurilin
c6ad72dce9 Turn on mistral ci job
Change-Id: Ie83a9ead4310743f435890287d5f116f65785f0c
2023-12-04 20:06:19 +01:00
Andrey Kurilin
b8bc9ebb26 Use proper cover job config
Change-Id: I18afb6d71432b553f22ac19b672223cec44176d6
2023-11-29 15:15:16 +01:00
Andrey Kurilin
d142db453a Re-enable rally-verify-tempest job
+ Add temporary hack for subunit parser that should work before the
  proper fix is merged to rally project
+ Temporary turns off coverage job, so we can do not write unittests for
  fix that should land to rally lib projectg

Change-Id: I1149fa83bba28d96bece26c9f978e192cf723de0
2023-11-29 15:14:39 +01:00
kimtaeseop
78e8190986 Set "existing_users" context for manila rally test
When the manila rally tests work, they can't use "share_networks" context.
Nowhere "existing_users" is set, the function as follows can't be called.
https://github.com/openstack/rally-openstack/blob/master/rally_openstack/task/contexts/manila/manila_share_networks.py#L185
If rally use existing_users, set "existing_users" context as well.

Closes-Bug: #2040486
Change-Id: I9af9198d7202f7f674790d2b88ab3c8067d6cb35
2023-11-22 11:21:51 +00:00
Andrey Kurilin
0868e5cc55 Drop support of py36 and py37
Change-Id: I16e4c61c8b166d5e128907d79ab6f857f98bd82b
2023-11-21 11:53:51 +00:00
Andrey Kurilin
8dbd9b426b [ci] Temporary turn off rally-verify-tempest job
Change-Id: Ia4f0dd637ac6b9e0f07ac0d1c1e66f5f718c4aa9
2023-11-21 12:35:09 +01:00
Andrey Kurilin
9ff67887bf Fix and re-enable function tox job
Change-Id: Ie6735bbc9a974af1ac44c9777a1d63e513f36469
2023-08-20 18:11:57 +02:00
Andrey Kurilin
5827d34499 Re-enable rally-verify-tempest
Change-Id: Icbe31fc82eb7b7731b43c1346201b642be76ea4e
2023-08-20 13:07:24 +02:00
Brian Haley
a2bad02968 Change to use openstack instead of nova command
One of the playbooks was using 'nova flavor-create',
which was causing failures in the neutron gate. Change
to use 'openstack flavor create' instead as nova has
been deprecated for a while.

Change-Id: I193396ecdff50748c8253287d3e9a273be843db4
Closes-bug: #2031971
2023-08-20 11:34:08 +02:00
Andrey Kurilin
eecf463d63 Temporary skip checking task cleanup at CI
DevStack started to install projects into a venv, so it is no longer
available via ansible run for ansible modules.
The fix will require to rework this logic, but we need to unblock CI.

Change-Id: Ic5e296c62b6ee85a9d105569f1007508d9cd1575
2023-08-20 09:03:55 +00:00
Andrey Kurilin
9e367ea2e9 Tempory turn off all failing jobs
We are temporary turn them off to fix multiple issues separetely

Change-Id: I22ec5d05e25db332bca2ac9ec481eec129d65d99
2023-08-20 10:50:29 +02:00
Andrey Kurilin
1bd13edb94 Update release date for 2.3.0
Change-Id: I711e96833719d4e7fbbbf1e4e468952283690bca
2.3.0
2023-08-01 14:49:24 +02:00
Zuul
19b1f934dc Merge "Release 2.3.0" 2023-07-27 22:28:42 +00:00
Zuul
bd6e50e8e3 Merge "Bring back tempita to u-c" 2023-07-27 13:52:57 +00:00
Andrey Kurilin
712e2c8fa9 Release 2.3.0
Change-Id: I8c23c3f9862577365de8a19c0f4c897624955567
2023-07-27 16:46:27 +03:00
Damian Dabrowski
8e8f6b2390 Bring back tempita to u-c
Tempita pip package is broken and not maintained since 2013[1].
Because it uses 'use_2to3' command in all versions[2] which is
deprecated since setuptools>58[3], it is not impossible to build this
package from source.
The only installation method that still works is wheel, but PyPI
does not store wheels for development versions(0.5.3dev in our case).

So if user runs `pip install` with '--pre' attribute and tempita is not
constrained to 0.5.2, then pip attempts to install 0.5.3dev that does
not have wheel stored in PyPI and the install command fails because
building this package from source does not work.

Openstack-Ansbile project is affected by this issue.

[1] https://pypi.org/project/Tempita/#history
[2] https://github.com/agramfort/tempita/blob/master/setup.py#L53
[3] https://setuptools.pypa.io/en/latest/history.html#v58-0-0

Change-Id: Id01c10796bb307c2696214dc9b3217242a9199dc
2023-07-03 19:25:56 +02:00
hwang
8ba3955f5a Correct some cases' description
In some OpenStack rally cases, there are some wrong descriptions.
So this patch is to fix them.

Change-Id: Ib07d1907747912ff4ad3514fd67cf41c32d3878a
2023-06-30 15:27:46 -07:00
Zuul
95aea5e50c Merge "Update uc file" 2023-06-22 21:04:39 +00:00
Andrey Kurilin
f680f8fdd7 Update uc file
Change-Id: Ie51d6935177654e2919cd2b6309431fc227b7503
2023-06-21 15:39:33 +02:00
Zuul
15d1963083 Merge "Fix rally test can't update device_id" 2023-06-18 21:59:17 +00:00
Zuul
58c331c8fb Merge "Require Rally>=3.4.0" 2023-06-18 20:02:01 +00:00
Pierre Libeau
72f4e27e2d Fix rally test can't update device_id
In neutron-lib new default policy disallowed create_port and update_port
with device_id parameter. This parameter is only for admin.

Bug #1986969

Change-Id: Ie2b42192b0233c3c30f08d2ef79de754922f012d
2023-06-18 18:31:33 +00:00
Andrey Kurilin
4ef9de1628 Require Rally>=3.4.0
Change-Id: I14185e3e013a3e80f05f87060cdea116da102abd
2023-06-18 19:17:18 +02:00