GT 4.0 pyGlobus: System Administrator's Guide

1. Introduction

pyGlobus provides a Python API to the pre-OGSI GT API (GT2). This guide contains installation and configuration information for system administrators installing pyGlobus. It explains how to install, configure and test the installation.

[Important]Important

This information is in addition to the basic Globus Toolkit prerequisite, overview, installation, security configuration instructions in the GT 4.0 System Administrator's Guide. Read through this guide before continuing!

2. Building and installing

pyGlobus requires python version 2.2 or newer and the GT2 libraries built with a threaded flavor. The full source installation of GT 4.0 will build the prerequisite libraries with the correct flavor.

3. Configuring

pyGlobus requires that the environment variables GLOBUS_LOCATION and GPT_LOCATION are set. These are set to the base of your globus installation and gpt installation. In GT 4.0 GPT (Grid Packaging Toolkit) is installed in the same place as globus, so you can set both of these environment variables to the same location.

4. Deploying

To install pyGlobus, set the GLOBUS_LOCATION and GPT_LOCATION environment variables. Use the python distutils setup script:

 %python setup.py install 

5. Testing

pyGlobus comes with unittests that are arranged by module. To run the unittests you first must be able to create a valid user proxy using grid-proxy-init. You must edit config.txt in the pyGlobus/test directory.

To run all of the tests:

%python test_pyGlobus.py 

If you only wish to run tests from a single module, for example the security module:

%python test_security.py

6. Security considerations

pyGlobus has a security module which allows for proxy creation, signing, encryption, and the creation and inquiry of security contexts. Care must be taken when developing applications which use GSI to ensure that authentication information will not be compromised. When creating a security context, one must ensure that the context will have the properties that they desire. For example, should the context use confidentiality of integrity? These concerns are not specific to pyGlobus but rather to any application developer who is using low level security APIs.

7. Troubleshooting

See our FAQ and web page for any problems concerning pyGlobus.

You can also contact us on our mailing list [email protected].