run_tests: uninstall epel-release

epel-release is installed by OpenStack Infra when building images.
The problem is RDO + EPEL does not work find, there are some
dependencies issues.

This patch makes sure EPEL is not installed when we start our CI jobs.
The next steps will be to run puppet-openstack-integration with EPEL
disabled in ceph::repo, and patch ceph::repo to use centos ceph repos [1]

[1] https://bugs.launchpad.net/puppet-ceph/+bug/1562998

This patch is part of the efforts to stop using EPEL at all.

Change-Id: I506754e2c5021ee728675a8771f2e24b8576f7d5
This commit is contained in:
Emilien Macchi 2016-04-12 09:40:30 -04:00
parent b479de9aae
commit 625da96a42

View File

@ -72,6 +72,10 @@ elif is_fedora; then
if rpm --quiet -q $PUPPET_RELEASE_FILE; then
$SUDO rpm -e $PUPPET_RELEASE_FILE
fi
# EPEL does not work fine with RDO, we need to make sure EPEL is really disabled
if rpm --quiet -q epel-release; then
$SUDO rpm -e epel-release
fi
$SUDO rm -f /tmp/puppet.rpm
wget http://yum.puppetlabs.com/${PUPPET_RELEASE_FILE}-el-7.noarch.rpm -O /tmp/puppet.rpm