openflowplugin-csit-3node-clustering-perf-bulkomatic-only-oxygen,
ovsdb-csit-1node-upstream-southbound-all-oxygen,
ovsdb-csit-3node-upstream-clustering-only-oxygen,
+p4plugin-csit-1node-basic-all-oxygen,
packetcable-csit-1node-pcmm-all-oxygen,
sdninterfaceapp-csit-1node-basic-only-oxygen,
sfc-csit-3node-docker-full-deploy-all-oxygen,
-#@IgnoreInspection BashAddShebang
+#!/bin/bash
# Activate robotframework virtualenv
# ${ROBOT_VENV} comes from the integration-install-robotframework.sh
# script.
# AccessRefused: (0, 0): (403) ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile.
# Compare that timestamp to this log in the control stack.log: sudo rabbitmqctl set_permissions -p nova_cell1 stackrabbit
# If the n-cpu.log is earlier than the control stack.log timestamp then the failure condition is likely hit.
-
-echo "Wait a maximum of 30m until rabbitmq is ready to allow the controller to create nova_cell1 before the computes need it"
-retry 30 60 "is_rabbitmq_ready ${OPENSTACK_CONTROL_NODE_1_IP}"
+WAIT_FOR_RABBITMQ_MINUTES=60
+echo "Wait a maximum of ${WAIT_FOR_RABBITMQ_MINUTES}m until rabbitmq is ready to allow the controller to create nova_cell1 before the computes need it"
+retry ${WAIT_FOR_RABBITMQ_MINUTES} 60 "is_rabbitmq_ready ${OPENSTACK_CONTROL_NODE_1_IP}"
rc=$?
if ((${rc} == 0)); then
echo "rabbitmq is ready, starting ${NUM_OPENSTACK_COMPUTE_NODES} compute(s)"
else
- echo "rabbitmq was not ready in "
+ echo "rabbitmq was not ready in ${WAIT_FOR_RABBITMQ_MINUTES}m"
collect_logs
exit 1
fi
echo "Starting Robot test suites ${SUITES} ..."
# please add pybot -v arguments on a single line and alphabetized
+suite_num=0
for suite in ${SUITES}; do
- log_name_ext=$(basename ${suite} | cut -d. -f1)
- pybot -N ${TESTPLAN} --removekeywords wuks -c critical -e exclude -e skip_if_${DISTROSTREAM} \
- --log log_${log_name_ext}.html --report None --output output_${log_name_ext}.xml \
+ # prepend a incrmental counter to the suite name so that the full robot log combining all the suites as is done
+ # in the rebot step below will list all the suites in chronological order as rebot seems to alphabatize them
+ let "suite_num = suite_num + 1"
+ suite_index="$(printf %02d ${suite_num})"
+ suite_name="$(basename ${suite} | cut -d. -f1)"
+ log_name="${suite_index}_${suite_name}"
+ pybot -N ${log_name} --removekeywords wuks -c critical -e exclude -e skip_if_${DISTROSTREAM} \
+ --log log_${log_name}.html --report None --output output_${log_name}.xml \
-v BUNDLEFOLDER:${BUNDLEFOLDER} \
-v BUNDLE_URL:${ACTUAL_BUNDLE_URL} \
-v CONTROLLER_USER:${USER} \
${TESTOPTIONS} ${suite} || true
done
#rebot exit codes seem to be different
-rebot --output ${WORKSPACE}/output.xml --log None --report None output_*.xml || true
+rebot --output ${WORKSPACE}/output.xml --log log_full.html --report None -N openstack output_*.xml || true
echo "Examining the files in data/log and checking file size"
ssh ${ODL_SYSTEM_IP} "ls -altr /tmp/${BUNDLEFOLDER}/data/log/"
--- /dev/null
+#!/bin/bash
+
+# Options:
+# -x: Echo commands
+# -e: Fail on errors
+# -o pipefail: Fail on errors in scripts this calls, give stacktrace
+set -ex -o pipefail
+
+# Requirements for package where SRPM was built into noarch on CentOS CBS
+# rpm -qp opendaylight-8.0.0-0.1.20171125rel2049.el7.noarch.rpm --requires
+# shellcheck disable=SC2034
+declare -a expected_deps=( "/bin/bash"
+ "/bin/sh"
+ "/usr/bin/env"
+ "java >= 1:1.8.0"
+ "rpmlib(CompressedFileNames) <= 3.0.4-1"
+ "rpmlib(FileDigests) <= 4.6.0-1"
+ "rpmlib(PartialHardlinkSets) <= 4.0.4-1"
+ "rpmlib(PayloadFilesHavePrefix) <= 4.0-1"
+ "shadow-utils"
+ "rpmlib(PayloadIsXz) <= 5.2-1" )
+
+# shellcheck disable=SC2034
+mapfile -t actual_deps < <( rpm -qp /home/$USER/rpmbuild/RPMS/noarch/*.rpm --requires )
+# shellcheck disable=SC2154 disable=SC2145
+printf '%s\n' "${{actual_deps[@]}}"
+
+# shellcheck disable=SC2154 disable=SC2145 disable=SC2034
+diff_deps=(`echo "${{expected_deps[@]}}" "${{actual_deps[@]}}" | tr ' ' '\n' | sort | uniq -u `)
+# shellcheck disable=SC2154 disable=SC2145 disable=SC2068 disable=SC2170 disable=SC1083
+if [ ${{#diff_deps[*]}} -eq 0 ]; then
+ echo "RPM requirements are as expected"
+else
+ echo "RPM requirements don't match the expected requirements"
+ # shellcheck disable=SC2154 disable=SC2145
+ printf '%s\n' "${{diff_deps[@]}}"
+ exit 1
+fi