Modify

Opened 8 years ago

Closed 7 years ago

#49 closed defect (fixed)

15044 Resources temporarily unavailable in pbs_python-4.4.0 for torque 4.2.8

Reported by: aroudgar@… Owned by: bas
Priority: major Milestone: Torque 4.X support
Component: pbs Version: 4.4.0
Keywords: Cc:

Description

Hi,

I have compiled pbs_python-4.4.0 using gcc compiler and install it at the default path. We are using:

# qsub --version Version: 4.2.8

and python 2.7.4. However, when I run the following simple python program:

import pbs

server_name = pbs.pbs_default() print "Server name",server_name c = pbs.pbs_connect(server_name)

attropl = pbs.new_attropl(1)

# Set the name of the job # attropl[0].name = pbs.ATTR_N attropl[0].value = 'test'

#

job_id = pbs.pbs_submit(c, attropl, "A1.tsk", 'default', 'NULL')

e, e_txt = pbs.error() if e:

print e,e_txt

print job_id

# python submission.py Server name b0 constructor called 15044 Resources temporarily unavailable None

qsub is in default searching path and it works in our cluster from above command line.

Any suggestion would be highly appreciated.

Cheers, Ata


Ata Roudgar Research Computing WestGrid? Site IT Services Simon Fraser University Burnaby, British Columbia Canada V5A 1S6

phone: 778 782-8860 fax: 778 782-4242

Attachments (0)

Change History (3)

comment:1 Changed 8 years ago by bas

Dear Ata,

First is your default route queue for your batch system named: default Usually it is called batch.

You have also created the file A1.tsk

#PBS -lnodes=1
#PBS -lwalltime=1:00:00
#PBS -qserial

sleep 60

I just tried it on our cluster with this script:

import pbs

pbs_server = pbs.pbs_default ()
pbsconn = pbs.pbs_connect (pbs_server)

print pbsconn

attrl = pbs.new_attropl(1)
attrl[0].name = pbs.ATTR_N
attrl[0].value = "test"

task_id = pbs.pbs_submit(pbsconn, attrl, "A1.tsk", 'batch', 'NULL')

print pbs.pbs_geterrmsg(pbsconn)
print pbs.pbs_geterrmsg(pbsconn)

comment:2 Changed 7 years ago by aroudgar@…


Hi,

Sorry for my late respond. It turns out that the problem was
from our torque server on the head node. I restart the
torque and it works great.


Thank you so much for your support.
Cheers,
Ata

On Thursday 2015-02-05 00:25, pbs_python wrote:

>Date: Thu, 5 Feb 2015 00:25:10
>From: pbs_python <pbs_python@surfsara.nl>
>Cc: bas@surfsara.nl
>Subject: Re: [pbs_python] #49: 15044 Resources temporarily unavailable in
>    pbs_python-4.4.0 for torque 4.2.8
>
> #49: 15044 Resources temporarily unavailable in pbs_python-4.4.0 for
torque
> 4.2.8
> -------------------------+--------------------------------
>  Reporter:  aroudgar@…  |      Owner:  bas
>      Type:  defect      |     Status:  new
>  Priority:  major       |  Milestone:  Torque 4.X support
> Component:  pbs         |    Version:  4.4.0
> Resolution:              |   Keywords:
> -------------------------+--------------------------------
>
> Comment (by bas):
>
> Dear Ata,
>
>  First is your default route queue for your batch system named: `default`
>  Usually it is called `batch`.
>
>  You have also created the file `A1.tsk`
> {{{
> #PBS -lnodes=1
> #PBS -lwalltime=1:00:00
> #PBS -qserial
>
> sleep 60
> }}}
>
> I just tried it on our cluster with this script:
> {{{
> import pbs
>
> pbs_server = pbs.pbs_default ()
> pbsconn = pbs.pbs_connect (pbs_server)
>
> print pbsconn
>
> attrl = pbs.new_attropl(1)
> attrl[0].name = pbs.ATTR_N
> attrl[0].value = "test"
>
> task_id = pbs.pbs_submit(pbsconn, attrl, "A1.tsk", 'batch', 'NULL')
>
> print pbs.pbs_geterrmsg(pbsconn)
> print pbs.pbs_geterrmsg(pbsconn)
>
> }}}
>
> --
> Ticket URL: <https://oss.trac.sara.nl/pbs_python/ticket/49#comment:1>
> pbs_python <https://oss.trac.surfsara.nl/pbs_python>
> The pbs_python package is a wrapper class for the ​Torque C library.
With this package you now can write utilities/extensions in Python instead
of C.
>

----
Ata Roudgar
Research Computing
WestGrid Site
IT Services
Simon Fraser University
Burnaby, British Columbia
Canada  V5A 1S6

phone: 778 782-8860
fax:   778 782-4242

comment:3 Changed 7 years ago by bas

  • Resolution set to fixed
  • Status changed from new to closed

Problem is fixed, close it

Add Comment

Modify Ticket

Change Properties
Action
as closed The owner will remain bas.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.