Custom Query (43 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (40 - 42 of 43)

4 5 6 7 8 9 10 11 12 13 14 15
Ticket Resolution Summary Owner Reporter
#4 fixed Testje somebody Bas van der Vlies <basv@…>
Description

email2trac:

This is a test
-- 
--
********************************************************************
*                                                                  *
*  Bas van der Vlies                     e-mail: basv@sara.nl      *
*  SARA - Academic Computing Services    phone:  +31 20 592 8012   *
*  Kruislaan 415                         fax:    +31 20 6683167    *
*  1098 SJ Amsterdam                                               *
*                                                                  *
********************************************************************
#3 fixed .has_key does not work properly for getqueue items bas anonymous
Description
In [1]:import PBSQuery

In [2]:pq = PBSQuery.PBSQuery()

In [3]:q = pq.getqueue( 'q_express' )                          

In [4]:q
Out[4]:
{'q_express': q_express
        resources_default.nodect = 1
        resources_default.nodes = 1
        state_count = Transit:0 Queued:0 Held:0 Waiting:0 Running:0 Exiting:0 
        acl_host_enable = False
        resources_max.walltime = 00:05:00
        resources_assigned.nodect = 0
        acl_group_enable = False
        acl_user_enable = False
        enabled = True
        resources_max.nodect = 1
        started = True
        queue_type = Execution
        resources_default.ncpus = 1
        mtime = 1158756881
        resources_assigned.ncpus = 0
        total_jobs = 0
}

In [5]:dir( q['q_express'] )
Out[5]:
['FALSE',
 'TRUE',
 '__doc__',
 '__getitem__',
 '__init__',
 '__len__',
 '__module__',
 '__repr__',
 '__str__',
 'attribs',
 'get_value',
 'has_key',
 'is_enabled',
 'is_execution',
 'items',
 'keys',
 'name',
 'values']

In [6]:q['q_express'].has_key[ 'resources_default.walltime' ] 
---------------------------------------------------------------------------
exceptions.TypeError                                 Traceback (most recent call last)

/lisa_vg2_lv1/HOME/ramon/<console> 

TypeError: unsubscriptable object

In [7]:q['q_express']
Out[7]:
q_express
        resources_default.nodect = 1
        resources_default.nodes = 1
        state_count = Transit:0 Queued:0 Held:0 Waiting:0 Running:0 Exiting:0 
        acl_host_enable = False
        resources_max.walltime = 00:05:00
        resources_assigned.nodect = 0
        acl_group_enable = False
        acl_user_enable = False
        enabled = True
        resources_max.nodect = 1
        started = True
        queue_type = Execution
        resources_default.ncpus = 1
        mtime = 1158756881
        resources_assigned.ncpus = 0
        total_jobs = 0


In [8]:type( q['q_express'] )
Out[8]:<type 'instance'>

In [9]:type( q )             
Out[9]:<type 'dict'>

In [10]:

It appears the values in a getqueue attrs object are not seen as working dict's, thus has_key is not working.

Tested against:

ramon@testm:~$ apt-show-versions | grep pbs
pbs-python/sarge uptodate 2.9.2-2
ramon@testm:~$
#2 fixed pbs_stat.py and others use undefined pbs_geterrmsg bas pk@…
Description

Hello,

with libtorque 2.1.1, pbs-python 2.9.2, ganglia-pbs 0.9.13 under debian/sarge. If I run pbs_stat.py:

processors = 0
/usr/bin/gmetric -npbs-state -v"P=0" -tstring -x15
Traceback (most recent call last):
  File "bin/pbs_stat.py.orig", line 495, in ?
    a.check_args(sys.argv)
  File "bin/pbs_stat.py.orig", line 483, in check_args
    self.once()
  File "bin/pbs_stat.py.orig", line 416, in once
    self.get()
  File "bin/pbs_stat.py.orig", line 266, in get
    self.error(pbs.pbs_geterrmsg(self.c))
AttributeError: 'module' object has no attribute 'pbs_geterrmsg'

this error is also found if you run "rack_pbsmon.py --help".

Best,

Peter

4 5 6 7 8 9 10 11 12 13 14 15
Note: See TracQuery for help on using queries.