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"
[[post-config|/etc/nova/nova.conf]]
[DEFAULT]
force_config_drive = False
+force_raw_images = False
[scheduler]
discover_hosts_in_cells_interval = 30
auth_strategy = keystone
[DEFAULT]
use_neutron = True
+force_raw_images = False
EOF
echo "Compute local.conf created:"
function configure_haproxy_for_neutron_requests() {
MGRIP=$1
+ # shellcheck disable=SC2206
ODL_IPS=(${2//,/ })
cat > ${WORKSPACE}/install_ha_proxy.sh<< EOF
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
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}"
sed -i 's/wait_for_compute 60/wait_for_compute 1800/g' /opt/stack/devstack/lib/nova
# TODO: modify sleep 1 to sleep 60, search wait_for_compute, then first sleep 1
# that would just reduce the number of logs in the compute stack.log
+
+#Install qemu-img command in Control Node for Pike
+echo "Install qemu-img application"
+sudo yum install -y qemu-img
EOF
cat > "${WORKSPACE}/setup_host_cell_mapping.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
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}
--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} \