[Bugs] [Bug 1226813] Rebalance related test fails spuriously

bugzilla at redhat.com bugzilla at redhat.com
Mon Jun 1 09:28:48 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1226813

SATHEESARAN <sasundar at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sasundar at redhat.com
            Summary|bug-973073.t fails          |Rebalance related test
                   |spuriously                  |fails spuriously
         QA Contact|storage-qa-internal at redhat. |sasundar at redhat.com
                   |com                         |



--- Comment #3 from SATHEESARAN <sasundar at redhat.com> ---
Tests as seen in bug-973073.t 

. $(dirname $0)/../../include.rc
. $(dirname $0)/../../dht.rc

## Steps followed are one described in bugzilla

cleanup;

function get_layout()
{
        layout1=`getfattr -n trusted.glusterfs.dht -e hex $1 2>&1`

        if [ $? -ne 0 ]
        then
                echo 1
        else
                echo 0
        fi

}

BRICK_COUNT=3

TEST glusterd
TEST pidof glusterd

TEST $CLI volume create $V0 $H0:$B0/${V0}0 $H0:$B0/${V0}1 $H0:$B0/${V0}2
TEST $CLI volume start $V0

## Mount FUSE
TEST glusterfs -s $H0 --volfile-id $V0 $M0;

TEST $CLI volume remove-brick $V0 $H0:$B0/${V0}2 start

## remove-brick status == rebalance_status
EXPECT_WITHIN $REBALANCE_TIMEOUT "0" remove_brick_completed

TEST $CLI volume remove-brick $V0 $H0:$B0/${V0}2 stop

TEST $CLI volume rebalance $V0 fix-layout start

EXPECT_WITHIN $REBALANCE_TIMEOUT "0" rebalance_completed

TEST mkdir $M0/dir 2>/dev/null;

EXPECT "0" get_layout $B0/${V0}2/dir
cleanup;

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=x079ztPX0k&a=cc_unsubscribe


More information about the Bugs mailing list