Skip to content

Instantly share code, notes, and snippets.

@dmsimard dmsimard/
Last active Jan 19, 2016

What would you like to do?
#!/bin/bash -ex
# Exit if we're not running on rhel-like
if [ -f /etc/os-release ]; then
source /etc/os-release
test "$ID" = "fedora" -o "$ID" = "centos"
exit 1
if [ $(id -u) != 0 ]; then
# preserve environment so we can have ZUUL_* params
SUDO='sudo -E'
# Setup delorean current repositories
$SUDO curl -o /etc/yum.repos.d/delorean.repo
$SUDO curl -o /etc/yum.repos.d/delorean-deps.repo
# Install required packages
$SUDO yum -y install yum-plugin-priorities dstat python-setuptools openssl-devel python-devel libffi-devel libxml2-devel libxslt-devel ruby-devel openstack-selinux "@Development Tools"
# Setup dstat for resource usage tracing
if type "dstat" 2>/dev/null; then
$SUDO dstat -tcmndrylpg --top-cpu-adv --top-io-adv --nocolor | $SUDO tee --append /var/log/dstat.log > /dev/null &
# Install packstack from source
git clone
pushd packstack
$SUDO python install
$SUDO python install_puppet_modules
packstack --allinone \
--os-manila-install=n \
--os-sahara-install=n \
--os-heat-install=n \
--os-trove-install=n \
--provision-demo=y \
--provision-tempest=y \
--run-tempest=y \
--run-tempest-tests="smoke dashboard TelemetryAlarming" \
sed -i -re "s,(.*_PASSWORD|.*_PW)=.*,\1=packstack," packstack.txt
# Run packstack and capture result
$SUDO packstack --answer-file=packstack.txt
# Generate subunit
/var/lib/tempest/.venv/bin/testr last --subunit > /var/tmp/packstack/latest/tempest.subunit
exit $result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.