Skip to content

Commit 81ed81e

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "nova: Replace deprecated [libvirt] cpu_model"
2 parents ffe58c9 + 4638c2f commit 81ed81e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/nova_plugins/hypervisor-libvirt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function configure_nova_hypervisor {
4141
iniset $NOVA_CONF libvirt virt_type "$LIBVIRT_TYPE"
4242
iniset $NOVA_CONF libvirt cpu_mode "$LIBVIRT_CPU_MODE"
4343
if [ "$LIBVIRT_CPU_MODE" == "custom" ] ; then
44-
iniset $NOVA_CONF libvirt cpu_model "$LIBVIRT_CPU_MODEL"
44+
iniset $NOVA_CONF libvirt cpu_models "$LIBVIRT_CPU_MODEL"
4545
fi
4646
# Do not enable USB tablet input devices to avoid QEMU CPU overhead.
4747
iniset $NOVA_CONF DEFAULT pointer_model "ps2mouse"
@@ -56,10 +56,10 @@ function configure_nova_hypervisor {
5656
# arm64-specific configuration
5757
if is_arch "aarch64"; then
5858
iniset $NOVA_CONF libvirt cpu_mode "host-passthrough"
59-
# NOTE(mnaser): We cannot have `cpu_model` set if the `cpu_mode` is
59+
# NOTE(mnaser): We cannot have `cpu_models` set if the `cpu_mode` is
6060
# set to `host-passthrough`, or `nova-compute` refuses to
6161
# start.
62-
inidelete $NOVA_CONF libvirt cpu_model
62+
inidelete $NOVA_CONF libvirt cpu_models
6363
fi
6464

6565
if isset ENABLE_FILE_INJECTION; then

0 commit comments

Comments
 (0)