Use nested virt in scenario jobs

virt_type option in nova-compute will be now set to "kvm" instead
of "qemu" if test job will be running on node which supports
nested virtualization.
In case of nodes where it's not supported, devstack will
automatically switch it to "qemu" again. It's in [1].

This should improve time of booting vms so tests should be finished
faster and there should be less errors with ssh to instance timeouts.

[1]
http://git.openstack.org/cgit/openstack-dev/devstack/tree/lib/nova#n289

Change-Id: Ia361f33f0b103ed44ef372c1464b3c0473a19291
This commit is contained in:
Slawek Kaplonski 2018-08-03 09:54:50 +02:00
parent e05cc40617
commit 73f111e7e8
1 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,9 @@ case $VENV in
load_conf_hook osprofiler
load_conf_hook availability_zone
if [[ "$VENV" =~ "dsvm-scenario" ]]; then
# Use nested_virt, if node don't support it, Devstack's will
# automatically switch it back to "qemu"
export DEVSTACK_GATE_LIBVIRT_TYPE=kvm
load_rc_hook ubuntu_image
fi
if [[ "$VENV" =~ "dsvm-scenario-linuxbridge" ]]; then