middleware:Glite/32/server

From Dgiref
Jump to: navigation, search

See also troubleshooting for this page.


Please open a NGI-DE ticket if you experience any Installation or Configuration problem.

Contents

gLite CREAM CE

Prepare

Software
  • Scientific Linux version 5.4 64 bit
  • Java JDK >= 1.6.0
  • perl
  • Torque Client

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:

The supported installation method for SL5 is the yum tool, and you have to configure yum repositories yourself and install the meta packages using your preferred way.

Note-icon.png
  
Please note that YAIM IS NOT SUPPORTING INSTALLATION


Install

The D-Grid reference installation uses the CREAM CE variant for the gLite computing resources. Hence the following three main gLite components must be installed on the CE (Computing Element):

  1. Computing Element: glite-CREAM package
  2. Information system: glite-BDII package
  3. Batch system components:
    • glite-TORQUE_utils package
    • glite-TORQUE_client
Note-icon.png
  
All nodes except UI, WN and BDII require the host certificate/key files to be installed. The /etc/grid-security should contain: hostcert.pem - containing the machine public key; hostkey.pem - containing the machine private key

Configure

Note-icon.png
  
To install the gLite Monitoring services (BDII and RGMA), please refer to gLite services page.

Generally speaking the gLite configuration done by the YAIM packages (for the YAIM description check YAIM guide). There are three important site-specific configuration files:

Note-icon.png
  
you can use the script to generate the users.conf file from list of VOs

The files structure description can be found: into the /opt/glite/yaim/examples/ (for example users.conf.README). The file users.conf must be created or adapted for all VOs users. During the configuration, the YAIM configuration tool creates these users if they are not exist yet. If the user accounts already exist YAIM do not change the UIDs/GIDs. The entries are controlled in the directory /etc/grid-security/gridmapdir.

Certificates

The certificate installation procedure can be done by the two ways:

  • Use the apt savannah.fzk.de repository. Examples:
  • install the fzk-vomscert package from the apt repository:
 
        rpm savannah.fzk.de repository/fzk security
        cat << EOF > /etc/apt/sources.list.d/fzk.list 
              ###
              ### FZK apt repository containing some packages needed for DGrid
              ###   Currently these are the VOMS server certificate, and the GridKa-CA
              ###   configuration rpms. Do not remove this repository.
              ###
              rpm http://savannah.fzk.de repository/fzk security
 
        EOF
 
        apt-get update
        apt-get install fzk-vomscert
  • GSI configuration. Install the ca_FZK-local package from the following apt repository:
     rpm savannah.fzk.de repository/fzk security
  • Use the d-grid download area (see the following script)
site-info.def

Find a description of the different general variables in the site info configuration variables wiki:

System administrators are free to choose the configuration structure they prefer. It's possible to keep all the configuration variables in big site-info.def or maintain a smaller site-info.def together with services/, nodes/ and/or vo.d/ directories.

Note-icon.png
  
Configuration flow in YAIM. This is the order in which the different configuration files are sourced:
  1. /opt/glite/yaim/defaults/site-info.pre
  2. /root/siteinfo/site-info.def
  3. /opt/glite/yaim/defaults/site-info.post
Mandatory service specific variables from /opt/glite/yaim/examples/siteinfo/services/glite-creamce
Variable Name Description Value type Version
BATCH_CONF_DIR Path where lsf.conf is located. Only when configuring LSF as a batch system. String 4.0.4-12
BLPARSER_HOST Fully qualified name of machine hosting the BLAH blparser String 4.0.4-12
CEMON_HOST Fully qualified name of CEMon host (do not use localhost !) String 4.0.4-12
CREAM_DB_USER Cream DB user name String 4.0.4-12
CREAM_DB_PASSWORD CREAM DB password String 4.0.9-2
Note-icon.png
  
Cream CE post-configuration

Enable DN authorization (optional)

CREAM supports two types of authorization (AuthZ) mechanisms: one AuthZ is VOMS based while the other AuthZ is specified by Grid User DNs (via the gridmapPDP). So if you want to also enable specific user DNs, list them in the /etc/grid-security/grid-mapfile, e.g.:

"/C=IT/O=INFN/OU=Personal Certificate/L=Padova/CN=X Y/Email=x.y@pd.infn.it" .egee

"/C=IT/O=INFN/OU=Personal Certificate/L=Padova/CN=W Z/Email=w.z@pd.infn.it" .egee

Proceed

Initial test

To check the creamCE installation (you can also use: http://gkswiki.fzk.de/index.php5/Testing_CREAM_CE)

  • Run the CheckCreamConf script
  • Open your browser (where a valid certificate must be installed) to https://<hostname-of-cream-ce>:8443/ce-cream/services A page with link to the CREAM WSDL should be shown. (Because a jdk bug in elliptic crypto implementation, this could not work with certain browsers. Disabling "Use TLS 1.0" with Firefox can help)
  • Check in the CREAM log file (/opt/glite/var/log/glite-ce-cream.log) for the following strings:
org.glite.ce.cream.ws.StartUpManager - CREAM started!
org.glite.ce.cream.jobmanagement.cmdexecutor.blah.BLParserClient - Connection with BLParser (xxx) correctly established
  • Test glexec on the CREAM CE:
    • Log on the CREAM CE: su tomcat -
    • Consider a user proxy (e.g. /tmp/user.proxy) for a user authorized to use that CREAM CE. This proxy file must belong to tomcat.tomcat
    • Do the following (This should return the id of the local user mapped to that Grid user):
export GLEXEC_MODE="lcmaps_get_account"
export GLEXEC_CLIENT_CERT=user.proxy
/opt/glite/sbin/glexec /usr/bin/id
  • Try a gsiftp (e.g. using globus-url-copy or uberftp) towards that CREAM CE. E.g.:
globus-url-copy gsiftp://<hostname-of-cream-ce>/etc/fstab -
  • Try the following command from a UI:
glite-ce-allowed-submission <<hostname-of-cream-ce>>:8443
It should report:
Job Submission to this CREAM CE is enabled
  • Try a submission to that CE using the glite-ce-job-submit command, e.g.:
$ /bin/cat test.jdl
[
executable="/bin/sleep";
arguments="1";
]
$ glite-ce-job-submit -a -r <hostname-of-cream-ce>:8443/cream-pbs-dteam test.jdl 
https://<hostname-of-cream-ce>:8443/CREAM336256203
  • Check the status of that job, which eventually should be DONE-OK:
$ glite-ce-job-status https://<hostname-of-cream-ce>:8443/CREAM336256203
******  JobID=<hostname-of-cream-ce>:8443/CREAM336256203 
       Status        = [DONE-OK]
       ExitCode      = [0]
  • Try a submission to that CE using the glite-ce-job-submit command, and then tries to cancel it (using the glite-ce-job-cancel command).
$ /bin/cat test.jdl
[
executable="/bin/sleep";
arguments="1000";
]
$ glite-ce-job-submit -a -r <hostname-of-cream-ce>:8443/cream-pbs-dteam test.jdl 
https://<hostname-of-cream-ce>:8443/CREAM510970530
$ glite-ce-job-cancel https://<hostname-of-cream-ce>:8443/CREAM510970530
    • Check the status of that job, which eventually should be CANCELLED:
$ glite-ce-job-status https://<hostname-of-cream-ce>:8443/CREAM510970530
******  JobID=[https://<hostname-of-cream-ce>:8443/CREAM510970530
       Status        = [CANCELLED]
       ExitCode      = []
Note-icon.png
  
In case of errors, please see the pages available here
Personal tools