From e1da905b388421638199399ffea82255c541653c Mon Sep 17 00:00:00 2001 From: Alexandre Ioffe Date: Fri, 25 Feb 2022 14:00:41 -0800 Subject: [PATCH] EX-4866 lipe: don't unmount the local client Exclude local client from unmount list when test is completed in hot-pools test framework. Test-Parameters: trivial testlist=hot-pools Signed-off-by: Alexandre Ioffe Change-Id: I6b12269b6af3d3b5465645cbc007c9a5302f64a1 Reviewed-on: https://review.whamcloud.com/46671 Tested-by: jenkins Reviewed-by: Jian Yu Tested-by: Maloo Reviewed-by: John L. Hammond --- lustre/tests/hot-pools.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lustre/tests/hot-pools.sh b/lustre/tests/hot-pools.sh index cf9a754..8365156 100755 --- a/lustre/tests/hot-pools.sh +++ b/lustre/tests/hot-pools.sh @@ -167,11 +167,13 @@ init_lpurge_vars() { } init_hot_pools_env() { + local umount_nodes=$(exclude_items_from_list $(comma_list $(all_server_nodes)) \ + $HOSTNAME) + # mount Lustre clients on server nodes zconf_mount_clients $(comma_list $(all_server_nodes)) $MOUNT || error "failed to mount Lustre clients on server nodes" - stack_trap "zconf_umount_clients $(comma_list $(all_server_nodes)) \ - $MOUNT" + stack_trap "zconf_umount_clients $umount_nodes $MOUNT" # enable changelog on MDT(s) if ${INIT_HOT_POOLS_CHANGELOG:-true}; then -- 1.8.3.1