Then start sshd and stop BootManager immediately so that only one message goes to the user
auth = auth_session
except Exception, e:
auth = auth_session
except Exception, e:
+ # NOTE: BM has failed to authenticate utterly.
+ raise BootManagerAuthenticationException, "%s" % e
self.LOG.write( "\n\nKeyError while running: %s\n" % str(e) )
except BootManagerException, e:
self.LOG.write( "\n\nException while running: %s\n" % str(e) )
self.LOG.write( "\n\nKeyError while running: %s\n" % str(e) )
except BootManagerException, e:
self.LOG.write( "\n\nException while running: %s\n" % str(e) )
+ except BootManagerAuthenticationException, e:
+ self.LOG.write( "\n\nFailed to Authenticate Node: %s\n" % str(e) )
+ # sets /tmp/CANCEL_BOOT flag
+ StartDebug.Run(self.VARS, self.LOG )
+ # Return immediately b/c any other calls to API will fail
+ return success
except:
self.LOG.write( "\n\nImplementation Error\n")
traceback.print_exc(file=self.LOG.OutputFile)
except:
self.LOG.write( "\n\nImplementation Error\n")
traceback.print_exc(file=self.LOG.OutputFile)
def __str__( self ):
return self.__fault
def __str__( self ):
return self.__fault
+class BootManagerAuthenticationException(Exception):
+ def __init__( self, err ):
+ self.__fault= err
+
+ def __str__( self ):
+ return self.__fault