Whamcloud - gitweb
LU-18748 tests: fix sanity/56c with flash devices 43/58543/2
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 26 Mar 2025 14:58:04 +0000 (08:58 -0600)
committerOleg Drokin <green@whamcloud.com>
Mon, 31 Mar 2025 05:58:26 +0000 (05:58 +0000)
Fix sanity test_56c to fetch the initial "lfs df" state with "-v"
in case some devices are flash ('f') at the start of the test.

Test-Parameters: trivial
Fixes: 0523ed8625 ("LU-18748 class: print statfs_state for OBD devices")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I3a710c876a0918b20f9bbd7e13cf4b2b1e500c1e
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58543
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanity.sh

index 6b32d17..1b93b13 100755 (executable)
@@ -6884,7 +6884,7 @@ test_56c() {
 
        local ost_idx=0
        local ost_name=$(ostname_from_index $ost_idx)
-       local old_status=$(ost_dev_status $ost_idx)
+       local old_status=$(ost_dev_status $ost_idx $MOUNT -v)
        local inst=$(lfs getname -i $DIR)
        local state="osc.$ost_name-osc-$inst.statfs_state"
        local old_state=$($LCTL get_param -n $state)