Setting Up PTL the First Time


If you haven't already, get PBS Pro Source from GitHub



Install PTL

Building and Installing PTL from Source

1. Build PTL from Source

  • Go to openpbs/openpbs
  • Run autogen:
      ./autogen.sh
  • To install PTL along with PBS Professional, use the "--enable-ptl" option with configure:
      ./configure --prefix=/opt/pbs --enable-ptl

2. Install Package Dependencies

To install PTL package dependencies, run the appropriate installation command as root.  We list them by platform, for Python >=3.6:

CentOS

      yum install python-beautifulsoup python2-defusedxml python-nose pexpect

     Also install EPEL (Extra Packages for Enterprise Linux).  The package name is "epel-release".

OpenSUSE

      zypper install python-beautifulsoup python-defusedxml python-nose python-pexpect

Debian/Ubuntu

      apt-get install python-beautifulsoup python-defusedxml python-nose python-pexpect

Inst

**Some of the above mentioned dependencies will require Extra packages for enterprise linux (EPEL) repository installed.

3. Make and Install PBS and PTL

  • Run "make"
  • Run "sudo make install"

PTL gets installed in the parent directory of where PBS Professional is installed.

For example if you have given install prefix=/opt/pbs, you can find your PTL installation in the /opt/ptl directory.

4. Update Your Paths

Use the following default path settings:

      export PATH=$PATH:/opt/ptl/bin
export PYTHONPATH=$PYTHONPATH:/opt/ptl/lib/python3.6/site-packages/

Creating and Installing RPM Package for PTL

1. Create RPM Package for PTL

  • Go to openpbs/openpbs
  • Run autogen:
      ./autogen.sh
  • To install PTL along with PBS Professional, use the "--enable-ptl" option with configure:
      ./configure --prefix=/opt/pbs --enable-ptl
  • Run "make dist" command:
      make dist
  • Move the generated "openpbs-<version>.tar.gz" file to ~/rpmbuild/SOURCES
  • Copy the openpbs.spec file to ~/rpmbuild/SPECS
  • Run the “rpmbuild” command with the “–with ptl” argument:
      rpmbuild -ba  openpbs.spec  --with ptl


The RPM will then be available in the “rpmbuild/RPMS” folder, along with the other openpbs rpms.

The rpm name for the PTL RPM will be openpbs-ptl-<version>.rpm

2. Install RPM Package

Use "yum install" for all the dependencies to install along with the package.

3. Update Your Paths

You may need to log in again to update your PATHs.


Configure PTL

Run the following as root:

pbs_config --make-ug

This creates the default users and groups, used for testing


Start PBS (to begin running test cases)

   /etc/init.d/pbs start

or

   systemctl start pbs