OpenStack Testing (Tempest) of an existing cloud
Go to file
Lee Yarwood 5423c53095 scenario: Use wait_for_volume_attachment_remove_from_server in nova_volume_detach
Detaching a volume from an instance in Nova is an asynchronous
operation. While the request can be accepted the underlying act of
detaching the device from the instance, disconnecting the volume from
the host, updating cinder and deleting records in Nova can take some
considerable time.

As such when detaching a volume callers should continue to poll the
os-volume_attachments Nova API to determine when the underlying volume
attachment, also known as a Block Device Mapping or BDM, is removed.

Bug #1908399 outlines an issue where the scenario helper method
nova_volume_detach was being called multiple times during tests and
cleanup while only waiting for the volume status to change to available.
This allowed for a race to occur where additional requests could be made
to detach the volume while the volume attachment still remained in Nova
resulting in a 400 error being returned by n-api.

This change addresses this by switching between the volume resource
status and the volume attachment removal waiters.

Closes-Bug: #1908399
Change-Id: Ib6ae2c30be65eb444976b0330fd23d9457146284
2020-12-21 16:05:35 +00:00
doc Fix indentation for the example code in documentation. 2020-12-07 10:18:42 +01:00
etc Remove the Stress framework 2016-10-19 14:31:13 +02:00
playbooks Remove 'gabbi_tempest_path' from devstack-tempest job 2020-11-09 12:38:41 -06:00
releasenotes Add releasenote to tag the end of support for Stein 2020-12-14 23:57:51 +00:00
roles Improve tempest-cleanup ansible role 2020-11-03 21:47:14 +00:00
tempest scenario: Use wait_for_volume_attachment_remove_from_server in nova_volume_detach 2020-12-21 16:05:35 +00:00
tools Unskip Device detach compute tests on Focal 2020-11-01 18:47:32 +00:00
zuul.d Remove slow tag from test_minbw test 2020-12-07 20:03:17 +00:00
.coveragerc Remove the NegativeAutoTest Framework 2016-10-13 10:32:53 +02:00
.gitignore Add index page for plugins documents 2020-05-05 02:12:05 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:29:35 +00:00
.mailmap Update .mailmap for ghanshyam emails 2018-09-05 08:45:46 +00:00
.stestr.conf Switch Tempest CLI commands from testrepository to stestr 2018-02-13 08:16:33 +00:00
CONTRIBUTING.rst [ussuri][goal] Update contributor documentation 2020-04-19 17:44:59 -05:00
HACKING.rst Add index page for plugins documents 2020-05-05 02:12:05 +00:00
LICENSE Add License to Tempest. 2012-04-12 16:04:36 +02:00
README.rst Add PDF building 2019-09-11 16:42:28 +09:00
REVIEWING.rst Merge "Add 'single core approve' policy for plugins sanity jobs failure" 2019-09-25 03:55:51 +00:00
bindep.txt Update and replace http with https for doc links in tempest 2017-08-14 00:12:40 -07:00
requirements.txt Updating the paramiko version to 2.7.0 or greater 2020-09-11 10:21:23 -04:00
setup.cfg Switch testing to Victoria testing runtime 2020-05-05 14:35:52 +00:00
setup.py [ussuri][goal] Drop python 2.7 support and testing 2020-02-12 00:11:31 +00:00
test-requirements.txt Use unittest.mock instead of third party mock 2020-05-17 17:22:58 +00:00
tox.ini Revert "Use victoria stable constraint in tox to release 26.0.0" 2020-12-16 16:10:15 +00:00

README.rst

Team and repository tags

image

Tempest - The OpenStack Integration Test Suite

This is a set of integration tests to be run against a live OpenStack cluster. Tempest has batteries of tests for OpenStack API validation, scenarios, and other specific tests useful in validating an OpenStack deployment.

Get in touch via email. Use [tempest] in your subject.