X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=jjb%2Fintegration%2Finclude-raw-integration-configure-clustering.sh;h=ed8e67096ab05e6ba34c63bfe76f1181815e2536;hb=190f9a3e4e36bfbb01d02e640f8cb6dc05202382;hp=85e2eee41b1ec48f8f86a8509f9c9af965813d13;hpb=5419f6b29d42cf37c08b5d9b6555b226e1fcd166;p=releng%2Fbuilder.git diff --git a/jjb/integration/include-raw-integration-configure-clustering.sh b/jjb/integration/include-raw-integration-configure-clustering.sh index 85e2eee41..ed8e67096 100644 --- a/jjb/integration/include-raw-integration-configure-clustering.sh +++ b/jjb/integration/include-raw-integration-configure-clustering.sh @@ -1,3 +1,9 @@ +#@IgnoreInspection BashAddShebang +# Activate robotframework virtualenv +# ${ROBOT_VENV} comes from the include-raw-integration-install-robotframework.sh +# script. +source ${ROBOT_VENV}/bin/activate + echo "#################################################" echo "## Configure Cluster and Start ##" echo "#################################################" @@ -5,7 +11,6 @@ echo "#################################################" AKKACONF=/tmp/${BUNDLEFOLDER}/configuration/initial/akka.conf MODULESCONF=/tmp/${BUNDLEFOLDER}/configuration/initial/modules.conf MODULESHARDSCONF=/tmp/${BUNDLEFOLDER}/configuration/initial/module-shards.conf -BGPCONF=/tmp/${BUNDLEFOLDER}/system/org/opendaylight/bgpcep/bgp-controller-config/*/bgp-controller-config-*-config-example.xml CONTROLLERMEM="2048m" if [ ${CONTROLLERSCOPE} == 'all' ]; then @@ -43,7 +48,7 @@ echo ${nodes_list} # Run script plan in case it exists if [ -f ${WORKSPACE}/test/csit/scriptplans/${TESTPLAN} ]; then echo "scriptplan exists!!!" - echo "Changing the scriptplan path..." + echo "Reading the scriptplan:" cat ${WORKSPACE}/test/csit/scriptplans/${TESTPLAN} | sed "s:integration:${WORKSPACE}:" > scriptplan.txt cat scriptplan.txt for line in $( egrep -v '(^[[:space:]]*#|^[[:space:]]*$)' scriptplan.txt ); do @@ -58,8 +63,8 @@ cat > ${WORKSPACE}/configuration-script.sh <example-bgp-rib/example-bgp-rib-\$1/g" ${BGPCONF} -sed -i -e "s/example-ipv4-topology/example-ipv4-topology-\$1/g" ${BGPCONF} -sed -i -e "s/example-ipv6-topology/example-ipv6-topology-\$1/g" ${BGPCONF} -sed -i -e "s/example-linkstate-topology/example-linkstate-topology-\$1/g" ${BGPCONF} - -echo "Dump ${BGPCONF}" -cat ${BGPCONF} - echo "Dump akka.conf" cat ${AKKACONF} @@ -135,6 +131,9 @@ EOF # Create the startup script to be run on controllers. cat > ${WORKSPACE}/startup-script.sh < configplan.txt + cat configplan.txt + for line in $( egrep -v '(^[[:space:]]*#|^[[:space:]]*$)' configplan.txt ); do + echo "Executing ${line}..." + source ${line} + done +fi + # Copy over the startup script to each controller and execute it. for i in `seq 1 ${NUM_ODL_SYSTEM}` do