From e8ff03135fd6277eb745c36fcc406295aa4aa941 Mon Sep 17 00:00:00 2001 From: Sebastien Buisson Date: Tue, 19 Oct 2021 17:59:33 +0200 Subject: [PATCH] LU-15098 tests: sanity-sec 27a exec commands on right node In nodemap_exercise_fileset called from sanity-sec test 27a, make sure all commands are executed on first client, as we are testing properties of nodemaps 'default' and 'c0'. And make sure 'default' nodemap has admin and trusted properties set to 1, as we are carrying operations as root. Lustre-commit: b45169276ce1ab09dae7a733859f89a6c92808e5 Lustre-change: https://review.whamcloud.com/45293 Test-Parameters: trivial Test-Parameters: testlist=sanity-sec clientcount=2 env=ONLY=27a Fixes: 0daeebcbdc ("LU-14797 nodemap: map project id") Signed-off-by: Sebastien Buisson Change-Id: Idd9f391db60475721f3a3856b5e3bee1a18bbbca Reviewed-by: Jian Yu Reviewed-by: Andreas Dilger Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49891 Tested-by: jenkins Tested-by: Maloo --- lustre/tests/sanity-sec.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lustre/tests/sanity-sec.sh b/lustre/tests/sanity-sec.sh index 8da7094..24cac95 100755 --- a/lustre/tests/sanity-sec.sh +++ b/lustre/tests/sanity-sec.sh @@ -1941,6 +1941,12 @@ nodemap_exercise_fileset() { if [ "$nm" == "default" ]; then do_facet mgs $LCTL nodemap_activate 1 wait_nm_sync active + do_facet mgs $LCTL nodemap_modify --name default \ + --property admin --value 1 + do_facet mgs $LCTL nodemap_modify --name default \ + --property trusted --value 1 + wait_nm_sync default admin_nodemap + wait_nm_sync default trusted_nodemap else nodemap_test_setup fi @@ -2016,6 +2022,12 @@ nodemap_exercise_fileset() { fi fileset_test_cleanup "$nm" if [ "$nm" == "default" ]; then + do_facet mgs $LCTL nodemap_modify --name default \ + --property admin --value 0 + do_facet mgs $LCTL nodemap_modify --name default \ + --property trusted --value 0 + wait_nm_sync default admin_nodemap + wait_nm_sync default trusted_nodemap do_facet mgs $LCTL nodemap_activate 0 wait_nm_sync active 0 trap 0 -- 1.8.3.1