Allow virtualisation type to be defined in a test scenario

Change-Id: I6d3055139bc6482c6d7fe28dea9b5b5ead500a5c
This commit is contained in:
Jonathan Rosser 2024-02-12 13:26:45 +00:00
parent 13c83a0da5
commit 9cad92d41c
1 changed files with 11 additions and 0 deletions

View File

@ -347,3 +347,14 @@ tempest_test_includelist_cinder:
{% if 'quorum' in bootstrap_host_scenarios_expanded %}
oslomsg_rabbit_quorum_queues: True
{% endif %}
# NOTE(jrosser) nested virt is not usable in general in opendev.org CI jobs,
# but if the keyword 'kvm' or 'qemu' is present in the expanded scenario then
# force the use of that virtualisation type. If neither is specified,
# default to qemu in zuul jobs, but allow the os_nova role to autodetect the
# virtualisation type local testing by leaving nova_virt_type undefined.
{% if 'kvm' in bootstrap_host_scenarios_expanded %}
nova_virt_type: kvm
{% elif (('qemu' in bootstrap_host_scenarios_expanded) or nodepool_dir.stat.exists) %}
nova_virt_type: qemu
{% endif %}