exercises/euca: Fix volume timeout

Fixes bug 1087656

In euca exercise, the timeout for one of the volume operations was
specified as ASSOCIATE_TIMEOUT, whereas the timeout error message was
mentioning RUNNING_TIMEOUT. This fix changes the timeout to
RUNNING_TIMEOUT so that it is consistent with the error message.

As RUNNING is usually larger than ASSOCIATE, it leaves more time for the
volume operation.

Change-Id: Ic016c7920ae6e4ec9a476bb5612b7df9eed01c75
This commit is contained in:
Mate Lakat 2012-12-07 12:46:15 +00:00
parent e5f8d1228a
commit 1e32d0ab19

View File

@ -90,7 +90,7 @@ if [[ "$ENABLED_SERVICES" =~ "c-vol" ]]; then
die_if_not_set VOLUME "Failure to get volume"
# Test volume has become available
if ! timeout $ASSOCIATE_TIMEOUT sh -c "while ! euca-describe-volumes $VOLUME | grep -q available; do sleep 1; done"; then
if ! timeout $RUNNING_TIMEOUT sh -c "while ! euca-describe-volumes $VOLUME | grep -q available; do sleep 1; done"; then
echo "volume didnt become available within $RUNNING_TIMEOUT seconds"
exit 1
fi