Skip to content

Commit 53bc172

Browse files
Evgeny Antyshevianw
authored andcommitted
Fix install_libvirt for other RHEL-based distros
Since https://review.openstack.org/#/c/438325 landed it only works for Centos 7, but not for other RHEL-based distributions: Virtuozzo and, probably, RHEV. Both of above have own version for qemu-kvm package: qemu-kvm-vz and qemu-kvm-rhev, accordingly. These packages provide "qemu-kvm", like qemu-kvm-ev, and, when you call "yum install qemu-kvm", they replace the default OS package. Change-Id: I46da627c0da8925064862fdc283db81591979285 (cherry picked from 008aa3e)
1 parent eec5c1a commit 53bc172

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

lib/nova_plugins/functions-libvirt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,11 @@ function install_libvirt {
3939
fi
4040

4141
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
42+
# This should install the latest qemu-kvm build,
43+
# which is called qemu-kvm-ev in centos7
44+
# (as the default OS qemu-kvm package is usually rather old,
45+
# and should be updated by above)
46+
install_package qemu-kvm
4947
fi
5048

5149
install_package libvirt libvirt-devel

0 commit comments

Comments
 (0)