From a8a11cf1f6616dbd93b41a884c582f346731b997 Mon Sep 17 00:00:00 2001 From: Kui Shi Date: Sun, 16 Jun 2013 10:11:46 +0800 Subject: [PATCH] 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 --- exercises/euca.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/euca.sh b/exercises/euca.sh index 16b5f8e402..7c590d09d4 100755 --- a/exercises/euca.sh +++ b/exercises/euca.sh @@ -85,7 +85,7 @@ if [[ "$ENABLED_SERVICES" =~ "c-vol" ]]; then 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