From 12cbf39eed5df35a2f303f6589c8e04a78e32ebb Mon Sep 17 00:00:00 2001 From: Bartosz Bezak Date: Tue, 21 Feb 2023 15:22:04 +0100 Subject: [PATCH] Use custom cpu_models on Redhat family only Change-Id: Ibe02bf3430bad3606e291273c8a1feb148b83711 --- etc/kayobe/kolla/config/nova/nova-compute.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/kayobe/kolla/config/nova/nova-compute.conf b/etc/kayobe/kolla/config/nova/nova-compute.conf index ebaf4fc..9d8bdeb 100644 --- a/etc/kayobe/kolla/config/nova/nova-compute.conf +++ b/etc/kayobe/kolla/config/nova/nova-compute.conf @@ -1,11 +1,11 @@ {% raw %} +{% if ansible_facts.os_family == 'RedHat' and nova_compute_virt_type == 'kvm' %} [libvirt] -# RHEL 9 and Ubuntu Jammy are being compiled for the x86_64-v2 +# 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 nova_compute_virt_type == 'kvm' %} -cpu_mode=custom -cpu_model=Nehalem +cpu_mode = custom +cpu_models = Nehalem {% endif %} {% endraw %}