From 1860f20d7f21f4d4be0436cc563013cd8d6eced8 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Wed, 7 Sep 2016 03:53:54 +0000 Subject: [PATCH] Enable kvm for neutron-lbaas/Octavia gates This patch enables kvm virtualization for the neutron-lbaas/Octavia gates when virtualization is available in the cpu. Change-Id: I951a6982a89dd63defb0a913a12a8cc4d9c1d44b --- neutron_lbaas/tests/contrib/gate_hook.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neutron_lbaas/tests/contrib/gate_hook.sh b/neutron_lbaas/tests/contrib/gate_hook.sh index 94d9c3468..f18e113dc 100755 --- a/neutron_lbaas/tests/contrib/gate_hook.sh +++ b/neutron_lbaas/tests/contrib/gate_hook.sh @@ -13,6 +13,10 @@ 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 + export DEVSTACK_GATE_LIBVIRT_TYPE=kvm +fi + function _setup_octavia { export DEVSTACK_LOCAL_CONFIG+="