- Add missing sudos (and remove needless ones) - Don't carry sudo environment, we can add it back if it becomes necessary - Fix permission errors when exporting command output to files - Increase ulimit, we'd run into too many open files in the gate - Add some relevant logfiles to help troubleshoot issues - Re-export path to ensure common file paths are included - Don't assume "ip" is installed, it's provided by iproute - Don't assume "restorecon" is installed, it's provided by policycoreutils - Don't run packstack twice (--allinone will trigger a run even if -gen-answer-file is used, so switch to using --default-password instead) - Use symlink for defaults.yaml instead of common.yaml - Handled Hiera cleanup - Use debug mode in scenarios - Fix tempest subunit retrieval with sudo Co-Authored-By: Martin Magr <mmagr@redhat.com> Co-Authored-By: David Moreau Simard <dms@redhat.com> Change-Id: I7a363308cd9df981c0a1680171b9b2f2b95dd29e
36 lines
888 B
Bash
Executable File
36 lines
888 B
Bash
Executable File
#!/bin/bash
|
|
if [ $(id -u) != 0 ]; then
|
|
SUDO='sudo'
|
|
fi
|
|
|
|
echo -e "Generating packstack config for:
|
|
- keystone
|
|
- glance (swift backend)
|
|
- nova
|
|
- neutron (ovs+vxlan)
|
|
- heat
|
|
- swift
|
|
- sahara
|
|
- horizon
|
|
- trove
|
|
- tempest (regex: 'smoke dashboard')"
|
|
echo "tempest will run if packstack's installation completes successfully."
|
|
echo
|
|
|
|
$SUDO packstack --allinone \
|
|
--debug \
|
|
--default-password="packstack" \
|
|
--os-aodh-install=n \
|
|
--os-ceilometer-install=n \
|
|
--os-gnocchi-install=n \
|
|
--os-cinder-install=n \
|
|
--nagios-install=n \
|
|
--glance-backend=swift \
|
|
--os-sahara-install=y \
|
|
--os-heat-install=y \
|
|
--os-trove-install=y \
|
|
--provision-demo=y \
|
|
--provision-tempest=y \
|
|
--run-tempest=y \
|
|
--run-tempest-tests="smoke dashboard" || export FAILURE=true
|