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
This commit is contained in:
Jesse Pretorius 2018-04-04 17:49:48 +01:00 committed by Jesse Pretorius (odyssey4me)
parent a2a37e26c1
commit cc98ed84f1

View File

@ -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: