Merge "Fix processing 'confirm' argument of NovaServers.resize_server scenario"
This commit is contained in:
commit
682aeae21a
@ -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:
|
||||
|
@ -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
|
||||
--------------------
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user