From cc98ed84f166cc7dd09ff0157764b3f4d06391b6 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Wed, 4 Apr 2018 17:49:48 +0100 Subject: [PATCH] Work around nested virt issues on OVH test nodes OVH nodepool nodes have an issue which causes nested virt instances to crash with a hardware error, then a dump. We therefore detect whether we're running on OVH and force it to use qemu instead. Change-Id: I54681092adf9c0647bf65583176ddc21c99494f3 --- tests/roles/bootstrap-host/tasks/prepare_aio_config.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/roles/bootstrap-host/tasks/prepare_aio_config.yml b/tests/roles/bootstrap-host/tasks/prepare_aio_config.yml index e6c2f45ff4..dcc0e7cc32 100644 --- a/tests/roles/bootstrap-host/tasks/prepare_aio_config.yml +++ b/tests/roles/bootstrap-host/tasks/prepare_aio_config.yml @@ -62,6 +62,10 @@ path: /etc/nodepool register: nodepool_dir +# OVH nodepool nodes have an issue which causes nested virt +# instances to crash with a hardware error, then a dump. +# We therefore detect whether we're running on OVH and +# force it to use qemu instead. - name: Discover the OpenStack-Infra mirrors shell: | source /etc/ci/mirror_info.sh @@ -70,6 +74,9 @@ echo "openstack_hosts_centos_mirror_url: '${NODEPOOL_CENTOS_MIRROR}'" >> ${NODEPOOL_OVERRIDES} echo "opensuse_mirror: '${NODEPOOL_OPENSUSE_MIRROR}'" >> ${NODEPOOL_OVERRIDES} echo "opensuse_mirror_obs: 'http://download.opensuse.org'" >> ${NODEPOOL_OVERRIDES} + if [[ ${NODEPOOL_PYPI_MIRROR} == *.ovh.* ]]; then + echo "nova_virt_type: 'qemu'" >> ${NODEPOOL_OVERRIDES} + fi args: executable: /bin/bash when: