444d284a00eacf963dae2ac21825fbf88e6d9f88
[apex.git] / build / overcloud-opendaylight-sfc.sh
1 #!/bin/sh
2 ##############################################################################
3 # Copyright (c) 2015 Tim Rozet (Red Hat), 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 set -e
11 source ./variables.sh
12 pushd images > /dev/null
13
14 ################################################
15 #####    Adding SFC+OpenDaylight overcloud #####
16 ################################################
17
18 #copy opendaylight overcloud full to odl-sfc
19 cp -f overcloud-full-opendaylight.qcow2 overcloud-full-opendaylight-sfc_build.qcow2
20
21 # upgrade ovs into ovs 2.5.90 with NSH function
22 LIBGUESTFS_BACKEND=direct virt-customize --run-command "yum install -y /root/ovs/rpm/rpmbuild/RPMS/x86_64/${ovs_kmod_rpm_name}" \
23                                          --run-command "yum upgrade -y /root/ovs/rpm/rpmbuild/RPMS/x86_64/${ovs_rpm_name}" \
24                                          -a overcloud-full-opendaylight-sfc_build.qcow2
25
26 mv overcloud-full-opendaylight-sfc_build.qcow2 overcloud-full-opendaylight-sfc.qcow2
27 popd > /dev/null