2 ##############################################################################
3 # Copyright (c) 2015 Tim Rozet (Red Hat), Dan Radez (Red Hat) and others.
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 ##############################################################################
15 populate_cache "$rdo_images_uri/overcloud-full.tar"
17 if [ ! -d images/ ]; then mkdir images; fi
18 tar -xf cache/overcloud-full.tar -C images/
19 mv -f images/overcloud-full.qcow2 images/overcloud-full_build.qcow2
21 ##########################################################
22 ##### Prep initial overcloud image with common deps #####
23 ##########################################################
25 # prep opnfv-puppet-tripleo for undercloud
26 clone_fork opnfv-puppet-tripleo
27 pushd opnfv-puppet-tripleo > /dev/null
28 git archive --format=tar.gz --prefix=tripleo/ HEAD > ../opnfv-puppet-tripleo.tar.gz
31 pushd images > /dev/null
34 for package in ${dpdk_rpms[@]}; do
35 curl -O "$dpdk_uri_base/$package"
36 dpdk_pkg_str+=" --upload $package:/root/dpdk_rpms"
39 # installing forked opnfv-puppet-tripleo
40 # enable connection tracking for protocal sctp
41 # upload dpdk rpms but do not install
42 LIBGUESTFS_BACKEND=direct virt-customize \
43 --upload ../opnfv-puppet-tripleo.tar.gz:/etc/puppet/modules \
44 --run-command "cd /etc/puppet/modules && rm -rf tripleo && tar xzf opnfv-puppet-tripleo.tar.gz" \
45 --run-command "echo 'nf_conntrack_proto_sctp' > /etc/modules-load.d/nf_conntrack_proto_sctp.conf" \
46 --run-command "mkdir /root/dpdk_rpms" \
48 -a overcloud-full_build.qcow2
50 mv -f overcloud-full_build.qcow2 overcloud-full.qcow2