Update ODL version for fdio_l2 and fdio_l3 scenarios
[apex.git] / ci / dev_dep_check.sh
1 #!/bin/sh
2 ##############################################################################
3 # Copyright (c) 2016 Dan Radez (Red Hat) and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11 # This script makes sure deploy deps are installed when not relying on RPM
12
13 set -e
14
15 # check for rdo-release
16 if ! rpm -q rdo-release > /dev/null; then
17     sudo yum remove rdo-release
18 fi
19
20 # make sure rdo release
21 if ! sudo yum install -y  https://repos.fedorapeople.org/repos/openstack/openstack-newton/rdo-release-newton-5.noarch.rpm; then
22     echo "Failed to install RDO Release package..."
23     exit 1
24 fi
25
26 # update ipxe-roms-qemu
27 if ! sudo yum update -y ipxe-roms-qemu; then
28     echo "Failed to update ipxe-roms-qemu package..."
29     exit 1
30 fi
31
32 # check for other packages
33 for i in epel-release python34-PyYAML openvswitch openstack-tripleo libguestfs libguestfs-tools-c libvirt-python python2-oslo-config python2-debtcollector python34-devel libxslt-devel libxml2-devel; do
34 # Make sure deploy deps are installed
35     if ! rpm -q $i > /dev/null; then
36         if ! sudo yum install -y $i; then
37             echo "Failed to install $i package..."
38             exit 1
39         fi
40     fi
41 done
42
43 # install pip dependencies
44 easy_install-3.4 pip
45 sudo pip3 install python-ipmi
46
47 # Make sure jinja2 is installed
48 easy_install-3.4 jinja2
49
50 # TODO(cgoncalves): remove once congress RPM is downloaded from upstream
51 easy_install-3.4 tox
52
53 # Required packages to redirect stdin with virt-customize
54 if ! sudo yum -y install libguestfs libguestfs-tools libguestfs-tools-c supermin supermin5 supermin-helper perl-Sys-Guestfs python-libguestfs; then
55     echo "Failed to install supermin/libguestfs packages..."
56     exit 1
57 fi