tests: fix for bug-1260185-donot-allow-detach-commit-unnecessarily.t failure
problem: detach commit was issues before detach start was completed. fix: wait for detach start to finish and then detach commit. Change-Id: I639962be6de6dbd1512f0a5617050d1e6872eac8 BUG: 1517961 Signed-off-by: hari gowtham <hgowtham@redhat.com>
This commit is contained in:
parent
5b4b25c697
commit
eb013e4c18
@ -7,6 +7,7 @@
|
||||
. $(dirname $0)/../../include.rc
|
||||
. $(dirname $0)/../../volume.rc
|
||||
. $(dirname $0)/../../cluster.rc
|
||||
. $(dirname $0)/../../tier.rc
|
||||
|
||||
cleanup;
|
||||
|
||||
@ -38,12 +39,9 @@ TEST $CLI volume tier $V0 attach $H0:$B0/${V0}{5..6}
|
||||
TEST $CLI volume tier $V0 detach start
|
||||
|
||||
## Now detach-tier commit on volume $V0 should succeed.
|
||||
TEST $CLI volume tier $V0 detach commit
|
||||
## wait for the detach to complete
|
||||
EXPECT_WITHIN $PROCESS_UP_TIMEOUT "1" tier_detach_commit_for_single_node
|
||||
|
||||
cleanup;
|
||||
|
||||
# Mainly marking it as known-issue as it is consistently failing.
|
||||
# Revert back once fixing this.
|
||||
|
||||
#G_TESTDEF_TEST_STATUS_NETBSD7=KNOWN_ISSUE,BUG=1517961
|
||||
#G_TESTDEF_TEST_STATUS_CENTOS6=KNOWN_ISSUE,BUG=1517961
|
@ -153,3 +153,7 @@ function tier_detach_status () {
|
||||
function wait_for_tier_start () {
|
||||
sleep 5
|
||||
}
|
||||
|
||||
function tier_detach_commit_for_single_node () {
|
||||
$CLI volume tier $V0 detach commit | grep "success" | wc -l
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user