+#!/usr/bin/python
+
+# Copyright (c) 2003 Intel Corporation
+# All rights reserved.
+#
+# Copyright (c) 2004-2006 The Trustees of Princeton University
+# All rights reserved.
+
+
import os
from Exceptions import *
import BootAPI
-import StartDebug
AUTH_FAILURE_COUNT_FILE= "/tmp/authfailurecount"
return 1
except BootManagerException, e:
log.write( "Authentication failed: %s.\n" % e )
+ except:
+ # This is ugly.
+ if vars['DISCONNECTED_OPERATION']:
+ vars['API_SERVER_INST']= None
+ return 1
+ else:
+ raise
# increment auth failure
auth_failure_count= 0
log.write( "Maximum number of authentication failures reached.\n" )
log.write( "Canceling boot process and going into debug mode.\n" )
- StartDebug.Run( vars, log )
-
raise BootManagerException, "Unable to authenticate node."