echo '---> Pre-installing yum and pip packages'
projs="requirements keystone glance cinder neutron nova horizon"
+# shellcheck disable=SC2154
branch=${os_branch}
+# strip the "stable" off of the branch
+branch_name=$(cut -d'/' -f2 <<< ${branch})
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install -c requirements/upper-constraints.txt -r ${proj}/test-requirements.txt
done
-echo '---> Installing openvswitch from openstack repo'
-# the newton release has ovs 2.5.0
-yum install -y http://rdoproject.org/repos/openstack-newton/rdo-release-newton.rpm
+echo '---> Installing openvswitch from relevant openstack branch'
+yum install -y centos-release-openstack-${branch_name}
+
yum install -y --nogpgcheck openvswitch
cd $OLDPWD