blob: 0bb49ab0077c09f09249bf4365ae272f8d475a5c [file] [log] [blame]
Sean Dague0936e672014-04-03 14:48:48 -04001#!/bin/bash
2
3# Keep track of the devstack directory
4TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
5
6source $TOP_DIR/functions
7
8# Possible virt drivers, if we have more, add them here. Always keep
9# dummy in the end position to trigger the fall through case.
10DRIVERS="openvz ironic libvirt vsphere xenserver dummy"
11
12# Extra variables to trigger getting additional images.
Sean Daguefafb62b2014-06-30 16:49:30 -040013export ENABLED_SERVICES="h-api,tr-api"
Sean Dague0936e672014-04-03 14:48:48 -040014HEAT_FETCHED_TEST_IMAGE="Fedora-i386-20-20131211.1-sda"
Sean Dagueb6238602014-04-17 21:56:53 -040015PRECACHE_IMAGES=True
Sean Dague0936e672014-04-03 14:48:48 -040016
17# Loop over all the virt drivers and collect all the possible images
18ALL_IMAGES=""
19for driver in $DRIVERS; do
20 VIRT_DRIVER=$driver
21 URLS=$(source $TOP_DIR/stackrc && echo $IMAGE_URLS)
22 if [[ ! -z "$ALL_IMAGES" ]]; then
23 ALL_IMAGES+=,
24 fi
25 ALL_IMAGES+=$URLS
26done
27
28# Make a nice list
29echo $ALL_IMAGES | tr ',' '\n' | sort | uniq
30
31# Sanity check - ensure we have a minimum number of images
32num=$(echo $ALL_IMAGES | tr ',' '\n' | sort | uniq | wc -l)
33if [[ "$num" -lt 5 ]]; then
34 echo "ERROR: We only found $num images in $ALL_IMAGES, which can't be right."
35 exit 1
36fi