Files
Sylvain Bauza c50929af20 Rename vtpm job and add mtty support for vgpu test
Rename the nova-vtpm job to nova-whitebox. Add support for mtty in this
job by compiling the mtty module and then configure nova in order to test
virtual mediated devices using mtty.Enable the whitebox plugin TestVGPU
class to run in nova-whitebox.

Depends-On: https://review.opendev.org/c/openstack/whitebox-tempest-plugin/+/992611

Change-Id: Ie1277815a41f9cf3a43ca19110cb324f813a37fb
Signed-off-by: jgilaber <jgilaber@redhat.com>
2026-06-23 13:17:57 +02:00

36 lines
1014 B
Bash

local xtrace=$(set +o | grep xtrace)
if [ "$VERBOSE" == 'True' ]; then
# enabling verbosity on whole plugin - default behavior
set -o xtrace
fi
NOVA_PLUGINDIR=$(readlink -f $(dirname "${BASH_SOURCE[0]}"))
source $NOVA_PLUGINDIR/lib/mdev_samples
if [[ $1 == "stack" ]]; then
case $2 in
install)
if [[ "$NOVA_COMPILE_MDEV_SAMPLES" == True ]]; then
# NOTE (jgilaber): install mdevctl before calling the
# compile_mdev_samples function as if calling it after in some CI
# runs devstack fails due to lock contentions for dpkg
install_package mdevctl
async_runfunc compile_mdev_samples
fi
;;
post-config)
if [[ "$NOVA_COMPILE_MDEV_SAMPLES" == True ]]; then
async_wait compile_mdev_samples
sudo virsh nodedev-list
restart_service libvirtd
sudo virsh nodedev-list
fi
;;
esac
elif [[ $1 == "clean" ]]; then
rm -Rf $NOVA_KERNEL_TEMP
fi
$xtrace