Browse code

Merge "Fix attach volume detect in euca test"

Jenkins authored on 2013/04/24 02:10:38
Showing 1 changed files
... ...
@@ -96,7 +96,7 @@ if [[ "$ENABLED_SERVICES" =~ "c-vol" ]]; then
96 96
    # Attach volume to an instance
97 97
    euca-attach-volume -i $INSTANCE -d $ATTACH_DEVICE $VOLUME || \
98 98
        die $LINENO "Failure attaching volume $VOLUME to $INSTANCE"
99
-   if ! timeout $ACTIVE_TIMEOUT sh -c "while ! euca-describe-volumes $VOLUME | grep -q in-use; do sleep 1; done"; then
99
+   if ! timeout $ACTIVE_TIMEOUT sh -c "while ! euca-describe-volumes $VOLUME | grep -A 1 in-use | grep -q attach; do sleep 1; done"; then
100 100
        die $LINENO "Could not attach $VOLUME to $INSTANCE"
101 101
    fi
102 102