File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 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
7071IMAGE_LINES=` glance image-list`
7172IFS=" $( echo -e " \n\r" ) "
7273IMAGES=" "
7374for 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` "
7576done
7677# Create array of image UUIDs...
7778IFS=" "
@@ -89,9 +90,8 @@ if [[ $NUM_IMAGES -gt 1 ]]; then
8990fi
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
9696IDENTITY_USE_SSL=${IDENTITY_USE_SSL:- False}
9797IDENTITY_HOST=${IDENTITY_HOST:- 127.0.0.1}
You can’t perform that action at this time.
0 commit comments