Whamcloud - gitweb
LU-16708 tests: fix zconf_mount_clients for SSK 23/50523/2
authorSebastien Buisson <sbuisson@ddn.com>
Tue, 4 Apr 2023 14:53:22 +0000 (16:53 +0200)
committerOleg Drokin <green@whamcloud.com>
Tue, 18 Apr 2023 03:24:27 +0000 (03:24 +0000)
When SHARED_KEY is in use, zconf_mount_clients can add 'skpath' mount
option to load nodemap-specific keys. But this must not overwrite
already specified mount options.

Fixes: 05e5cb0b0c ("LU-16683 tests: fix sanity-sec test_61 for SSK")
Test-Parameters: trivial
Test-Parameters: testlist=sanity-sec env=ONLY=61
Test-Parameters: testlist=sanity-sec env=SHARED_KEY=true,ONLY=61
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I3dbc6ffe72722659ead77fb1c2c2675873c7aff2
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50523
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/test-framework.sh

index 65ab2cd..92a124e 100755 (executable)
@@ -2604,7 +2604,7 @@ zconf_mount_clients() {
                                fi
                                do_node $nmclient "! grep -q $mnt' ' \
                                        /proc/mounts || umount $mnt"
-                               local prunedopts=$(add_sk_mntflag $prunedopts);
+                               local prunedopts=$(add_sk_mntflag $opts);
                                prunedopts=$(echo $prunedopts | sed -e \
                                        "s#skpath=[^ ^,]*#skpath=$mountkey#g")
                                set -x