X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Fintegration-deploy-openstack-run-test.sh;h=a91acfaad4d0d76ffe341551d2c7947e65d51866;hb=57c23a32af24223b2101b70e50adf402de0fd8c2;hp=84796ba3e276057848a28b80603cdb89ac3b34c0;hpb=adf066a0a9e6202a0728ffb17222c316376df095;p=releng%2Fbuilder.git diff --git a/jjb/integration/integration-deploy-openstack-run-test.sh b/jjb/integration/integration-deploy-openstack-run-test.sh index 84796ba3e..a91acfaad 100644 --- a/jjb/integration/integration-deploy-openstack-run-test.sh +++ b/jjb/integration/integration-deploy-openstack-run-test.sh @@ -468,6 +468,10 @@ env source /opt/stack/devstack/openrc admin admin echo -e "\nenv after openrc\n" env +echo "\nsudo du -hs /opt/stack" +sudo du -hs /opt/stack +echo "\nsudo mount" +sudo mount EOF # Since this log collection work is happening before the archive build macro which also @@ -483,9 +487,10 @@ EOF NODE_FOLDER="odl_${i}" mkdir -p ${NODE_FOLDER} echo "Lets's take the karaf thread dump again..." - ${SSH} ${!CONTROLLERIP} "sudo ps aux > /tmp/ps.log" - KARAF_PID=$(ssh ${!CONTROLLERIP} "ps aux | grep ${KARAF_ARTIFACT} | grep -v grep | tr -s ' ' | cut -f2 -d' '") - ssh ${!CONTROLLERIP} "jstack ${KARAF_PID}"> ${WORKSPACE}/karaf_${i}_threads_after.log || true + ssh ${!CONTROLLERIP} "sudo ps aux" > ${WORKSPACE}/ps_after.log + pid=$(grep org.apache.karaf.main.Main ${WORKSPACE}/ps_after.log | grep -v grep | tr -s ' ' | cut -f2 -d' ') + echo "karaf main: org.apache.karaf.main.Main, pid:${pid}" + ssh ${!CONTROLLERIP} "jstack ${pid}" > ${WORKSPACE}/karaf_${i}_${pid}_threads_after.log || true echo "killing karaf process..." ${SSH} "${!CONTROLLERIP}" bash -c 'ps axf | grep karaf | grep -v grep | awk '"'"'{print "kill -9 " $1}'"'"' | sh' ${SSH} ${!CONTROLLERIP} "sudo journalctl > /tmp/journalctl.log" @@ -504,7 +509,8 @@ EOF # Print ROBOT lines and print Exception lines. For exception lines also print the previous line for context sed -n -e '/ROBOT MESSAGE/P' -e '$!N;/Exception/P;D' ${NODE_FOLDER}/odl${i}_karaf.log > ${NODE_FOLDER}/odl${i}_exception.log rm ${NODE_FOLDER}/odl${i}_karaf.log.tar - mv karaf_${i}_threads* ${NODE_FOLDER} + mv *_threads* ${NODE_FOLDER} + mv ps_* ${NODE_FOLDER} mv ${NODE_FOLDER} ${WORKSPACE}/archives/ done @@ -791,6 +797,8 @@ echo "127.0.0.1 localhost \${HOSTNAME}" >> /tmp/hosts echo "::1 localhost \${HOSTNAME}" >> /tmp/hosts sudo mv /tmp/hosts /etc/hosts sudo mkdir /opt/stack +echo "Create RAM disk for /opt/stack" +sudo mount -t tmpfs -o size=2G tmpfs /opt/stack sudo chmod 777 /opt/stack cd /opt/stack echo "git clone https://git.openstack.org/openstack-dev/devstack --branch ${OPENSTACK_BRANCH}" @@ -1153,7 +1161,7 @@ else workpath="${WORKSPACE}/test/csit/suites" for suite in ${SUITES}; do fullsuite="${workpath}/${suite}" - if [ -z ${newsuites} ]; then + if [ -z "${newsuites}" ]; then newsuites+=${fullsuite} else newsuites+=" "${fullsuite} @@ -1193,6 +1201,7 @@ for suite in ${SUITES}; do --log log_${log_name}.html --report None --output output_${log_name}.xml \ -v BUNDLEFOLDER:${BUNDLEFOLDER} \ -v BUNDLE_URL:${ACTUAL_BUNDLE_URL} \ + -v CONTROLLERFEATURES:${CONTROLLERFEATURES} \ -v CONTROLLER_USER:${USER} \ -v DEVSTACK_DEPLOY_PATH:/opt/stack/devstack \ -v HA_PROXY_IP:${HA_PROXY_IP} \