Fix tests for pip 10

On CentOS, the python-ipaddress comes with the python2-pip package which
comes installed on the test nodes. Uninstall it (and consequently the
distro pip package) so that the new pip can do the right thing.

Change-Id: I15fabb2bc2e1645c9045603575dfa52957398a2d
This commit is contained in:
Colleen Murphy 2018-07-13 16:36:02 +02:00 committed by Colleen Murphy
parent bdfb4e7591
commit 8e1d497bc5
1 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,12 @@ EOF
shell("if [ ! -f /etc/pip.conf ] ; then echo '#{pip_conf}' > /etc/pip.conf ; fi")
# Block pypi.python.org so we know the mirror is working
shell("iptables -A OUTPUT -d pypi.python.org -j DROP")
# Remove the python-ipaddress distro package so that pip 10 won't fail to
# install shade
if os[:family] == 'redhat'
shell('yum remove python-ipaddress -y')
end
end