Whamcloud - gitweb
LU-16868 tests: skip conf-sanity/32 in interop
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 26 Oct 2023 01:14:57 +0000 (19:14 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 27 Oct 2023 21:42:15 +0000 (21:42 +0000)
Do not run conf-sanity.sh test_32* in interop testing.  Otherwise,
it is possible that the version of the test script running on the
client does not perform the upgrades with the right steps needed
for remote servers that are running a different version.

Lustre-change: https://review.whamcloud.com/52835
Lustre-commit: TBD (from 6368e97e593707d2ae1423dcb41c7f001f1d2152)

Test-Parameters: trivial testlist=conf-sanity env=ONLY=32a
Test-Parameters: testlist=conf-sanity env=ONLY=32a serverversion=EXA5
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Iabe1469a87d58c49e3c38b76ab18f8997f3ebbe5
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52836
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Deiter <alex.deiter@gmail.com>
lustre/tests/conf-sanity.sh
lustre/tests/test-framework.sh

index a7bb492..6d65eb1 100644 (file)
@@ -1493,6 +1493,8 @@ test_32newtarball() {
 t32_check() {
        [ "$CLIENTONLY" ] && skip "Client-only testing"
 
+       check_versions || skip "do not upgrade with mismatched client/server"
+
        local node=$(facet_active_host $SINGLEMDS)
        local r="do_node $node"
 
@@ -1845,15 +1847,18 @@ t32_test() {
                fi
                $r $MOUNT_CMD -o $mopts $mdt_dev $tmp/mnt/mdt
                $r $LCTL replace_nids $fsname-OST0000 $ostnid || {
+                       $r $LCTL dl
                        error_noexit "replace_nids $fsname-OST0000 $ostnid failed"
                        return 1
                }
                $r $LCTL replace_nids $fsname-MDT0000 $nid || {
+                       $r $LCTL dl
                        error_noexit "replace_nids $fsname-MDT0000 $nid failed"
                        return 1
                }
                if $mdt2_is_available; then
                        $r $LCTL replace_nids $fsname-MDT0001 $nid || {
+                               $r $LCTL dl
                                error_noexit "replace_nids $fsname-MDT0001 $nid failed"
                                return 1
                        }
index 8c00b08..9ad8331 100755 (executable)
@@ -7456,8 +7456,17 @@ client_only () {
 }
 
 check_versions () {
-    [ "$(lustre_version_code client)" = "$(lustre_version_code $SINGLEMDS)" -a \
-      "$(lustre_version_code client)" = "$(lustre_version_code ost1)" ]
+       # this should already have been called, but just in case
+       [[ -n "$CLIENT_VERSION" && -n "$MDS1_VERSION" && -n "$OST1_VERSION" ]]||
+               get_lustre_env
+
+       echo "client=$CLIENT_VERSION MDS=$MDS1_VERSION OSS=$OST1_VERSION"
+
+       [[ -n "$CLIENT_VERSION" && -n "$MDS1_VERSION" && -n "$OST1_VERSION" ]]||
+               error "unable to determine node versions"
+
+       (( "$CLIENT_VERSION" == "$MDS1_VERSION" &&
+          "$CLIENT_VERSION" == "$OST1_VERSION"))
 }
 
 get_node_count() {