Whamcloud - gitweb
LU-17229 tests: rely on IR for replay-dual 33 67/53267/2
authorEtienne AUJAMES <etienne.aujames@cea.fr>
Tue, 28 Nov 2023 13:26:15 +0000 (14:26 +0100)
committerOleg Drokin <green@whamcloud.com>
Sun, 4 Feb 2024 08:28:56 +0000 (08:28 +0000)
test 33 seems to fail with a combined MDT0000 and MGT.

This patch failover MDT0001 instead of MDT0000 to keep the IR working
on the MGS.

Test-Parameters: testlist=replay-dual env=ONLY="33",ONLY_REPEAT=50
Test-Parameters: testlist=replay-dual
Test-Parameters: testlist=replay-dual
Signed-off-by: Etienne AUJAMES <eaujames@ddn.com>
Change-Id: Ibf317283b005c103c5f28b7343a808fd25f992a1
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53267
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Deiter
Reviewed-by: Sarah Liu <sarah@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/replay-dual.sh

index 2922aaf..8710b67 100755 (executable)
@@ -1283,6 +1283,7 @@ test_33() { # LU-15935
                skip "Need MDS version at least 2.15.52.86 or 2.15.2"
 
        [[ "$mds1_FSTYPE" == "ldiskfs" ]] || skip "ldiskfs only test"
+       (( MDSCOUNT > 1 )) || skip "needs >= 2 MDTs"
 
        local at_min_old
        at_min_old=$(at_min_get ost1)
@@ -1293,38 +1294,32 @@ test_33() { # LU-15935
        cancel_lru_locks mdc
 
        clients_up
-       stop mds1
-
-       # No IR -> force the update of mdc state
-       ! combined_mgs_mds || $LCTL get_param mdc.*.ping || true
+       stop mds2
 
        # check for OBD_INCOMPAT_MULTI_RPCS (0x400) in last_rcvd
-       last_rcvd_check_incompat_flag mds1 0x400 ||
+       last_rcvd_check_incompat_flag mds2 0x400 ||
                error "1st failover: OBD_INCOMPAT_MULTI_RPCS is not set on MDT0000 last_rcvd"
 
        # lose 1 client while the MDT failover
        umount -f $MOUNT2
 
-       mount_facet mds1
-       wait_clients_import_state "$HOSTNAME" mds1 "REPLAY_WAIT"
+       mount_facet mds2
+       wait_clients_import_state "$HOSTNAME" mds2 "REPLAY_WAIT"
 
-       do_facet mds1 $LCTL --device $(convert_facet2label mds1) abort_recovery
-       wait_clients_import_state "$HOSTNAME" mds1 "FULL"
-       wait_recovery_complete mds1
+       do_facet mds2 $LCTL --device $(convert_facet2label mds2) abort_recovery
+       wait_clients_import_state "$HOSTNAME" mds2 "FULL"
+       wait_recovery_complete mds2
        sleep 5
-       stop mds1
+       stop mds2
 
-       last_rcvd_check_incompat_flag mds1 0x400 ||
+       last_rcvd_check_incompat_flag mds2 0x400 ||
                error "2sd failover: OBD_INCOMPAT_MULTI_RPCS is not set on MDT0000 last_rcvd"
 
-       mount_facet mds1
-
-       # No IR -> force the update of mgc state
-       ! combined_mgs_mds || $LCTL get_param mgc.*.ping || true
+       mount_facet mds2
 
        zconf_mount $HOSTNAME $MOUNT2 || error "Fail to mount $MOUNT2"
-       wait_clients_import_state "$HOSTNAME" mds1 "FULL"
-       wait_recovery_complete mds1
+       wait_clients_import_state "$HOSTNAME" mds2 "FULL"
+       wait_recovery_complete mds2
 }
 run_test 33 "Check for OBD_INCOMPAT_MULTI_RPCS in last_rcvd after abort_recovery"