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
This commit is contained in:
parent
25b8df59f4
commit
a8a11cf1f6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user