Whamcloud - gitweb
Revert my use of the configure_flags macro in the lustre.spec file and just
[fs/lustre-release.git] / lustre / tests / llrmount.sh
index 9a5cbfa..a9de5e4 100755 (executable)
@@ -5,10 +5,17 @@ export PATH=`dirname $0`/../utils:$PATH
 LCONF=${LCONF:-lconf}
 NAME=${NAME:-local}
 LLMOUNT=${LLMOUNT:-llmount}
+SECURITY=${SECURITY:-"null"}
 
 config=$NAME.xml
 mkconfig=$NAME.sh
 
+. krb5_env.sh
+
+start_krb5_kdc || exit 1
+start_lsvcgssd || exit 2
+start_lgssd || exit 3
+
 if [ "$PORTALS" ]; then
   portals_opt="--portals=$PORTALS"
 fi
@@ -21,16 +28,17 @@ if [ "$LDAPURL" ]; then
     conf_opt="--ldapurl $LDAPURL --config $NAME"
 else
     if [ ! -f $config -o $mkconfig -nt $config ]; then
-       sh $mkconfig $config || exit 1
+       sh $mkconfig $config || exit 4
     fi
     conf_opt="$config"
 fi    
 
 [ "$NODE" ] && node_opt="--node $NODE"
 
-${LCONF} $NOMOD $portals_opt $lustre_opt $node_opt $@ $conf_opt || exit 2
+${LCONF} $NOMOD --mds_sec $SECURITY $portals_opt $lustre_opt $node_opt \
+         $@ $conf_opt  || exit 5
 
 if [ "$MOUNT2" ]; then
-       $LLMOUNT -v `hostname`:/mds1/client $MOUNT2 || exit 3
+       $LLMOUNT -v -o mds_sec=$SECURITY `hostname`:/mds1/client $MOUNT2 || exit 6
 fi