ps axf | grep karaf | grep -v grep | awk '{print "kill -9 " $1}' | sh
echo "Bug 4628: Detecting misplaced config files"
-pushd "${WORKSPACE}/${BUNDLEFOLDER}"
+pushd "${WORKSPACE}/${BUNDLEFOLDER}" || exit
XMLS_FOUND="$(echo *.xml)"
-popd
+popd || exit
if [ "$XMLS_FOUND" != "*.xml" ]; then
echo "Bug 4628 confirmed."
## TODO: Uncomment the following when ODL is fixed, to guard against regression.
ps axf | grep karaf | grep -v grep | awk '{print "kill -9 " $1}' | sh
echo "Bug 4628: Detecting misplaced config files"
-pushd "${WORKSPACE}/${BUNDLEFOLDER}"
+pushd "${WORKSPACE}/${BUNDLEFOLDER}" || exit
XMLS_FOUND=`echo *.xml`
-popd
+popd || exit
if [ "$XMLS_FOUND" != "*.xml" ]; then
echo "Bug 4628 confirmed."
## TODO: Uncomment the following when ODL is fixed, to guard against regression.
source ${ROBOT_VENV}/bin/activate
PYTHON="${ROBOT_VENV}/bin/python"
SSH="ssh -t -t"
-ADMIN_PASSWORD=admin
+ADMIN_PASSWORD="admin"
# TODO: remove this work to run changes.py if/when it's moved higher up to be visible at the Robot level
echo "showing recent changes that made it in to the distribution used by this job"
function configure_haproxy_for_neutron_requests() {
MGRIP=$1
+ # shellcheck disable=SC2206
ODL_IPS=(${2//,/ })
cat > ${WORKSPACE}/install_ha_proxy.sh<< EOF
ssh ${!CONTROLIP} "cd /opt/stack/devstack; nohup ./stack.sh > /opt/stack/devstack/nohup.out 2>&1 &"
ssh ${!CONTROLIP} "ps -ef | grep stack.sh"
ssh ${!CONTROLIP} "ls -lrt /opt/stack/devstack/nohup.out"
- os_node_list+=(${!CONTROLIP})
+ os_node_list+=("${!CONTROLIP}")
# Workaround for stable/newton jobs
# TODO: can this be removed now?
if [ "${ODL_ML2_BRANCH}" == "stable/newton" ]; then
echo "Stack the compute node ${i} of ${NUM_OPENSTACK_COMPUTE_NODES}: ${COMPUTEIP}"
ssh ${!COMPUTEIP} "cd /opt/stack/devstack; nohup ./stack.sh > /opt/stack/devstack/nohup.out 2>&1 &"
ssh ${!COMPUTEIP} "ps -ef | grep stack.sh"
- os_node_list+=(${!COMPUTEIP})
+ os_node_list+=("${!COMPUTEIP}")
done
echo "nodelist: ${os_node_list[*]}"
# ipsec support
if [ "${IPSEC_VXLAN_TUNNELS_ENABLED}" == "yes" ]; then
+ # shellcheck disable=SC2206
ALL_NODES=(${!CONTROLIP} ${COMPUTE_IPS[*]})
for ((inx_ip1=0; inx_ip1<$((${#ALL_NODES[@]} - 1)); inx_ip1++)); do
for ((inx_ip2=$((inx_ip1 + 1)); inx_ip2<${#ALL_NODES[@]}; inx_ip2++)); do
OPENSTACK_VENV="/tmp/v/openstack"
# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091
source $OPENSTACK_VENV/bin/activate
-
+# shellcheck disable=SC2207
ADDR=($(openstack stack show -f json -c outputs "$STACK_NAME" | \
jq -r '.outputs[] | select(.output_key | match("^vm_[0-9]+_ips$")) | .output_value | .[]'))