whitebox-tempest-plugin/whitebox_tempest_plugin
Artom Lifshitz bee34dbb86 Wait for libvirt domain shutdown correctly
Previousy, when shutting down a libvirt domain before evacuation, we
would wait until it disappeared from the list of libvirt domains, but
we just merrily continued on even if it was still present after 60
seconds. I suspect the domain remained present, and our next steps
were to evacuate the instance and start nova-compute back up again, at
which point it tried to delete evacuated instances, and fail with the
following:

File "/opt/stack/nova/nova/compute/manager.py", line 839, in _destroy_evacuated_instances
<snip>
libvirt.libvirtError: Failed to terminate process 55183 with SIGKILL: Device or resource busy

This patch makes us wait for the domain to disappear, and raise an
error if it doesn't disappear in time. It also refactors the shutdown
code slightly to avoid an extra API quey to get the server.

Change-Id: I76885987842440f9b690c198e6b8149bdd85f899
2024-11-19 14:36:54 -05:00
..
api Wait for libvirt domain shutdown correctly 2024-11-19 14:36:54 -05:00
common Verify vTPM creation after svc restart 2024-08-28 23:22:30 -04:00
services Merge "Update accessing nova compute logs for RBD check" 2024-10-08 02:03:38 +00:00
__init__.py Re-home project 2018-01-10 11:57:05 +00:00
config.py Update accessing nova compute logs for RBD check 2024-10-07 12:44:01 -04:00
exceptions.py evacuation tests 2024-05-28 16:00:42 -04:00
hardware.py Attach and detach an SR-IOV port 2022-08-25 16:16:17 -04:00
plugin.py Add global nodes variable 2023-11-13 13:39:53 -05:00
README.rst Re-organize how the tests are structured 2018-01-10 13:35:38 +00:00
utils.py Update nodes yaml to use cpu architecture 2024-04-23 10:57:56 -04:00

Whitebox Tempest Tests

This directory contains tests to validate behavior against TripleO/Director-based deployments.

See the Tempest plugin documentation for information about creating a plugin, stable API interface, TempestPlugin class interface, plugin structure, and how to use plugins: https://docs.openstack.org/tempest/latest/plugin.html