nova: unset cpu_model on aarch64

Without this, running DevStack on an `aarch64` environment will end
up in cpu_model set to "Nehalem" and cpu_mode set to "host-passthrough"
which does not work.

This patch drops that value under aarch64 environments.

Change-Id: I30be5a388dda5ccf08718670dbb14a28a4a8a8eb
(cherry picked from commit 28bed125a2)
This commit is contained in:
Mohammed Naser
2022-04-20 15:11:39 -04:00
committed by Pierre Riteau
parent cbbe97f918
commit fc8300a5d2

View File

@@ -56,6 +56,10 @@ function configure_nova_hypervisor {
# arm64-specific configuration
if is_arch "aarch64"; then
iniset $NOVA_CONF libvirt cpu_mode "host-passthrough"
# NOTE(mnaser): We cannot have `cpu_model` set if the `cpu_mode` is
# set to `host-passthrough`, or `nova-compute` refuses to
# start.
inidelete $NOVA_CONF libvirt cpu_model
fi
if isset ENABLE_FILE_INJECTION; then