From d4a8b550e350094a7b78dc4d7e3111b22743f737 Mon Sep 17 00:00:00 2001 From: Sebastien Buisson Date: Mon, 24 Feb 2025 13:05:54 +0100 Subject: [PATCH] LU-18744 tests: fix sanity-sec test_27ab When nodemap is activated in sanity-sec test_27ab, we need to make sure the default nodemap grants root access, so that clients and servers can be stopped and restarted. Also fix an incorrect call to 'lctl nodemap_add_idmap'. Test-Parameters: trivial Fixes: e3051ad0f1 ("LU-18109 utils: adding nodemap offset capability") Signed-off-by: Sebastien Buisson Change-Id: I0adafae67c7637c616c687590bd01ff12f4d6bf2 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58187 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/tests/sanity-sec.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lustre/tests/sanity-sec.sh b/lustre/tests/sanity-sec.sh index c8f404d..bf2a516 100755 --- a/lustre/tests/sanity-sec.sh +++ b/lustre/tests/sanity-sec.sh @@ -2467,6 +2467,10 @@ test_27ab() { #LU-18109 activedefault=$(do_facet mgs $LCTL get_param -n nodemap.active) if ((activedefault != 1)); then + do_facet mgs $LCTL nodemap_modify --name default \ + --property trusted --value 1 + do_facet mgs $LCTL nodemap_modify --name default \ + --property admin --value 1 do_facet mgs $LCTL nodemap_activate 1 wait_nm_sync active stack_trap cleanup_active EXIT @@ -2542,7 +2546,7 @@ test_27ab() { #LU-18109 error "cannot delete idmap range 500-509:0" #expected error, invalid secondary range supplied - do_facet mgs $LCTL nodemap_add --name $nm1 \ + do_facet mgs $LCTL nodemap_add_idmap --name $nm1 \ --idtype uid --idmap 500-509:200000-200010 && error "Invalid range 200000-200010 was supplied" -- 1.8.3.1