Add cpu_mode in nova.conf

With libvirt 2.0, when using qemu cpu mode is not properly
evaluated and need to be set to cpu_mode = none.

Add this option when kvm is not supported, otherwise user
will still facing errors when launching instances over qemu.

Change-Id: Ib00fa257fb33fd3281f484a47a945640da8dda56
This commit is contained in:
caoyuan
2018-06-21 17:22:50 +08:00
parent cc30691207
commit 27e18daea7
6 changed files with 6 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ else
helm upgrade --install nova ./nova \
--namespace=openstack \
--set conf.nova.libvirt.virt_type=qemu \
--set conf.nova.libvirt.cpu_mode=none \
${OSH_EXTRA_HELM_ARGS} \
${OSH_EXTRA_HELM_ARGS_NOVA}
fi

View File

@@ -34,6 +34,7 @@ else
--namespace=openstack \
--set conf.ceph.enabled=false \
--set conf.nova.libvirt.virt_type=qemu \
--set conf.nova.libvirt.cpu_mode=none \
${OSH_EXTRA_HELM_ARGS} \
${OSH_EXTRA_HELM_ARGS_NOVA}
fi