Fix rdo-release install

The URL for rdo-release package is version-less and redirects to latest
stable version. This becomes problematic when stacking older stable
versions as dependencies might not be met or newer and incompatibile
ones might get installed.

Closes-Bug: #1833696

Change-Id: Icb07dcb4c9a3950a3c31a3a8dcb8d0b4c713fdb1
(cherry picked from commit 8b31dce38b)
(cherry picked from commit fb3b6e4baa)
(cherry picked from commit ed120e335f)
(cherry picked from commit 6f3696c168)
This commit is contained in:
Carlos Goncalves 2019-06-21 13:13:40 +02:00 committed by Mikhail Ushanov
parent 7adb4c59c2
commit a70d84ceed
1 changed files with 3 additions and 1 deletions

View File

@ -312,7 +312,9 @@ function _install_rdo {
# Per the point above, it's a bunch of repos so starts getting a
# little messy...
if ! is_package_installed rdo-release ; then
yum_install https://rdoproject.org/repos/rdo-release.rpm
# Get ocata rdo-release RPM package
rdo_release="ocata"
yum_install https://rdoproject.org/repos/openstack-$rdo_release/rdo-release-$rdo_release.rpm
fi
# Also enable optional for RHEL7 proper. Note this is a silent