When testing with Ubuntu Jammy, this test is consistently failing. Wait
longer for Blazar to complete lease deletion, since server deletion is
only the first part of it.
Change-Id: Ibd48ad420c3f4de43950c15769c7701a7eb49222
1) Bump hacking max version to 3.0.1 and fix code style failures.
pep8 job is failing because the version of flake8 (flake8<2.7.0,>=2.6.0)
requested by hacking<1.2.0 is not compatible with pyflakes>=2.1.1.
Therefore the patch increases the max version of hacking.
2) Disable swift-proxy service which fails to start on stein. Disabled
other unneeded services while here.
Change-Id: I87c6d037fbbc24ef795ddbe26b5e297fb1bbc7a9
The following options have been deprecated for more than 4 years
already and currently are being removed from tempest:
* aki_img_file
* ari_img_file
* ami_img_file
Change-Id: I50559a47520c15b7ed09f10427ecae9a6ce123e1
Related-Bug: #1393881
This patch adds a global request id to each header for blazar requests
used in the scenario tests. Now the global request ids are in the debug
logs, which helps you to track each request over multiple OpenStack
services improving the debuggability for test failures.
Depends-On: https://review.opendev.org/#/c/670995/
Change-Id: Idd7095fa0c7af4b29a5a84b035fe1e882b995fa0
This patch adds API tests for List and Get host allocation API.
Partially Implements: blueprint resource-allocation-api
Change-Id: I597e163541776022c1152cab02f259c857b1a459
This patch changes the end date of leases to update in a test scenario
to have a period of time to prevent them from being rejected with the
"End date must be later than current and start date" error.
Change-Id: Id8bc8d5c850dd10d2d85b51620b2effe5494320e
Closes-Bug: #1821731
Tempest defines TimeoutException in the tempest.lib.exceptions module.
However the Blazar Tempest plugin imports the exception from the
tempest.exceptions module. It causes AttributeError instead of raising
TimeoutException.
Change-Id: I1a57b4cc66ae32793f93264c3b5f6c7ae67a8e4c
Supporting placement API, on reservation end, there could be a time lag
between the server deletion and the lease status transition.
This change inserts a waiting function before checking the lease status.
Change-Id: Ia39a8691f799ac3cd654a0af5f1930eb58093a0d
Needed-By: https://review.openstack.org/#/c/633203/
The current instance reservation test scenario is outdated because it
was written for the old instance plugin, which was removed in the Ocata
release.
This patch replaces it with a scenario test for the new instance
reservation feature.
Change-Id: Id6cb3f3a6471eee70000c42694870609068eba75
Closes-Bug: #1714438
The length of a host's extra capability key is limited to a maximum
of 64 characters. This error has been changed from 500 Internal Server
Error to 400 Bad Request in https://review.openstack.org/#/c/575699/.
This patch adds a test for that change.
Change-Id: I7f88354b917131d5848f3cfd7155ff60c19207a8
Tempest deprecated tempest.test.services [1]. It is now available in
tempest.common.utils.
[1] https://review.openstack.org/#/c/493668/
Change-Id: I09f3648f8a8618b6b487a63e2441dd92170d9a7a
The status of an instance could be 'ACTIVE' right after a lease ends,
since the task of deleting the instance is still in progress.
This patch replaces the assertion to check whether the instance is
terminated with a waiter method. The method periodically checks for the
existance of the specified instance until the instance is deleted.
* Code sync from https://review.openstack.org/#/c/527874/
Change-Id: I32f2ef3ddbb30da8061ccc035aae0428e6dd5450
This patch changes the start date of leases to "now" to prevent them
from being rejected for starting before the current date.
Closes-Bug: #1737880
Change-Id: Ic6b66c2b321ea01ebe9d71486e4357f5b93a5fe2
* In order to complete the tempest plugin split goal, we need to
refactor the blazar tempest plugin so that we can easily consume.
* use six.moves import range instead xrange to avoid flake8 error
Change-Id: I88f2a961d770d6deebd9af567d6407e677c102ae