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