Skip to content

Commit 192046e

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Use qemu-kvm-ev package on centos"
2 parents 0e1e781 + 52bb641 commit 192046e

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

files/rpms/nova

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ iptables
99
iputils
1010
kernel-modules # dist:f23,f24,f25
1111
kpartx
12-
kvm # NOPRIME
13-
libvirt-bin # NOPRIME
14-
libvirt-devel # NOPRIME
15-
libvirt-python # NOPRIME
1612
libxml2-python
1713
m2crypto
1814
mysql-devel
@@ -21,7 +17,6 @@ mysql-server # NOPRIME
2117
numpy # needed by websockify for spice console
2218
parted
2319
polkit
24-
qemu-kvm # NOPRIME
2520
rabbitmq-server # NOPRIME
2621
sqlite
2722
sudo

lib/nova_plugins/functions-libvirt

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,23 @@ function install_libvirt {
3434
#pip_install_gr <there-si-no-guestfs-in-pypi>
3535
elif is_fedora || is_suse; then
3636
# On "KVM for IBM z Systems", kvm does not have its own package
37-
if [[ ! ${DISTRO} =~ "kvmibm1" ]]; then
37+
if [[ ! ${DISTRO} =~ "kvmibm1" && ! ${DISTRO} =~ "rhel7" ]]; then
3838
install_package kvm
3939
fi
40-
# there is a dependency issue with kvm (which is really just a
41-
# wrapper to qemu-system-x86) that leaves some bios files out,
42-
# so install qemu-kvm (which shouldn't strictly be needed, as
43-
# everything has been merged into qemu-system-x86) to bring in
44-
# the right packages. see
45-
# https://bugzilla.redhat.com/show_bug.cgi?id=1235890
46-
install_package qemu-kvm
40+
41+
if [[ ${DISTRO} =~ "rhel7" ]]; then
42+
# On centos7 install the qemu-kvm-ev package, which is a
43+
# later version of qemu-kvm rebuilt from the qemu-kvm-rhev
44+
# package by the virt SIG (as required by nova). This
45+
# package is only provided for RHOS (openstack) or RHV
46+
# (ovirt) in RHEL. We have already insalled the RDO
47+
# repositories which provide this.
48+
install_package qemu-kvm-ev
49+
fi
50+
4751
install_package libvirt libvirt-devel
4852
pip_install_gr libvirt-python
53+
4954
fi
5055
}
5156

0 commit comments

Comments
 (0)