|
...
|
...
|
@@ -67,11 +67,12 @@ fi
|
|
67
|
67
|
# We ignore ramdisk and kernel images and set the IMAGE_UUID to
|
|
68
|
68
|
# the first image returned and set IMAGE_UUID_ALT to the second,
|
|
69
|
69
|
# if there is more than one returned...
|
|
|
70
|
+# ... Also ensure we only take active images, so we don't get snapshots in process
|
|
70
|
71
|
IMAGE_LINES=`glance image-list`
|
|
71
|
72
|
IFS="$(echo -e "\n\r")"
|
|
72
|
73
|
IMAGES=""
|
|
73
|
74
|
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`"
|
|
75
|
76
|
done
|
|
76
|
77
|
# Create array of image UUIDs...
|
|
77
|
78
|
IFS=" "
|
|
...
|
...
|
@@ -89,9 +90,8 @@ if [[ $NUM_IMAGES -gt 1 ]]; then
|
|
89
|
89
|
fi
|
|
90
|
90
|
|
|
91
|
91
|
# Create tempest.conf from tempest.conf.tpl
|
|
92
|
|
-if [[ ! -r $TEMPEST_CONF ]]; then
|
|
93
|
|
- cp $TEMPEST_CONF.tpl $TEMPEST_CONF
|
|
94
|
|
-fi
|
|
|
92
|
+# copy every time, because the image UUIDS are going to change
|
|
|
93
|
+cp $TEMPEST_CONF.tpl $TEMPEST_CONF
|
|
95
|
94
|
|
|
96
|
95
|
IDENTITY_USE_SSL=${IDENTITY_USE_SSL:-False}
|
|
97
|
96
|
IDENTITY_HOST=${IDENTITY_HOST:-127.0.0.1}
|