middleware:Globus/50/server

From Dgiref
Jump to: navigation, search
Please open a NGI-DE ticket if you experience any Installation or Configuration problem.

Contents

Globus Toolkit server v.5.0.1

Prepare

Operating system
  • Scientific Linux v.5.4 64 bit

Optimizing the configuration:


Use minimal operating system installation without firewall. To verify installed packages use the command

  • rpm -qa | grep package_name

Install the following additional packages:

  • yum -y install wget yum rpm make gcc gcc-c++ tar sed zlib openssl

After the installation is complete, turn off any unnecessary services (like gpm, sendmail, cups, haldaemon, messagebus, pcmcia, anacron, atd) with the following command:

  • chkconfig <SERVICE> off

Configure the following settings for the server:

Additional Software
  • torque & maui client
  • java SDK >= 1.6.0 (from Sun, IBM, HP, or BEA (do not use GCJ))
  • Grid Packaging Toolkit (GPT)
  • Perl 5.8.8 (with XML::PARSER)
  • sudo
  • ant version >= 1.6.5

To make all libraries from ant available do the following as root:

 $ cd /usr/share/ant/lib
 $ ln -s /usr/share/java/ant.jar ant.jar
 $ ln -s /usr/share/java/ant-launcher.jar ant-launcher.jar
Note-icon.png
  
Each grid user needs a certificates directory . As grid user create this directory by:
mkdir -p $home/.$user_globus
chown $user_grid /localhome/.$user_globus
Firewall configuration

The GT5 frontend runs Grid Security Infrastructure (GSI) FTP and GSI GATEKEEPER services (how to open port in firewall).

Service Incoming ports (TCP) Change to default default
gsigatekeeper 2119 No
gsiftp 2811 No

Install

Note-icon.png
  
Relocatable packages. This means that they can be installed in other folders apart from the default one. You can do this using the following command: rpm -Uvh --relocate /opt/globus-5.0.1=/usr/local/globus-5.0.1
  • Download rpms: globus-toolkit-5.0.1-0.1.x86_64.rpm, globus-5.0.1-AbA-extentions-0.1-0.1.x86_64.rpm.
  • What the globus-toolkit-5.0.1-0.1.x86_64.rpm is doing:
    1. Creates the user globus if it doesn't exist in the system and sets ownership of the globus folder to globus.
    2. Patches the pbs.pm file in the /opt/globus-5.0.1/lib/perl/Globus/GRAM/JobManager.pbs.pm
    3. The package is not using the globus openssl libraries but those of the system.
    4. Creates the folder /opt/globus-5.0.1/etc/DGridSetupFiles/ containing the following:
  • globus.sh: Globus environment setup. Can be copied to /etc/profile.d
  • adds gsigatekeeper and gsiftp in /etc/services if they do not exist
  • xinetd/gsiftp and xinetd/gsigatekeeper: Should be used with xinetd to start the gatekeeper and gridftp (just copy them to /etc/xinetd.d/ and do /etc/init.d/xinetd restart)
  • changes the /opt/globus-5.0.1/etc/globus-gatekeeper.conf and globus-job-manager.conf to reasonable, d-grid default values.
  • Sets default port for gsissh to 2222 and sets up a link called /opt/globus-5.0.1/sbin/gsisshd pointing to /opt/globus-5.0.1/sbin/sshd (that is so that the daemon reports in syslog as 'gsisshd')
  • Creates a preliminary script to set the environment variables: VO_VONAME_SW_DIR have the value $DGRID_VO_DIRECTORY/VONAME. The script needs to be modified so that the DGRID_VO_DIRECTORY gets the correct value.
Note-icon.png
  
Important note: if there is no host certificate in /etc/grid-security you should edit the /opt/globus-5.0.1/etc/globus-job-manager.conf to specify your globus-gatekeeper-subject. Finally it needs access to the grrs mysql server in Julich to receive the list of VO's.
  • What the globus-5.0.1-AbA-extentions-0.1-0.1.x86_64.rpm is doing:
    1. The glite AbA related sources have been compiled so that they use system openssl and not globus openssl
    2. Creates the files: /opt/glite/etc/lcmaps/lcmaps.db /opt/glite/etc/lcas/lcas.db with appropriate content
    3. Outputs as a note during installation a command to receive the certificate for dgrid-voms.fzk.de in /etc/grid-security/vomsdir/dgrid-voms.fzk.de.7171.pem (this is not done automatically due to internet connectivity issues)
    4. Creates the appropriate files and links under /etc/grid-security for the voms-attr-mappings
    5. Due to a bug in gsisshd or in the lcas gt4 interface, the /etc/gsisshd script has to be changed. The script changes it only if it finds it in /etc/init.d/gsisshd otherwise it prints a message
    6. Creates the /opt/glite/etc/vomses file with the necessary voms contact strings for each VO
    7. Changes the /etc/xinetd.d/gsiftp and gsigatekeeper files if it finds them to include the new glite libraries

Configure

  • To configure the globus 5.0.1 do:
    • Have the hostcerts in /etc/grid-security, torque should also be installed.
    • copy /opt/globus-5.0.1/etc/DGridSetupFiles/xinetd/gsiftp and xinetd/gsigatekeeper to /etc/xinetd.d/
    • copy /opt/globus-5.0.1/sbin/SXXsshd to /etc/init.d/gsisshd
    • set up the grid-mapfile and the /etc/grid-security/certificates folder
    • check the /opt/glite-5.0.1/lib/perl/Globus/GRAM/JobManager/pbs.pm script if it contains correct values for the pbs commands.
  • To configure the ABA extensions do:
    • run the openssl command that is produced as a note in the package: "openssl s_client -connect dgrid-voms.fzk.de:15001 -ssl3 2> /dev/null | sed -n '/CERTIFICATE/,/CERTIFICATE/p' > /etc/grid-security/vomsdir/dgrid-voms.fzk.de.7171.pem"
    • edit the file /etc/grid-security/voms-attr-mappings along with the relevant users which reflect the roles per VO

Proceed

Note-icon.png
  
(To startup the globus-services on boot you need to use the chkconfig command as usual)
  • /etc/init.d/gsisshd start
  • /etc/init.d/xinetd start

Initial test

  • Using a JDL file (job description language)
    • The following job is described in XML format using the job description language (JDL). It is stated as a parameter during the job submission (see below).
    • First, create as grid user the file torqueJob.xml and fill it with the following content (see script section #Using a JDL file)
  • Using the voms-proxy-init (e.g. voms-proxy-init -voms dgtest:/dgtest/admin:softwareadmin)
Personal tools