From fd11a9d531ae10e6c76ee0182d2335ccd9dfd026 Mon Sep 17 00:00:00 2001 From: Javier Pena Date: Wed, 14 Nov 2018 16:04:30 +0100 Subject: [PATCH] Fix virtualization detection for Fedora jobs Previously, the facter detection for virtual machines could fail to detect an OpenStack VM as such, creating issues in CI jobs because we selected KVM virtualization instead of QEMU. This can be fixed by adding the virt-what binary, which is used by facter to detect if a machine is virtual or not [1]. [1] - https://github.com/puppetlabs/facter/blob/2aa2d1cd6487f73fb8e311cf027dcf30c2166e28/lib/src/facts/linux/virtualization_resolver.cc#L62-L64 Change-Id: I9278887bfdbca209e7f3498273b85edd8efd987f --- playbooks/packstack-fedora-pre.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/packstack-fedora-pre.yaml b/playbooks/packstack-fedora-pre.yaml index 46386f049..ccca0e48e 100644 --- a/playbooks/packstack-fedora-pre.yaml +++ b/playbooks/packstack-fedora-pre.yaml @@ -20,7 +20,7 @@ dnf clean all sudo sed -i '/^exclude.*/d' /etc/dnf/dnf.conf dnf -y install libxml2-devel libxslt-devel ruby-devel zlib-devel - dnf -y install gcc gettext diffstat doxygen patch patchutils subversion systemtap git python-setuptools wget redhat-lsb-core libselinux-python yum-plugin-priorities dnf-yum + dnf -y install gcc gettext diffstat doxygen patch patchutils subversion systemtap git python-setuptools wget redhat-lsb-core libselinux-python yum-plugin-priorities dnf-yum virt-what pip uninstall requests -y || true executable: /bin/bash chdir: '{{ ansible_user_dir }}/workspace'