exercise euca.sh check the volume just created
In devstack, the exercises/euca.sh test the "VOLUME". it should always
check the volume which was just created. Because there may be volumes
left by the last failed euca.sh, then the variable VOLUME
VOLUME=`euca-describe-volumes | cut -f2`
will be assigned a list of volumes, which is not expected.
Fixes bug #1191424
Change-Id: Ie004c9cfeaef4a8a313866d21d45c7b41f1b2ba0
diff --git a/exercises/euca.sh b/exercises/euca.sh
index 16b5f8e..7c590d0 100755
--- a/exercises/euca.sh
+++ b/exercises/euca.sh
@@ -85,7 +85,7 @@
die_if_not_set $LINENO VOLUME "Failure to create volume"
# Test that volume has been created
- VOLUME=`euca-describe-volumes | cut -f2`
+ VOLUME=`euca-describe-volumes $VOLUME | cut -f2`
die_if_not_set $LINENO VOLUME "Failure to get volume"
# Test volume has become available