X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fsanity-sec.sh;h=199915174d93c9c7192936d15a085a3ae45e14a6;hp=5c81f80be1e822746b8521342fd1e72fbdfd7589;hb=e628b7cd06ce0092b3003d27a2f45e6a0b7574d9;hpb=c54dc02d51e76146f3f273196f47204a2fb48345 diff --git a/lustre/tests/sanity-sec.sh b/lustre/tests/sanity-sec.sh index 5c81f80..1999151 100755 --- a/lustre/tests/sanity-sec.sh +++ b/lustre/tests/sanity-sec.sh @@ -2184,7 +2184,7 @@ test_30() { # unload keys from ring do_node ${clients_arr[0]} "keyctl show | awk '/lustre/ { print \\\$1 }' | xargs -IX keyctl unlink X" - # invalidate the key with bogus filesystem name + # generate key with bogus filesystem name do_node ${clients_arr[0]} "lgss_sk -w $SK_PATH/$FSNAME-bogus.key \ -f $FSNAME.bogus -t client -d /dev/urandom" || error "lgss_sk failed (1)" @@ -2200,9 +2200,13 @@ test_30() { error "mount with invalid key" fi fi - SK_PATH=$OLD_SK_PATH zconf_umount_clients ${clients_arr[0]} $MOUNT || error "unable to umount clients" + # unload keys from ring + do_node ${clients_arr[0]} "keyctl show | + awk '/lustre/ { print \\\$1 }' | xargs -IX keyctl unlink X" + rm -f $SK_PATH + SK_PATH=$OLD_SK_PATH zconf_mount_clients ${clients_arr[0]} $MOUNT || error "unable to mount clients" }