Merge "Add job to install ODL via ansible-opendaylight"
[releng/builder.git] / packer / provision / devstack-pre-pip.sh
index 290c31eeb6420a9b1fbad1d19e9f9e4f92c4b3ed..15827864a096dbc28478d527ddfc78c78a3ca0df 100644 (file)
@@ -1,5 +1,16 @@
 #!/bin/bash
 
+# force any errors to cause the script and job to end in failure
+set -xeu -o pipefail
+
+# add in a test copr repo
+wget http://copr.fedoraproject.org/coprs/tykeal/odl-updates/repo/epel-7/tykeal-odl-updates-epel-7.repo -O /etc/yum.repos.d/tykeal-odl-updates-epel-7.repo
+# Install xpath
+yum install -y perl-XML-XPath python-pip python-six
+
+# install crudini command line tool for editing config files
+yum install -y crudini
+
 echo '---> Installing non-baseline requirements'
 yum install -y deltarpm nc python{,-{crypto,devel,lxml,setuptools}} \
     @development {lib{xml2,xslt,ffi},openssl}-devel git wget
@@ -32,6 +43,11 @@ do
     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
+yum install -y --nogpgcheck openvswitch
+
 cd $OLDPWD
 rm -fr tmp