Disable kvm on OVH infra instances

OVH infra hosts are causing "KVM: entry failed, hardware error 0x0"
failures where instances fail to start (cirros, etc.).
This patch excludes OVH instances from kvm enablement until the issue is
resolved.

(cherry picked from commit 283c7baf32)

Change-Id: Ic1712be01268b8f63290e1ea00c6f7e14a244558
This commit is contained in:
Michael Johnson 2017-10-30 11:01:47 -07:00
parent d187cdf7e1
commit f0b6a85877
1 changed files with 5 additions and 2 deletions

View File

@ -27,11 +27,14 @@ enable_plugin barbican https://git.openstack.org/openstack/barbican
# Sort out our gate args
. $(dirname "$0")/decode_args.sh
if egrep --quiet '(vmx|svm)' /proc/cpuinfo; then
# Note: The check for OVH instances is temporary until they resolve the
# KVM failures as logged here:
# https://bugzilla.kernel.org/show_bug.cgi?id=192521
# However, this may be resolved at OVH before the kernel bug is resolved.
if $(egrep --quiet '(vmx|svm)' /proc/cpuinfo) && [[ ! $(hostname) =~ "ovh" ]]; then
export DEVSTACK_GATE_LIBVIRT_TYPE=kvm
fi
function _setup_octavia {
export DEVSTACK_LOCAL_CONFIG+="
enable_plugin octavia https://git.openstack.org/openstack/octavia