Browse Source

Use 'virt_type=kvm' in devstack vm if supported

If the devstack vm supports nested virtualization we should
use it.
This can done using by setting: DEVSTACK_GATE_LIBVIRT_TYPE=kvm.
This will increase the performance in gate jobs.

Change-Id: I2439de036dfec2ada3c92c2d4b71c73b5f41a518
(cherry picked from commit 34efcdfcaf)
yatin 1 year ago
parent
commit
907eeb28da
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      magnum/tests/contrib/gate_hook.sh

+ 5
- 0
magnum/tests/contrib/gate_hook.sh View File

@@ -33,6 +33,11 @@ export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier"
33 33
 export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api"
34 34
 export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector"
35 35
 
36
+if egrep --quiet '(vmx|svm)' /proc/cpuinfo; then
37
+    export DEVSTACK_GATE_LIBVIRT_TYPE=kvm
38
+fi
39
+
40
+
36 41
 if [ "$coe" = "mesos" ]; then
37 42
     export DEVSTACK_LOCAL_CONFIG+=$'\n'"MAGNUM_GUEST_IMAGE_URL=https://fedorapeople.org/groups/magnum/ubuntu-mesos-ocata.qcow2"
38 43
 elif [ "$coe" = "k8s-coreos" ]; then

Loading…
Cancel
Save