From 69b2712e2ffe485ee21408b849040d42b5a9aa2a Mon Sep 17 00:00:00 2001 From: Sebastien Buisson Date: Thu, 1 Jun 2017 14:37:32 -0400 Subject: [PATCH] LU-7854 tests: start gss daemons in sanity-gss In sanity-gss, launch lsvcgssd with '-z' flag prior to commencing actual tests. And stop daemons at the end of the script. The purpose of this patch is just to fix the test script, so passing test_1 only is fine. Test-Parameters: trivial envdefinitions=ONLY=1 testlist=sanity-gss Signed-off-by: Sebastien Buisson Change-Id: Ib118b3735c74bb74a54b323ee8eec91d05491edf Reviewed-on: https://review.whamcloud.com/27383 Reviewed-by: James Nunez Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- lustre/tests/sanity-gss.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lustre/tests/sanity-gss.sh b/lustre/tests/sanity-gss.sh index ee07c8f..e10687a 100755 --- a/lustre/tests/sanity-gss.sh +++ b/lustre/tests/sanity-gss.sh @@ -102,6 +102,22 @@ stop_dbench() calc_connection_cnt umask 077 +echo "bring up gss daemons..." +# start gss daemon with -z flag for gssnull +start_gss_daemons $(comma_list $(mdts_nodes)) "$LSVCGSSD -z -vv" || + error "can't start gss daemons on MDTs" +start_gss_daemons $(comma_list $(osts_nodes)) "$LSVCGSSD -z -vv" || + error "can't start gss daemons on OSTs" + +lctl set_param sptlrpc.gss.lgss_keyring.debug_level=4 + +echo "cat /etc/request-key.d/lgssc.conf" +cat /etc/request-key.d/lgssc.conf || + error_noexit "/etc/request-key.d/lgssc.conf does not exist" +echo "cat /etc/request-key.conf" +cat /etc/request-key.conf || + error_noexit "/etc/request-key.conf does not exist" + set_flavor_all gssnull test_1() { @@ -571,6 +587,8 @@ test_151() { } run_test 151 "secure mgs connection: server flavor control" +stop_gss_daemons + complete $SECONDS check_and_cleanup_lustre exit_status -- 1.8.3.1