From ad0dd57dc045b58c46e53f281ab57e70d00947d7 Mon Sep 17 00:00:00 2001 From: ferenc Cserepkei Date: Fri, 26 Aug 2016 07:29:28 +0200 Subject: Script updates for CI job Due to the redesign of the SFC feature test, the poc script became part of CI job functest-fuel-baremetal, scenario os_odl_l2-sfc-ha, there is a need of full uplift to colorado. Changes: - GPG keyserver use (line 61) - patch updated fixing the debian package dependency issue (python-oslo.messaging-) - some typos are fixed - OpenDayLight address is read from hiera (management vip) Change-Id: I4a19ec753a575220cf321819ab4ff2d9433ec16c Signed-off-by: ferenc Cserepkei --- prototypes/sfc_tacker/poc.tacker-up.sh | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'prototypes') diff --git a/prototypes/sfc_tacker/poc.tacker-up.sh b/prototypes/sfc_tacker/poc.tacker-up.sh index fc45c7643..caad3f86a 100755 --- a/prototypes/sfc_tacker/poc.tacker-up.sh +++ b/prototypes/sfc_tacker/poc.tacker-up.sh @@ -58,6 +58,7 @@ ____EOF # Function setting up the build/deploy environment function envSetup () { + apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BCE5CC461FA22B08 apt-get update apt-get install -y git python-pip python-all debhelper chkPPkg stdeb @@ -136,13 +137,13 @@ function blessPackage () { dpkg-deb --control "$DEBFILE" "${TMPDIR}/DEBIAN" cd "$TMPDIR" patch -p 1 < - Installed-Size: 1565 + Installed-Size: 1566 -Depends: python (>= 2.7), python (<< 2.8), python:any (>= 2.7.1-0ubuntu2), python-pbr, python-paste, python-pastedeploy, python-routes, python-anyjson, python-babel, python-eventlet, python-greenlet, python-httplib2, python-requests, python-iso8601, python-jsonrpclib, python-jinja2, python-kombu, python-netaddr, python-sqlalchemy (>= 1.0~), python-sqlalchemy (<< 1.1), python-webob, python-heatclient, python-keystoneclient, alembic, python-six, python-stevedore, python-oslo.config, python-oslo.messaging-, python-oslo.rootwrap, python-novaclient +Depends: python (>= 2.7), python (<< 2.8), python:any (>= 2.7.1-0ubuntu2), python-pbr, python-paste, python-pastedeploy, python-routes, python-anyjson, python-babel, python-eventlet, python-greenlet, python-httplib2, python-requests, python-iso8601, python-jsonrpclib, python-jinja2, python-kombu, python-netaddr, python-sqlalchemy (>= 1.0~), python-sqlalchemy (<< 1.1), python-webob, python-heatclient, python-keystoneclient, alembic, python-six, python-stevedore, python-oslo.config, python-oslo.messaging, python-oslo.rootwrap, python-novaclient Section: python @@ -250,7 +251,7 @@ function populate_client() { } # Function orchestrate the Tacker service -function orchestarte () { +function orchestrate () { rm -rf /etc/puppet/modules/tacker pushd /etc/puppet/modules git clone https://github.com/trozet/puppet-tacker.git tacker @@ -266,6 +267,7 @@ function orchestarte () { auth_uri=$(crudini --get '/etc/heat/heat.conf' 'keystone_authtoken' 'auth_uri') identity_uri=$(crudini --get '/etc/heat/heat.conf' 'keystone_authtoken' 'identity_uri') int_addr=$(ifconfig br-mesh | sed -n '/inet addr/s/.*addr.\([^ ]*\) .*/\1/p') + odl_addr=$(hiera management_vip) mgmt_addr=$(ifconfig br-mgmt | sed -n '/inet addr/s/.*addr.\([^ ]*\) .*/\1/p') pub_addr=$(ifconfig br-ex-lnx | sed -n '/inet addr/s/.*addr.\([^ ]*\) .*/\1/p') rabbit_host=$(crudini --get '/etc/heat/heat.conf' 'oslo_messaging_rabbit' 'rabbit_hosts'| cut -d ':' -f 1) @@ -301,7 +303,7 @@ function orchestarte () { rabbit_host => '${rabbit_host}', rabbit_password => '${rabbit_password}', heat_uri => '${heat_uri}', - opendaylight_host => '${mgmt_addr}', + opendaylight_host => '${odl_addr}', opendaylight_port => '${odl_port}', } @@ -360,6 +362,7 @@ function populate_rc() { done } + envSetup deployTackerClient deployJsonrpclib @@ -367,9 +370,11 @@ buildTackerServer blessPackage deployTackerServer populate_client -orchestarte +orchestrate populate_rc +git clone https://github.com/trozet/sfc-random.git + remove_repo "$MYREPO" remove_repo "$DEPREPO" remove_repo "$CLIREPO" -- cgit 1.2.3-korg