Cirros downloads have been a big problem of unreliability in testing Packstack in different environments. This aims to use pre-cached Cirros image files (in OpenStack or RDO gate) or it will download the images with wget (with retries) prior to running the tests. This will prove faster if there are pre-cached images available and more reliable in case the images need to be downloaded. The change is backwards compatible and affects testing from run_tests.sh only. The glance_image provider from puppet-glance accepts files or URLs, detecting if it's a path by leading slashes in from the location. The *_URL parameters are arguably no longer accurate but this can be fixed in a future patch if we see the need to. Change-Id: Ibd19fb69e080957165594953687efe5f096f93b2
38 lines
1.1 KiB
Bash
Executable File
38 lines
1.1 KiB
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)
|
|
- swift
|
|
- sahara
|
|
- trove
|
|
- tempest (regex: 'smoke dashboard')"
|
|
echo "tempest will run if packstack's installation completes successfully."
|
|
echo
|
|
|
|
$SUDO packstack --allinone \
|
|
--debug \
|
|
--service-workers=2 \
|
|
--default-password="packstack" \
|
|
--os-aodh-install=n \
|
|
--os-ceilometer-install=n \
|
|
--os-gnocchi-install=n \
|
|
--os-cinder-install=n \
|
|
--os-horizon-install=n \
|
|
--nagios-install=n \
|
|
--glance-backend=swift \
|
|
--os-sahara-install=y \
|
|
--os-trove-install=y \
|
|
--provision-uec-kernel-url="/tmp/cirros/cirros-0.3.4-x86_64-vmlinuz" \
|
|
--provision-uec-ramdisk-url="/tmp/cirros/cirros-0.3.4-x86_64-initrd" \
|
|
--provision-uec-disk-url="/tmp/cirros/cirros-0.3.4-x86_64-disk.img" \
|
|
--provision-demo=y \
|
|
--provision-tempest=y \
|
|
--run-tempest=y \
|
|
--run-tempest-tests="smoke" || export FAILURE=true
|