Install yum-plugin-priorities in pre-install phase

In some cases yum repositories are using priorities configuration
to force OpenStack packages to be installed from the desired
repository.

To work properly, priorities configuration requires the package
yum-plugin-priorities to be installed before doing the actual
OpenStack packages installation.

This patch adds yum-plugin-priorities in pre-install phase for
overcloud-base element wich is always used when creating
tripleo images.

Change-Id: I9c9b50d35d411f85a4cbe33ffab4c71d40dfb0f1
Closes-Bug: #1740934
Closes-Bug: #1727985
(cherry picked from commit cc606ef527)

yum-plugin-priorities should not be enabled on RHEL

Change-Id: Ic3721f0fbd35eb421d439e53ff8418293f83d4af
(cherry picked from commit 82d0a62d85)
This commit is contained in:
Alfredo Moralejo 2017-10-31 19:36:07 +01:00 committed by yatin
parent ac65f7f847
commit a2422e5832
2 changed files with 9 additions and 1 deletions

View File

@ -6,6 +6,7 @@
"python_docker_py": "python-docker-py",
"python_ipaddr": "python-ipaddr",
"openstack_selinux": "openstack-selinux",
"net_snmp": "net-snmp"
"net_snmp": "net-snmp",
"yum_plugin_priorities_package": "yum-plugin-priorities"
}
}

View File

@ -0,0 +1,7 @@
#!/bin/bash
set -e
set -o xtrace
if [[ "centos7 fedora" =~ "$DISTRO_NAME" ]]; then
install-packages -m overcloud-base yum_plugin_priorities_package
fi