devstack: install qemu-kvm on RHEL-based distros

On these systems, asking to install qemu will bring in the default OS
older version, which causes problem with nova, for more details:
https://review.openstack.org/#/c/438325

Ask for qemu-kvm instead, which should install the proper version

Change-Id: I60eca649ca1ae53c341d68670d4ab1f3559ac31d
Related-Bug: #1668164
This commit is contained in:
Bernard Cafarelli 2017-03-15 17:28:36 +01:00
parent 3251ee0598
commit 8aa15008bb
No known key found for this signature in database
GPG Key ID: D148244A3C2462BD
1 changed files with 9 additions and 1 deletions

View File

@ -9,7 +9,15 @@ function octavia_install {
setup_develop $OCTAVIA_DIR
if [ $OCTAVIA_NODE == 'main' ] || [ $OCTAVIA_NODE == 'standalone' ] ; then
if ! [ "$DISABLE_AMP_IMAGE_BUILD" == 'True' ]; then
install_package qemu kpartx
install_package kpartx
if [[ ${DISTRO} =~ "rhel7" ]]; then
# Installing qemu would bring in the default OS qemu package,
# which is too old for Pike and later releases
# See https://review.openstack.org/#/c/438325 for details
install_package qemu-kvm
else
install_package qemu
fi
fi
fi
}