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
This commit is contained in:
Andrey Kurilin 2023-12-04 20:15:20 +01:00
parent b8bc9ebb26
commit a8ac8cae28
4 changed files with 13 additions and 5 deletions

View File

@ -66,8 +66,7 @@
- tests/ci/playbooks
- rally-task-neutron-with-extensions:
voting: false
#- rally-task-nova:
# voting: false
- rally-task-nova
# it did not work for a long time
#- rally-task-senlin
#- rally-task-octavia:
@ -115,6 +114,7 @@
- rally_openstack/task/scenarios/neutron/trunk.py
- rally_openstack/task/scenarios/neutron/network.py
- tests/ci/playbooks
- rally-task-nova
- rally-verify-tempest
post:
jobs:

View File

@ -31,6 +31,10 @@ Fixed
`Launchpad-bug #2040486 <https://launchpad.net/bugs/2040486>`_
* ``confirm`` argument of ``NovaServers.resize_server`` scenario
cannot be passed any longer due to more strict validation from
python-novaclient library.
[2.3.0] - 2023-08-01
--------------------

View File

@ -502,6 +502,9 @@
users:
tenants: 2
users_per_tenant: 1
sla:
failure_rate:
max: 100
-
title: NovaServers.boot_server_from_volume_and_resize tests
scenario:

View File

@ -372,7 +372,8 @@ class BootServerFromVolume(utils.NovaScenario, cinder_utils.CinderBasic):
name="NovaServers.resize_server", platform="openstack")
class ResizeServer(utils.NovaScenario):
def run(self, image, flavor, to_flavor, force_delete=False, **kwargs):
def run(self, image, flavor, to_flavor, confirm=True,
force_delete=False, **kwargs):
"""Boot a server, then resize and delete it.
This test will confirm the resize by default,
@ -381,13 +382,13 @@ class ResizeServer(utils.NovaScenario):
:param image: image to be used to boot an instance
:param flavor: flavor to be used to boot an instance
:param to_flavor: flavor to be used to resize the booted instance
:param confirm: perform resize confirm action right after requesting
a resize. If False, resize revert action will be performed.
:param force_delete: True if force_delete should be used
:param kwargs: Optional additional arguments for server creation
"""
server = self._boot_server(image, flavor, **kwargs)
self._resize(server, to_flavor)
# by default we confirm
confirm = kwargs.get("confirm", True)
if confirm:
self._resize_confirm(server)
else: