Whamcloud - gitweb
EX-4866 lipe: don't unmount the local client
authorAlexandre Ioffe <aioffe@ddn.com>
Fri, 25 Feb 2022 22:00:41 +0000 (14:00 -0800)
committerJohn L. Hammond <jhammond@whamcloud.com>
Thu, 10 Mar 2022 17:53:14 +0000 (17:53 +0000)
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 <aioffe@ddn.com>
Change-Id: I6b12269b6af3d3b5465645cbc007c9a5302f64a1
Reviewed-on: https://review.whamcloud.com/46671
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
lustre/tests/hot-pools.sh

index cf9a754..8365156 100755 (executable)
@@ -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