Merge "CI: set cpu_model to Nehalem for kvm jobs"

This commit is contained in:
Zuul 2022-10-28 12:40:04 +00:00 committed by Gerrit Code Review
commit f15cb4dda3
2 changed files with 10 additions and 0 deletions

View File

@ -3,4 +3,13 @@
cpu_mode=custom
# cpu_model=max fails to boot multiple images with QEMU 7.0 and -M virt (works with "-M virt-6.2")
cpu_model=cortex-a72
{% elif ansible_architecture == 'x86_64' %}
# RHEL 9 are being compiled for the x86_64-v2 architecture which is
# newer than the qemu default of qemu64. Nehalem is apparently the
# oldest model that works for x86_64-v2 and is expected to work on
# Intel and AMD cpus with kvm or qemu.
{% if virt_type == 'kvm' %}
cpu_mode=custom
cpu_model=Nehalem
{% endif %}
{% endif %}

View File

@ -52,6 +52,7 @@
voting: false
files:
- ^ansible/roles/(nova-cell)/
- ^tests/templates/nova-compute-overrides.j2
vars:
virt_type: kvm