[torqueusers] Torque/Maui/PBS & Python

Bas van der Vlies basv at sara.nl
Fri Nov 30 06:40:36 MST 2012


On 29 nov. 2012, at 15:52, Jack Wilkinson <jwilkinson at stoneeagle.com> wrote:

> Thank you for the reply Michel,
> 
> OK... this seems to match up with the code that we installed from yum.  
> 
> If I run the components from the batch head box, everything seems to work as expected.  But what I want to accomplish, and please feel free to tell me "it just doesn't work that way", is to be able to submit, monitor and control jobs from other systems.  
> 
> Doing the following from the head box...
> from PBSQuery import PBSQuery
> p = PBSQuery()
> nodes = p.getnodes()
> len(nodes)
> 33
> 
> But doing it from our applications server gives:
> from PBSQuery import PBSQuery
> p = PBSQuery(server='srvBatchHead01')
> nodes = p.getnodes()
> munge: Error: Unable to access "/var/run/munge/munge.socket.2": No such file or directory
> 
> Am I reading this correctly to believe that the PBSQuery script can only be run on the head box?
> 

No, we use PBSQuery/pbs_python on all the nodes. Your torque installation supports munge, maybe this is your problem. Does the file exists on a  node and is it readable?

regards

-- 
Bas van der Vlies           
mail: basv at sara.nl     
SARA - Academic Computing Services , Amsterdam, The Netherlands



More information about the torqueusers mailing list