Run with KVM if we can in tests

We should not Set nova_virt_type.
This way detection steps in, and kvm is used.

However, we should use qemu for OVH hosts:
There seem to be a bug in some OVH hosts
causing 'hardware error 0x0' when trying to run with kvm.

Change-Id: I4f679815ac55095000dc1017cebbd1a8bf0f6c5f
This commit is contained in:
Jean-Philippe Evrard 2018-04-04 18:38:54 +02:00
parent efba322800
commit 748e3d2292
2 changed files with 3 additions and 1 deletions

View File

@ -29,6 +29,9 @@
echo "opensuse_mirror=${NODEPOOL_OPENSUSE_MIRROR}"
echo "pip_default_index=${NODEPOOL_PYPI_MIRROR}"
echo "pip_wheel_mirror=${NODEPOOL_WHEEL_MIRROR}"
if [[ ${NODEPOOL_PYPI_MIRROR} == *.ovh.* ]]; then
echo "nova_virt_type='qemu'"
fi
args:
executable: /bin/bash
register: nodepool_variables

View File

@ -195,7 +195,6 @@ nova_service_user_domain_id: default
nova_service_user_name: nova
nova_venv_bin: "/openstack/venvs/nova-{{ nova_venv_tag }}/bin"
nova_venv_tag: "testing"
nova_virt_type: qemu
nova_discover_hosts_in_cells_interval: '-1'
# lxd specific vars
lxd_trust_password: "SuperSecrete"