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>
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"
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
}
}
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() {