Whamcloud - gitweb
LU-7854 tests: start gss daemons in sanity-gss 83/27383/15
authorSebastien Buisson <sbuisson@ddn.com>
Thu, 1 Jun 2017 18:37:32 +0000 (14:37 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 15 Mar 2018 13:54:53 +0000 (13:54 +0000)
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 <sbuisson@ddn.com>
Change-Id: Ib118b3735c74bb74a54b323ee8eec91d05491edf
Reviewed-on: https://review.whamcloud.com/27383
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/tests/sanity-gss.sh

index ee07c8f..e10687a 100755 (executable)
@@ -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