Skip to content

Commit 0f5da00

Browse files
author
Sean Dague
committed
Regenerate tempest.conf every time
Select for active images If we don't do this, repeat devstack installs won't be able to use this script. Change-Id: I95746ffebfa7163c80161d26de1e575c0fc5d39c
1 parent 8d6638e commit 0f5da00

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/configure_tempest.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,12 @@ fi
6767
# We ignore ramdisk and kernel images and set the IMAGE_UUID to
6868
# the first image returned and set IMAGE_UUID_ALT to the second,
6969
# if there is more than one returned...
70+
# ... Also ensure we only take active images, so we don't get snapshots in process
7071
IMAGE_LINES=`glance image-list`
7172
IFS="$(echo -e "\n\r")"
7273
IMAGES=""
7374
for line in $IMAGE_LINES; do
74-
IMAGES="$IMAGES `echo $line | grep -v "^\(ID\|+--\)" | grep -v "\(aki\|ari\)" | cut -d' ' -f2`"
75+
IMAGES="$IMAGES `echo $line | grep -v "^\(ID\|+--\)" | grep -v "\(aki\|ari\)" | grep 'active' | cut -d' ' -f2`"
7576
done
7677
# Create array of image UUIDs...
7778
IFS=" "
@@ -89,9 +90,8 @@ if [[ $NUM_IMAGES -gt 1 ]]; then
8990
fi
9091

9192
# Create tempest.conf from tempest.conf.tpl
92-
if [[ ! -r $TEMPEST_CONF ]]; then
93-
cp $TEMPEST_CONF.tpl $TEMPEST_CONF
94-
fi
93+
# copy every time, because the image UUIDS are going to change
94+
cp $TEMPEST_CONF.tpl $TEMPEST_CONF
9595

9696
IDENTITY_USE_SSL=${IDENTITY_USE_SSL:-False}
9797
IDENTITY_HOST=${IDENTITY_HOST:-127.0.0.1}

0 commit comments

Comments
 (0)