Package schrodinger :: Package job :: Module host_check
[hide private]
[frames] | no frames]

Module host_check

This module provides functions to support hosts-file and remote-command configuration in the Configuration GUI.

Classes [hide private]
  _ErrorLevel
An ErrorLevel is an ordered type that represents the severity of a host-check error.
  Error
An Error represents an system-level issue that prevents remote commands executed via ssh from succeeding.
Functions [hide private]
 
ssh_check(host, user='')
Check whether remote commands to the given host succeed or not.
 
host_check(entry, hostfile='', cwd=None)
Check whether jobs can be run successfully using the given host entry.
Variables [hide private]
  SCHRODINGER = '/scr/buildbot/savedbuilds/NB/2016-4/build-126'
  OK = OK
  WARNING = WARNING
  ERROR = ERROR
  ERR_LEVEL = {'error': ERROR, 'ok': OK, 'warning': WARNING}
  __package__ = 'schrodinger.job'
Function Details [hide private]

ssh_check(host, user='')

 

Check whether remote commands to the given host succeed or not. An alternate remote account name can be specified.

Results are returned in a list of Error objects reporting any serious problems uncovered with remote commands to the specified host.

The current implementation involves executing a separate test program to diagnose remote-command issues, remote_command.pl.

host_check(entry, hostfile='', cwd=None)

 

Check whether jobs can be run successfully using the given host entry. A non-default hosts file can be specified; otherwise the usual hosts file is used.

Results are returned in a list of Error objects reporting any serious problems uncovered with jobs launched to the specified host entry.

The current implementation involves executing a separate test program, "$SCHRODINGER/installation_check", to manage the test job and diagnose the problem, if it fails.

Parameters:
  • cwd (str) - Use to set the current working directory.