Browse code

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

Evgeny Antyshev authored on 2017/03/02 20:14:25
Showing 1 changed files
... ...
@@ -39,13 +39,11 @@ function install_libvirt {
39 39
         fi
40 40
 
41 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
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
49 47
         fi
50 48
 
51 49
         install_package libvirt libvirt-devel