exercise euca.sh should check the volume just created

Bug #1191424 reported by Kui Shi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Kui Shi

Bug Description

In devstack, the exercises/euca.sh test the "VOLUME". it should alway check the volume that is just created. Because there may be volumes left by the last failed euca.sh.

diff --git a/exercises/euca.sh b/exercises/euca.sh
index 16b5f8e..7c590d0 100755
--- a/exercises/euca.sh
+++ b/exercises/euca.sh
@@ -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

Kui Shi (skuicloud)
Changed in openstack-ci:
assignee: nobody → Kui Shi (skuicloud)
Revision history for this message
Kui Shi (skuicloud) wrote :

Change the "Project" to "devstack".

affects: openstack-ci → devstack
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.openstack.org/33180
Committed: http://github.com/openstack-dev/devstack/commit/a8a11cf1f6616dbd93b41a884c582f346731b997
Submitter: Jenkins
Branch: master

commit a8a11cf1f6616dbd93b41a884c582f346731b997
Author: Kui Shi <email address hidden>
Date: Sun Jun 16 10:11:46 2013 +0800

    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

Changed in devstack:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.