Proposed this for the RDO Nova spec file: https://review.rdoproject.org/r/#/c/9858/ -- Install the right variant of QEMU binary based on distribution Where the `diff` is as following: ----------------------------------------------------------------------- diff --git a/openstack-nova.spec b/openstack-nova.spec index 35007fa..21c1267 100644 --- a/openstack-nova.spec +++ b/openstack-nova.spec @@ -162,8 +162,20 @@ Requires: openssh-clients Requires: rsync Requires: lvm2 Requires: python-cinderclient >= 3.1.0 -Requires(pre): qemu-kvm >= 2.3.0 Requires: genisoimage +# Ensure that the _right_ verion of QEMU binary is shipped +# based on distribution +%if 0%{?fedora} +Requires(pre): qemu-kvm >= 2.9.0 +%else +%if 0%{?centos} +Requires(pre): qemu-kvm-ev >= 2.9.0 +%else +%if 0%{?rhel} +Requires(pre): qemu-kvm-rhev >= 2.9.0 +%endif +%endif +%endif Requires: bridge-utils Requires: sg3_utils Requires: sysfsutils -----------------------------------------------------------------------
The Nova spec file patch is now merged in RDO 'rpm-master', and the following is final the `diff`: ----------------------------------------------------------------------- diff --git a/openstack-nova.spec b/openstack-nova.spec index 35007fa..c5504e0 100644 --- a/openstack-nova.spec +++ b/openstack-nova.spec @@ -162,8 +162,21 @@ Requires: openssh-clients Requires: rsync Requires: lvm2 Requires: python-cinderclient >= 3.1.0 -Requires(pre): qemu-kvm >= 2.3.0 Requires: genisoimage +# Ensure that the _right_ verion of QEMU binary is shipped based on +# distribution. +%if 0%{?fedora} +Requires(pre): qemu-kvm >= 2.9.0 +%endif +# NOTE-1: CentOS package is called 'qemu-kvm-ev', but it has a +# compatiblity "Provides: qemu-kvm-rhev", so it'll do the right +# thing, that's why we're not special-casing CentOS here. +# NOTE-2: Explicitly conditionalize on RHEL-7, as we have to +# re-evaluate the QEMU version string for each RHOS / RHEL +# release. +%if 0%{?rhel} == 7 +Requires(pre): qemu-kvm-rhev >= 2.9.0 +%endif Requires: bridge-utils Requires: sg3_utils Requires: sysfsutils -----------------------------------------------------------------------
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2018:2086