packstack/tests/scenario003.sh
Adam Kimball 2aef0edad8 Add basic system arch support to test scenarios
Currently, test scenarios 001-003 will only look for x86 cirros
images. This patch adds support by grabbing the system arch and
creating a string to match the downloaded cirros image in
run_tests.sh.

Currently, ppc64le and x86 will use different cirros versions,
as x86 experiences kernel panics with 0.4.0, which power needs.

Change-Id: Ibc9c2f4d9d8d34e416b3b57cfde0a51d0917e689
2018-04-17 17:34:53 +00:00

49 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
CONTROLLER_NODE=${CONTROLLER_NODE:-}
COMPUTE_NODE=${COMPUTE_NODE:-}
if [ $(id -u) != 0 ]; then
SUDO='sudo'
fi
echo -e "Generating packstack config for:
- keystone
- glance (file backend)
- nova
- neutron (ovs+vxlan)
- ceilometer
- aodh
- gnocchi
- panko
- heat
- magnum
- tempest (regex: 'smoke TelemetryAlarming')"
echo "tempest will run if packstack's installation completes successfully."
echo
if [ -z $COMPUTE_NODE ]; then
NODE_FLAGS="--allinone"
else
NODE_FLAGS="--allinone --os-controller-host=$CONTROLLER_NODE --os-network-hosts=$CONTROLLER_NODE --os-compute-hosts=$COMPUTE_NODE"
fi
$SUDO packstack ${ADDITIONAL_ARGS} \
${NODE_FLAGS} \
--debug \
--os-debug-mode=y \
--service-workers=2 \
--default-password="packstack" \
--os-swift-install=n \
--os-horizon-install=n \
--glance-backend=file \
--os-heat-install=y \
--os-magnum-install=y \
--os-panko-install=y \
--provision-uec-kernel-url="/tmp/cirros/cirros-$CIRROS_VERSION-$CIRROS_ARCH-vmlinuz" \
--provision-uec-ramdisk-url="/tmp/cirros/cirros-$CIRROS_VERSION-$CIRROS_ARCH-initrd" \
--provision-uec-disk-url="/tmp/cirros/cirros-$CIRROS_VERSION-$CIRROS_ARCH-disk.img" \
--provision-demo=y \
--provision-tempest=y \
--run-tempest=y \
--run-tempest-tests="smoke TelemetryAlarming" || export FAILURE=true