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
| ... | ... |
@@ -85,7 +85,7 @@ if [[ "$ENABLED_SERVICES" =~ "c-vol" ]]; then |
| 85 | 85 |
die_if_not_set $LINENO VOLUME "Failure to create volume" |
| 86 | 86 |
|
| 87 | 87 |
# Test that volume has been created |
| 88 |
- VOLUME=`euca-describe-volumes | cut -f2` |
|
| 88 |
+ VOLUME=`euca-describe-volumes $VOLUME | cut -f2` |
|
| 89 | 89 |
die_if_not_set $LINENO VOLUME "Failure to get volume" |
| 90 | 90 |
|
| 91 | 91 |
# Test volume has become available |