From 614ca26b47076321e1e06d0d79b9f7c53c5ef259 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Fri, 26 Jun 2015 14:45:04 +1000 Subject: [PATCH] Install qemu-kvm package on centos/fedora Change I79a8d8ac7ad2fbd7d2fce696821d130218e43e03 removed the install of python-libguestfs, which was actually hiding a dependency issue on Centos. The "kvm" package is ultimately missing some bios files from "seabios-bin" -- however with python-libguestfs installed this was coming in via a dependency chain that pulled in qemu-kvm, which has the dependency. qemu-kvm is not strictly required as all the functionality is within qemu-system-x86. But while we get [1] sorted out this restores the job functionality. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1235890 Change-Id: I3379bc497978befac48c5af0f1035b96d030b7eb --- files/rpms/nova | 1 + lib/nova_plugins/functions-libvirt | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/files/rpms/nova b/files/rpms/nova index ebd667454a..d32c332dd9 100644 --- a/files/rpms/nova +++ b/files/rpms/nova @@ -10,6 +10,7 @@ iptables iputils kpartx kvm # NOPRIME +qemu-kvm # NOPRIME libvirt-bin # NOPRIME libvirt-devel # NOPRIME libvirt-python # NOPRIME diff --git a/lib/nova_plugins/functions-libvirt b/lib/nova_plugins/functions-libvirt index 22b58e0065..5525cfd951 100755 --- a/lib/nova_plugins/functions-libvirt +++ b/lib/nova_plugins/functions-libvirt @@ -34,6 +34,13 @@ function install_libvirt { #pip_install_gr elif is_fedora || is_suse; then install_package kvm + # there is a dependency issue with kvm (which is really just a + # wrapper to qemu-system-x86) that leaves some bios files out, + # so install qemu-kvm (which shouldn't strictly be needed, as + # everything has been merged into qemu-system-x86) to bring in + # the right packages. see + # https://bugzilla.redhat.com/show_bug.cgi?id=1235890 + install_package qemu-kvm install_package libvirt libvirt-devel pip_install_gr libvirt-python fi