blob: 298fa9baceec87a9211760ebe777fd3139efece1 [file] [log] [blame]
Dean Troyerfda65b82011-11-02 12:13:33 -05001#!/usr/bin/env bash
2#
Dean Troyere62ba4d2012-06-27 22:07:34 -05003# **configure_tempest.sh**
4
5# Build a tempest configuration file from devstack
Dean Troyerfda65b82011-11-02 12:13:33 -05006
Jay Pipes678a1882012-04-23 10:56:15 -04007echo "**************************************************"
8echo "Configuring Tempest"
9echo "**************************************************"
10
11# This script exits on an error so that errors don't compound and you see
12# only the first error that occured.
13set -o errexit
14
15# Print the commands being run so that we can see the command that triggers
16# an error. It is also useful for following allowing as the install occurs.
17set -o xtrace
18
Dean Troyerfda65b82011-11-02 12:13:33 -050019function usage {
Dean Troyer608bb122012-01-10 14:43:17 -060020 echo "$0 - Build tempest.conf"
Dean Troyerfda65b82011-11-02 12:13:33 -050021 echo ""
Jay Pipes678a1882012-04-23 10:56:15 -040022 echo "Usage: $0"
Dean Troyerfda65b82011-11-02 12:13:33 -050023 exit 1
24}
25
Dean Troyer44d8f8f2011-11-23 23:21:06 -060026if [ "$1" = "-h" ]; then
Dean Troyerfda65b82011-11-02 12:13:33 -050027 usage
28fi
29
Dean Troyerfda65b82011-11-02 12:13:33 -050030# Keep track of the current directory
31TOOLS_DIR=$(cd $(dirname "$0") && pwd)
Dean Troyer7f9aa712012-01-31 12:11:56 -060032TOP_DIR=$(cd $TOOLS_DIR/..; pwd)
33
34# Import common functions
35. $TOP_DIR/functions
Dean Troyerfda65b82011-11-02 12:13:33 -050036
37# Abort if localrc is not set
38if [ ! -e $TOP_DIR/localrc ]; then
Jay Pipes58d34ea2012-04-05 17:19:02 -040039 echo "You must have a localrc with necessary basic configuration defined before proceeding."
Dean Troyerfda65b82011-11-02 12:13:33 -050040 exit 1
41fi
42
Jay Pipes58d34ea2012-04-05 17:19:02 -040043# Abort if openrc is not set
44if [ ! -e $TOP_DIR/openrc ]; then
45 echo "You must have an openrc with ALL necessary passwords and credentials defined before proceeding."
46 exit 1
47fi
48
Jay Pipes678a1882012-04-23 10:56:15 -040049# Source params
Matthew Treinish52330642012-11-07 15:00:01 -050050source $TOP_DIR/lib/database
Jay Pipes58d34ea2012-04-05 17:19:02 -040051source $TOP_DIR/openrc
Dean Troyerfda65b82011-11-02 12:13:33 -050052
53# Where Openstack code lives
54DEST=${DEST:-/opt/stack}
55
Jay Pipes4ba6eeb2012-08-01 11:55:12 -040056NOVA_SOURCE_DIR=$DEST/nova
Dean Troyer608bb122012-01-10 14:43:17 -060057TEMPEST_DIR=$DEST/tempest
Jay Pipes678a1882012-04-23 10:56:15 -040058CONFIG_DIR=$TEMPEST_DIR/etc
Dean Troyer608bb122012-01-10 14:43:17 -060059TEMPEST_CONF=$CONFIG_DIR/tempest.conf
Dean Troyer44d8f8f2011-11-23 23:21:06 -060060
Jay Pipesefcda852012-11-09 12:22:16 -050061DATABASE_TYPE=${DATABASE_TYPE:-mysql}
62initialize_database_backends
63
Dean Troyerfda65b82011-11-02 12:13:33 -050064# Use the GUEST_IP unless an explicit IP is set by ``HOST_IP``
65HOST_IP=${HOST_IP:-$GUEST_IP}
66# Use the first IP if HOST_IP still is not set
67if [ ! -n "$HOST_IP" ]; then
68 HOST_IP=`LC_ALL=C /sbin/ifconfig | grep -m 1 'inet addr:'| cut -d: -f2 | awk '{print $1}'`
69fi
70
Jay Pipes678a1882012-04-23 10:56:15 -040071# Glance should already contain images to be used in tempest
72# testing. Here we simply look for images stored in Glance
73# and set the appropriate variables for use in the tempest config
Devananda van der Veenc0c6f002012-07-06 17:49:12 -070074# We ignore ramdisk and kernel images, look for the default image
75# DEFAULT_IMAGE_NAME. If not found, we set the IMAGE_UUID to the
76# first image returned and set IMAGE_UUID_ALT to the second,
Jay Pipes678a1882012-04-23 10:56:15 -040077# if there is more than one returned...
Sean Dague0f5da002012-05-03 11:52:55 -040078# ... Also ensure we only take active images, so we don't get snapshots in process
Jay Pipesa1c87382012-04-27 17:46:58 -040079IMAGE_LINES=`glance image-list`
Jay Pipes678a1882012-04-23 10:56:15 -040080IFS="$(echo -e "\n\r")"
81IMAGES=""
82for line in $IMAGE_LINES; do
Devananda van der Veenc0c6f002012-07-06 17:49:12 -070083 if [ -z $DEFAULT_IMAGE_NAME ]; then
84 IMAGES="$IMAGES `echo $line | grep -v "^\(ID\|+--\)" | grep -v "\(aki\|ari\)" | grep 'active' | cut -d' ' -f2`"
85 else
86 IMAGES="$IMAGES `echo $line | grep -v "^\(ID\|+--\)" | grep -v "\(aki\|ari\)" | grep 'active' | grep "$DEFAULT_IMAGE_NAME" | cut -d' ' -f2`"
87 fi
Dean Troyer3320c552011-11-23 23:19:10 -060088done
Jay Pipes678a1882012-04-23 10:56:15 -040089# Create array of image UUIDs...
90IFS=" "
91IMAGES=($IMAGES)
92NUM_IMAGES=${#IMAGES[*]}
93echo "Found $NUM_IMAGES images"
94if [[ $NUM_IMAGES -eq 0 ]]; then
95 echo "Found no valid images to use!"
96 exit 1
97fi
98IMAGE_UUID=${IMAGES[0]}
99IMAGE_UUID_ALT=$IMAGE_UUID
100if [[ $NUM_IMAGES -gt 1 ]]; then
101 IMAGE_UUID_ALT=${IMAGES[1]}
Dean Troyer608bb122012-01-10 14:43:17 -0600102fi
Dean Troyer3320c552011-11-23 23:19:10 -0600103
Jay Pipesd01325f2012-04-04 16:21:33 -0400104# Create tempest.conf from tempest.conf.tpl
Sean Dague0f5da002012-05-03 11:52:55 -0400105# copy every time, because the image UUIDS are going to change
106cp $TEMPEST_CONF.tpl $TEMPEST_CONF
Jesse Andrewsd7326d22011-11-20 10:02:26 -0800107
Jay Pipes3edd5b42012-07-08 21:04:12 -0400108COMPUTE_ADMIN_USERNAME=${ADMIN_USERNAME:-admin}
109COMPUTE_ADMIN_PASSWORD=${ADMIN_PASSWORD:-secrete}
110COMPUTE_ADMIN_TENANT_NAME=${ADMIN_TENANT:-admin}
111
112IDENTITY_ADMIN_USERNAME=${ADMIN_USERNAME:-admin}
113IDENTITY_ADMIN_PASSWORD=${ADMIN_PASSWORD:-secrete}
114IDENTITY_ADMIN_TENANT_NAME=${ADMIN_TENANT:-admin}
Jay Pipesb297d2d2012-05-10 11:21:22 -0400115
Jay Pipesd01325f2012-04-04 16:21:33 -0400116IDENTITY_USE_SSL=${IDENTITY_USE_SSL:-False}
Jay Pipes678a1882012-04-23 10:56:15 -0400117IDENTITY_HOST=${IDENTITY_HOST:-127.0.0.1}
118IDENTITY_PORT=${IDENTITY_PORT:-5000}
119IDENTITY_API_VERSION="v2.0" # Note: need v for now...
Jay Pipesd01325f2012-04-04 16:21:33 -0400120# TODO(jaypipes): This is dumb and needs to be removed
121# from the Tempest configuration file entirely...
122IDENTITY_PATH=${IDENTITY_PATH:-tokens}
123IDENTITY_STRATEGY=${IDENTITY_STRATEGY:-keystone}
Jay Pipes3edd5b42012-07-08 21:04:12 -0400124IDENTITY_CATALOG_TYPE=identity
Jay Pipesd01325f2012-04-04 16:21:33 -0400125
126# We use regular, non-admin users in Tempest for the USERNAME
127# substitutions and use ADMIN_USERNAME et al for the admin stuff.
128# OS_USERNAME et all should be defined in openrc.
129OS_USERNAME=${OS_USERNAME:-demo}
130OS_TENANT_NAME=${OS_TENANT_NAME:-demo}
jiajun xu203edc52012-11-15 10:45:44 +0800131OS_PASSWORD=${OS_PASSWORD:-$ADMIN_PASSWORD}
Jay Pipesd01325f2012-04-04 16:21:33 -0400132
Jay Pipesb297d2d2012-05-10 11:21:22 -0400133# See files/keystone_data.sh where alt_demo user
134# and tenant are set up...
135ALT_USERNAME=${ALT_USERNAME:-alt_demo}
136ALT_TENANT_NAME=${ALT_TENANT_NAME:-alt_demo}
Jay Pipesd01325f2012-04-04 16:21:33 -0400137ALT_PASSWORD=$OS_PASSWORD
Jay Pipesd01325f2012-04-04 16:21:33 -0400138
Devananda van der Veenc0c6f002012-07-06 17:49:12 -0700139# Check Nova for existing flavors and, if set, look for the
140# DEFAULT_INSTANCE_TYPE and use that. Otherwise, just use the first flavor.
141FLAVOR_LINES=`nova flavor-list`
142IFS="$(echo -e "\n\r")"
143FLAVORS=""
144for line in $FLAVOR_LINES; do
145 if [ -z $DEFAULT_INSTANCE_TYPE ]; then
Devananda van der Veen27004922012-08-15 16:38:29 -0700146 FLAVORS="$FLAVORS `echo $line | grep -v "^\(|\s*ID\|+--\)" | cut -d' ' -f2`"
Devananda van der Veenc0c6f002012-07-06 17:49:12 -0700147 else
Devananda van der Veen27004922012-08-15 16:38:29 -0700148 FLAVORS="$FLAVORS `echo $line | grep -v "^\(|\s*ID\|+--\)" | grep "$DEFAULT_INSTANCE_TYPE" | cut -d' ' -f2`"
Devananda van der Veenc0c6f002012-07-06 17:49:12 -0700149 fi
150done
151IFS=" "
152FLAVORS=($FLAVORS)
153NUM_FLAVORS=${#FLAVORS[*]}
154echo "Found $NUM_FLAVORS flavors"
155if [[ $NUM_FLAVORS -eq 0 ]]; then
156 echo "Found no valid flavors to use!"
157 exit 1
158fi
159FLAVOR_REF=${FLAVORS[0]}
160FLAVOR_REF_ALT=$FLAVOR_REF
161if [[ $NUM_FLAVORS -gt 1 ]]; then
162 FLAVOR_REF_ALT=${FLAVORS[1]}
163fi
Jay Pipesd01325f2012-04-04 16:21:33 -0400164
Jay Pipesd01325f2012-04-04 16:21:33 -0400165# Do any of the following need to be configurable?
166COMPUTE_CATALOG_TYPE=compute
167COMPUTE_CREATE_IMAGE_ENABLED=True
Jay Pipes3edd5b42012-07-08 21:04:12 -0400168COMPUTE_ALLOW_TENANT_ISOLATION=True
Dan Smith88ae3762012-09-04 10:18:18 -0700169COMPUTE_ALLOW_TENANT_REUSE=True
Jay Pipes4ba6eeb2012-08-01 11:55:12 -0400170COMPUTE_RESIZE_AVAILABLE=False
David Kranz686f98e2012-07-24 09:15:44 -0400171COMPUTE_CHANGE_PASSWORD_AVAILABLE=False # not supported with QEMU...
Jay Pipesd01325f2012-04-04 16:21:33 -0400172COMPUTE_LOG_LEVEL=ERROR
Jay Pipes3edd5b42012-07-08 21:04:12 -0400173BUILD_INTERVAL=3
174BUILD_TIMEOUT=400
Rohit Karajgi2eb9a132012-08-08 02:34:51 -0700175COMPUTE_BUILD_INTERVAL=3
176COMPUTE_BUILD_TIMEOUT=400
177VOLUME_BUILD_INTERVAL=3
178VOLUME_BUILD_TIMEOUT=300
Jay Pipes3edd5b42012-07-08 21:04:12 -0400179RUN_SSH=True
Devananda van der Veenc0c6f002012-07-06 17:49:12 -0700180# Check for DEFAULT_INSTANCE_USER and try to connect with that account
181SSH_USER=${DEFAULT_INSTANCE_USER:-$OS_USERNAME}
Jay Pipes3edd5b42012-07-08 21:04:12 -0400182NETWORK_FOR_SSH=private
183IP_VERSION_FOR_SSH=4
184SSH_TIMEOUT=4
Jay Pipes4ba6eeb2012-08-01 11:55:12 -0400185# Whitebox testing configuration for Compute...
186COMPUTE_WHITEBOX_ENABLED=True
187COMPUTE_SOURCE_DIR=$NOVA_SOURCE_DIR
Monty Taylor99fcd812012-12-02 13:07:39 -0800188COMPUTE_BIN_DIR=$NOVA_BIN_DIR
Jay Pipes4ba6eeb2012-08-01 11:55:12 -0400189COMPUTE_CONFIG_PATH=/etc/nova/nova.conf
190# TODO(jaypipes): Create the key file here... right now, no whitebox
191# tests actually use a key.
192COMPUTE_PATH_TO_PRIVATE_KEY=$TEMPEST_DIR/id_rsa
Matthew Treinish52330642012-11-07 15:00:01 -0500193COMPUTE_DB_URI=$BASE_SQL_CONN/nova
Jay Pipesd01325f2012-04-04 16:21:33 -0400194
Jay Pipesc0e1ef52012-04-30 15:56:13 -0400195# Image test configuration options...
196IMAGE_HOST=${IMAGE_HOST:-127.0.0.1}
197IMAGE_PORT=${IMAGE_PORT:-9292}
Jay Pipes3edd5b42012-07-08 21:04:12 -0400198IMAGE_API_VERSION=1
199IMAGE_CATALOG_TYPE=image
200
201# Network API test configuration
202NETWORK_CATALOG_TYPE=network
203NETWORK_API_VERSION=2.0
Jay Pipesc0e1ef52012-04-30 15:56:13 -0400204
Rohit Karajgi5ef90472012-07-31 06:20:35 -0700205# Volume API test configuration
206VOLUME_CATALOG_TYPE=volume
207
Mate Lakat32cce9e2012-10-05 12:27:51 +0100208# Live migration
209LIVE_MIGRATION_AVAILABLE=${LIVE_MIGRATION_AVAILABLE:-False}
210USE_BLOCK_MIGRATION_FOR_LIVE_MIGRATION=${USE_BLOCK_MIGRATION_FOR_LIVE_MIGRATION:-False}
211
Attila Fazekased301602012-11-29 16:52:59 +0100212# Object Storage
213OBJECT_CATALOG_TYPE="object-store"
214
Jay Pipes596b9062012-11-19 10:58:50 -0500215# EC2 and S3 test configuration
216BOTO_EC2_URL="http://$IDENTITY_HOST:8773/services/Cloud"
217BOTO_S3_URL="http://$IDENTITY_HOST:3333"
218BOTO_AWS_ACCESS="" # Created in tempest...
219BOTO_AWS_SECRET="" # Created in tempest...
220BOTO_AWS_REGION="RegionOne"
221BOTO_S3_MATERIALS_PATH=$DEST/devstack/files/images/s3-materials/cirros-0.3.0
222BOTO_ARI_MANIFEST=cirros-0.3.0-x86_64-initrd.manifest.xml
223BOTO_AMI_MANIFEST=cirros-0.3.0-x86_64-blank.img.manifest.xml
224BOTO_AKI_MANIFEST=cirros-0.3.0-x86_64-vmlinuz.manifest.xml
225BOTO_FLAVOR_NAME=m1.tiny
226BOTO_SOCKET_TIMEOUT=5
227BOTO_BUILD_TIMEOUT=${COMPUTE_BUILD_TIMEOUT:-400}
228BOTO_BUILD_INTERVAL=${COMPUTE_BUILD_INTERVAL:-3}
229
Dean Troyer608bb122012-01-10 14:43:17 -0600230sed -e "
Jay Pipesd01325f2012-04-04 16:21:33 -0400231 s,%IDENTITY_USE_SSL%,$IDENTITY_USE_SSL,g;
Jay Pipes678a1882012-04-23 10:56:15 -0400232 s,%IDENTITY_HOST%,$IDENTITY_HOST,g;
Jay Pipesd01325f2012-04-04 16:21:33 -0400233 s,%IDENTITY_PORT%,$IDENTITY_PORT,g;
Jay Pipes678a1882012-04-23 10:56:15 -0400234 s,%IDENTITY_API_VERSION%,$IDENTITY_API_VERSION,g;
Jay Pipesd01325f2012-04-04 16:21:33 -0400235 s,%IDENTITY_PATH%,$IDENTITY_PATH,g;
236 s,%IDENTITY_STRATEGY%,$IDENTITY_STRATEGY,g;
Jay Pipes3edd5b42012-07-08 21:04:12 -0400237 s,%IDENTITY_CATALOG_TYPE%,$IDENTITY_CATALOG_TYPE,g;
Jay Pipesd01325f2012-04-04 16:21:33 -0400238 s,%USERNAME%,$OS_USERNAME,g;
239 s,%PASSWORD%,$OS_PASSWORD,g;
240 s,%TENANT_NAME%,$OS_TENANT_NAME,g;
241 s,%ALT_USERNAME%,$ALT_USERNAME,g;
242 s,%ALT_PASSWORD%,$ALT_PASSWORD,g;
243 s,%ALT_TENANT_NAME%,$ALT_TENANT_NAME,g;
244 s,%COMPUTE_CATALOG_TYPE%,$COMPUTE_CATALOG_TYPE,g;
Jay Pipes3edd5b42012-07-08 21:04:12 -0400245 s,%COMPUTE_ALLOW_TENANT_ISOLATION%,$COMPUTE_ALLOW_TENANT_ISOLATION,g;
Dan Smith88ae3762012-09-04 10:18:18 -0700246 s,%COMPUTE_ALLOW_TENANT_REUSE%,$COMPUTE_ALLOW_TENANT_REUSE,g;
Jay Pipesd01325f2012-04-04 16:21:33 -0400247 s,%COMPUTE_CREATE_IMAGE_ENABLED%,$COMPUTE_CREATE_IMAGE_ENABLED,g;
248 s,%COMPUTE_RESIZE_AVAILABLE%,$COMPUTE_RESIZE_AVAILABLE,g;
David Kranz686f98e2012-07-24 09:15:44 -0400249 s,%COMPUTE_CHANGE_PASSWORD_AVAILABLE%,$COMPUTE_CHANGE_PASSWORD_AVAILABLE,g;
Jay Pipes4ba6eeb2012-08-01 11:55:12 -0400250 s,%COMPUTE_WHITEBOX_ENABLED%,$COMPUTE_WHITEBOX_ENABLED,g;
Jay Pipesd01325f2012-04-04 16:21:33 -0400251 s,%COMPUTE_LOG_LEVEL%,$COMPUTE_LOG_LEVEL,g;
Jay Pipes58d34ea2012-04-05 17:19:02 -0400252 s,%BUILD_INTERVAL%,$BUILD_INTERVAL,g;
253 s,%BUILD_TIMEOUT%,$BUILD_TIMEOUT,g;
Rohit Karajgi2eb9a132012-08-08 02:34:51 -0700254 s,%COMPUTE_BUILD_INTERVAL%,$COMPUTE_BUILD_INTERVAL,g;
255 s,%COMPUTE_BUILD_TIMEOUT%,$COMPUTE_BUILD_TIMEOUT,g;
Jay Pipes3edd5b42012-07-08 21:04:12 -0400256 s,%RUN_SSH%,$RUN_SSH,g;
257 s,%SSH_USER%,$SSH_USER,g;
258 s,%NETWORK_FOR_SSH%,$NETWORK_FOR_SSH,g;
259 s,%IP_VERSION_FOR_SSH%,$IP_VERSION_FOR_SSH,g;
260 s,%SSH_TIMEOUT%,$SSH_TIMEOUT,g;
Jay Pipesd01325f2012-04-04 16:21:33 -0400261 s,%IMAGE_ID%,$IMAGE_UUID,g;
262 s,%IMAGE_ID_ALT%,$IMAGE_UUID_ALT,g;
263 s,%FLAVOR_REF%,$FLAVOR_REF,g;
264 s,%FLAVOR_REF_ALT%,$FLAVOR_REF_ALT,g;
Jay Pipes4ba6eeb2012-08-01 11:55:12 -0400265 s,%COMPUTE_CONFIG_PATH%,$COMPUTE_CONFIG_PATH,g;
266 s,%COMPUTE_SOURCE_DIR%,$COMPUTE_SOURCE_DIR,g;
267 s,%COMPUTE_BIN_DIR%,$COMPUTE_BIN_DIR,g;
268 s,%COMPUTE_PATH_TO_PRIVATE_KEY%,$COMPUTE_PATH_TO_PRIVATE_KEY,g;
269 s,%COMPUTE_DB_URI%,$COMPUTE_DB_URI,g;
Jay Pipesc0e1ef52012-04-30 15:56:13 -0400270 s,%IMAGE_HOST%,$IMAGE_HOST,g;
271 s,%IMAGE_PORT%,$IMAGE_PORT,g;
272 s,%IMAGE_API_VERSION%,$IMAGE_API_VERSION,g;
Jay Pipes3edd5b42012-07-08 21:04:12 -0400273 s,%IMAGE_CATALOG_TYPE%,$IMAGE_CATALOG_TYPE,g;
274 s,%COMPUTE_ADMIN_USERNAME%,$COMPUTE_ADMIN_USERNAME,g;
275 s,%COMPUTE_ADMIN_PASSWORD%,$COMPUTE_ADMIN_PASSWORD,g;
276 s,%COMPUTE_ADMIN_TENANT_NAME%,$COMPUTE_ADMIN_TENANT_NAME,g;
277 s,%IDENTITY_ADMIN_USERNAME%,$IDENTITY_ADMIN_USERNAME,g;
278 s,%IDENTITY_ADMIN_PASSWORD%,$IDENTITY_ADMIN_PASSWORD,g;
279 s,%IDENTITY_ADMIN_TENANT_NAME%,$IDENTITY_ADMIN_TENANT_NAME,g;
280 s,%NETWORK_CATALOG_TYPE%,$NETWORK_CATALOG_TYPE,g;
281 s,%NETWORK_API_VERSION%,$NETWORK_API_VERSION,g;
Rohit Karajgi5ef90472012-07-31 06:20:35 -0700282 s,%VOLUME_CATALOG_TYPE%,$VOLUME_CATALOG_TYPE,g;
Rohit Karajgi2eb9a132012-08-08 02:34:51 -0700283 s,%VOLUME_BUILD_INTERVAL%,$VOLUME_BUILD_INTERVAL,g;
284 s,%VOLUME_BUILD_TIMEOUT%,$VOLUME_BUILD_TIMEOUT,g;
Mate Lakat32cce9e2012-10-05 12:27:51 +0100285 s,%LIVE_MIGRATION_AVAILABLE%,$LIVE_MIGRATION_AVAILABLE,g;
286 s,%USE_BLOCK_MIGRATION_FOR_LIVE_MIGRATION%,$USE_BLOCK_MIGRATION_FOR_LIVE_MIGRATION,g;
Attila Fazekased301602012-11-29 16:52:59 +0100287 s,%OBJECT_CATALOG_TYPE%,$OBJECT_CATALOG_TYPE,g;
Jay Pipes596b9062012-11-19 10:58:50 -0500288 s,%BOTO_EC2_URL%,$BOTO_EC2_URL,g;
289 s,%BOTO_S3_URL%,$BOTO_S3_URL,g;
290 s,%BOTO_AWS_ACCESS%,$BOTO_AWS_ACCESS,g;
291 s,%BOTO_AWS_SECRET%,$BOTO_AWS_SECRET,g;
292 s,%BOTO_AWS_REGION%,$BOTO_AWS_REGION,g;
293 s,%BOTO_S3_MATERIALS_PATH%,$BOTO_S3_MATERIALS_PATH,g;
294 s,%BOTO_ARI_MANIFEST%,$BOTO_ARI_MANIFEST,g;
295 s,%BOTO_AMI_MANIFEST%,$BOTO_AMI_MANIFEST,g;
296 s,%BOTO_AKI_MANIFEST%,$BOTO_AKI_MANIFEST,g;
297 s,%BOTO_FLAVOR_NAME%,$BOTO_FLAVOR_NAME,g;
298 s,%BOTO_SOCKET_TIMEOUT%,$BOTO_SOCKET_TIMEOUT,g;
299 s,%BOTO_BUILD_TIMEOUT%,$BOTO_BUILD_TIMEOUT,g;
300 s,%BOTO_BUILD_INTERVAL%,$BOTO_BUILD_INTERVAL,g;
Dean Troyer608bb122012-01-10 14:43:17 -0600301" -i $TEMPEST_CONF
Jesse Andrewsd7326d22011-11-20 10:02:26 -0800302
Jay Pipes58d34ea2012-04-05 17:19:02 -0400303echo "Created tempest configuration file:"
304cat $TEMPEST_CONF
Jay Pipes58d34ea2012-04-05 17:19:02 -0400305
Jay Pipes678a1882012-04-23 10:56:15 -0400306echo "\n"
307echo "**************************************************"
308echo "Finished Configuring Tempest"
309echo "**************************************************"