[torqueusers] ANNOUNCE: New version of openpbs/torque Python interface (2.9.8)

Bas van der Vlies basv at sara.nl
Fri Oct 10 05:41:34 MDT 2008


=========== 2.9.8
    - pbs_python.spec file patch added libdir and python defines so it
      will build for RHEL5.1/CentOS 5.1
      by        : Michael Sternberg <sternberg add anl dot gov>
      applied by: Bas van der Vlies

    - Updated the header files for pbs_python. So it can use some new
      defines variables/defines, eg:
        * ATTR_NODE_status
        * ATTR_NODE_note
        * ...
      Added by: Dennis Stam <dennis.stam at sara.nl>, Bas van der Vlies

    - Two new functions to log.h:
        log_roll(int size);
        log_size(void);
      Added by: Bas van der Vlies

    - We now have proper destructors (free memory) in SWIG for attrl and
      attropl attributes.
      Added by: Bas van der Vlies

    - PBSQuery
        * Added getnodes_with_property() function. This will get all
          nodes with a certain property, eg:
           - get all nodes with property 'cores8' and return
             all attributes:
              getnodes_with_property('cores8')

           - get all nodes with property 'cores2' and only return the
             attributes 'state' and 'properties':
              attrl = [ 'state', 'properties' ]
              getnodes_with_property('cores2', attrl)

             Only for torque version > 2.1.0

        Added by: Bas van der Vlies

        * Added to class node the function
         - get_jobs(self, unique=None)
           Returns a list of the currently running job-id('s) on the node.
        Added by: Sil Westerveld <Sil.Westerveld at sara.nl>

        * Added get_server_name() function.
          This will return the PBS-server's name.
        Added by: Sil Westerveld <Sil.Westerveld at sara.nl>

        * Added to class _PBSobject the function
          - uniq(self, list)
            Filters out unique items of a list.
        Added by: Sil Westerveld <Sil.Westerveld at sara.nl>

        * Added to class job the function
          - get_nodes(self, unique=None)
            Returns a list of the nodes which run the job.
        Added by: Sil Westerveld <Sil.Westerveld at sara.nl>


===============================================================
the latest stable pbs_python interface is available from:
         ftp://ftp.sara.nl/pub/outgoing/pbs_python.tar.gz

Information, documentation and reporting bugs for the package:
         https://subtrac.sara.nl/oss/pbs_python

===== Brief description =========================================

Pbs_python interface is a wrapper class for the OPENPBS/TORQUE C LIB
API. Now you can write utilities/extensions in Python instead of C.

The Python wrapper class is tested on:

   - Intel cluster debian GNU/LINUX woody/sarge OPENPBS 2.3.16,
     TORQUE 1.0.1p4, 1.1.0p4 and up

   - For X86_64 systems you have to compile torque/openpbs with
     the -fPIC option. Else you can not build the python module

   - TRU64 system, NOTE: must rename libnet.a to libpbs_net.a and edit
     setup.py to reflect the change. There is also a system wide
     libnet.so.

   - It should run on different OSes.

In the past our Alpha cluster was redhat (6.2)  and we had to add
'-lots' to the LIBS line

--- Compile and install the package: (Require python 2.1 and higher)

   As for python version 1.6 and higher the procedure is:
     ./configure
     make
     make install

   Debian package:
     debian/rules binary

--- Testing the package:

The test programs are include as a reference how to use the pbs
python module. You have to edit some test programs to reflect
your PBS/Torque installation.

pbsmon.py        - ascii xpbsmon
rack_pbsmon.py   - ascii xpbsmon by rack layout
pbsnodes-a.py    - pbsnodes -a
pbs_version.py   - print server version
set_property.py  - set some node properties
resmom_info.py   - queries the pbs_mom daemon on the nodes
logpbs.py        - Shows the usage of the PBS logging routines
new_interface.py - Example how to use PBSQuery module
PBSQuery.py      - python <install_path>/PBSQuery.py (has builtin demo)

For more info about SARA see:
         http://www.sara.nl/index_eng.html


--
********************************************************************
*                                                                  *
*  Bas van der Vlies                     e-mail: basv at sara.nl      *
*  SARA - Academic Computing Services    phone:  +31 20 592 8012   *
*  Kruislaan 415                         fax:    +31 20 6683167    *
*  1098 SJ Amsterdam                                               *
*                                                                  *
********************************************************************
_______________________________________________
torqueusers mailing list
torqueusers at supercluster.org
http://www.supercluster.org/mailman/listinfo/torqueusers

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


More information about the torqueusers mailing list