| Trees | Indices | Help |
|---|
|
|
Module for interacting with PBS.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
log = getLogger("GIP.PBS")
|
|||
batch_system_info_cmd =
|
|||
queue_info_cmd =
|
|||
jobs_cmd =
|
|||
pbsnodes_cmd =
|
|||
|
|||
PBS can be a pain to work with because it automatically cuts lines off at 80 chars and continues the line on the next line. For example:
Server: red
server_state = Active
server_host = red.unl.edu
scheduling = True
total_jobs = 2996
state_count = Transit:0 Queued:2568 Held:0 Waiting:0 Running:428 Exiting
:0 Begun:0
acl_roots = t3
managers = mfurukaw@red.unl.edu,root@t3
This function puts the line ":0 Begun:0" with the above line. It's meant to filter the output, so you should "scrub" PBS output like this:
fp = runCommand(<pbs command>)
for line in pbsOutputFilter(fp):
... parse line ...
This function uses iterators |
Run a command against the PBS batch system. Use this when talking to PBS; not only does it allow for integration into the GIP test framework, but it also filters and expands PBS-style line continuations. |
Return information about the jobs currently running in PBS The return value is a dictionary of dictionaries; the keys for the top-level dictionary are queue names; the values are queuedata dictionaries The queuedata dicts have key:val pairs of voname: voinfo, where voinfo is a dictionary with the following keys:
|
Looks up the queue information from PBS. The returned dictionary contains the following keys:
|
Parse the node information from PBS. Using the output from pbsnodes, determine:
|
Returns a list of all the queue names that are supported.
|
Determine the (vo, queue) tuples for this site. This allows for central configuration of which VOs are advertised. Sites will be able to blacklist queues they don't want to advertise, whitelist certain VOs for a particular queue, and blacklist VOs from queues.
|
Take a queue information dictionary and determine which VOs are in the ACL list. The used keys are:
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Wed Jan 7 13:01:11 2009 | http://epydoc.sourceforge.net |