OpenStack Testing (Tempest) of an existing cloud
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
2 years ago
doc Fix indentation for the example code in documentation. 3 years ago
etc Remove the Stress framework 7 years ago
playbooks Remove 'gabbi_tempest_path' from devstack-tempest job 3 years ago
releasenotes Add releasenote to tag the end of support for Stein 2 years ago
roles Improve tempest-cleanup ansible role 3 years ago
tempest scenario: Use wait_for_volume_attachment_remove_from_server in nova_volume_detach 2 years ago
tools Unskip Device detach compute tests on Focal 3 years ago
zuul.d Remove slow tag from test_minbw test 3 years ago
.coveragerc Remove the NegativeAutoTest Framework 7 years ago
.gitignore Add index page for plugins documents 3 years ago
.gitreview OpenDev Migration Patch 4 years ago
.mailmap Update .mailmap for ghanshyam emails 5 years ago
.stestr.conf Switch Tempest CLI commands from testrepository to stestr 5 years ago
CONTRIBUTING.rst [ussuri][goal] Update contributor documentation 3 years ago
HACKING.rst Add index page for plugins documents 3 years ago
LICENSE Add License to Tempest. 11 years ago
README.rst Add PDF building 4 years ago
REVIEWING.rst Merge "Add 'single core approve' policy for plugins sanity jobs failure" 4 years ago
bindep.txt Update and replace http with https for doc links in tempest 6 years ago
requirements.txt Updating the paramiko version to 2.7.0 or greater 3 years ago
setup.cfg Switch testing to Victoria testing runtime 3 years ago [ussuri][goal] Drop python 2.7 support and testing 3 years ago
test-requirements.txt Use unittest.mock instead of third party mock 3 years ago
tox.ini Revert "Use victoria stable constraint in tox to release 26.0.0" 2 years ago


Team and repository tags


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.