Whamcloud - gitweb
LU-11206 tests: Use import_ready to check IDLE 25/34225/2
authorPatrick Farrell <pfarrell@whamcloud.com>
Mon, 11 Feb 2019 17:47:09 +0000 (12:47 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 27 Feb 2019 02:03:03 +0000 (02:03 +0000)
When checking if a client/OST import is up, we have to
check for IDLE as well as FULL.

wait_osc_import_ready is provided for this, but a few spots
don't use it, so they occasionally fail.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I826659a7f5953dee4e4551c1177479ef742b5589
Reviewed-on: https://review.whamcloud.com/34225
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/conf-sanity.sh
lustre/tests/sanity-flr.sh
lustre/tests/sanity.sh

index 5dfccb8..92feb15 100644 (file)
@@ -6997,7 +6997,7 @@ test_93() {
 
        mount_client $MOUNT || error "mount client fails"
        wait_osc_import_state mds ost FULL
-       wait_osc_import_state client ost FULL
+       wait_osc_import_ready client ost
        check_mount || error "check_mount failed"
 
        cleanup || error "cleanup failed with $?"
index 6a9dfc6..2298ec1 100644 (file)
@@ -1078,7 +1078,7 @@ test_33() {
        [[ "$rs" == "ost1" ]] ||
                error "file content error: expected: \"ost1\", actual: \"$rs\""
 
-       wait_osc_import_state client ost2 FULL
+       wait_osc_import_ready client ost2
 }
 run_test 33 "read can choose available mirror to read"
 
index 739df27..8b858b6 100755 (executable)
@@ -8688,7 +8688,7 @@ test_104a() {
        lfs df || error "lfs df with deactivated OSC failed"
        lctl --device %$OSC activate
        # wait the osc back to normal
-       wait_osc_import_state client ost FULL
+       wait_osc_import_ready client ost
 
        lfs df || error "lfs df with reactivated OSC failed"
        rm -f $DIR/$tfile