LCG Quick Start Guide

wedge Getting access to the grid
wedge Getting a certificate
wedge DOE Certificate
http://www.doegrids.org
wedge How to request a DOEGrids Certificate
http://www.doegrids.org/pages/How-To.html
wedge Personal certificate
http://www.doegrids.org/pages/cert-request.html
*
DOE-Persional-CA
DOE-Persional-CA

* Exporting your key pair for use by Globus grid-proxy-init
- Export or 'backup' your certificate. The interface for this varies from browser to browser. Internet Explorer starts with "Tools -> Internet Options -> Content"; Netscape Communicator has a "Security" button on the top menu bar; Mozilla starts with "Edit -> Preferences -> Privacy and Security -> Certificates". The exported file will probably have the extension .p12 or .pfx.
- Guard this file carefully. Store it off your computer, or remove it once you are finished with this process.
- Copy the above PKCS#12 file to the computer where you will run grid-proxy-init.
- Extract your certificate (which contains the public key) and the private key:
- Certificate:
openssl pkcs12 -in YourCert.p12 -clcerts -nokeys -out $HOME/.globus/usercert.pem
- To get the encrypted private key :
openssl pkcs12 -in YourCert.p12 -nocerts -out $HOME/.globus/userkey.pem
You must set the mode on your userkey.pem file to read/write only by the owner, otherwise grid-proxy-init will not use it(chmod go-rw $HOME/.globus/userkey.pem).

wedge Registering in a grid virtual organisation
wedge For access to LCG resources, you must agree to the LCG Usage Rules and register with a Vitual Organization(VO)
https://lcg-registrar.cern.ch/cgi-bin/register/account.pl
*
VO-User-Register
VO-User-Register

wedge Job submission
wedge relevant commands
* edg-job-submit <job.jdl>
submits a job for which the description is in job.jdl
* edg-job-status <jobId>
returns the status of a job with job identifier jobId
* edg-job-get-output <jobId>
return the place where the output of the job can be found
* edg-job-cancel <jobId>
cancels the job with identifier jobId
* edg-job-xxx --help
shows the usage of command edg-job-xxx
wedge EX 1)
wedge HelloWorld.jdl
Executable = "/bin/echo ";
Arguments = "Hello World";
Stdoutput = "message.txt";
StdError = "stderror";
OutputSandbox = {"message.txt","stderror"};
* The job is described in the Job Description Language (JDL) in the HelloWorld.jdl file,
* grid-proxy-init
$ grid-proxy-init
Your identity: /DC=org/DC=doegrids/OU=People/CN=DaeHee Han 768004
Enter GRID pass phrase for this identity:
Creating proxy ................................ Done
Your proxy is valid until: Tue May 3 04:10:27 2005
* grid-job-submit -vo cms HelloWorld.jdl
Selected Virtual Organisation name (from --vo option): cms
Connecting to host cluster3.knu.ac.kr, port 7772
Logging to host cluster3.knu.ac.kr, port 9002


*********************************************************************************************
JOB SUBMIT OUTCOME
The job has been successfully submitted to the Network Server.
Use edg-job-status command to check job current status. Your job identifier (edg_jobId) is:

- https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw


*********************************************************************************************
* edg-job-status https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw
[hanbi@cluster3 LCG]$ edg-job-status https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw


*************************************************************
BOOKKEEPING INFORMATION:

Status info for the Job : https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw
Current Status: Waiting
reached on: Wed Jun 1 08:37:45 2005
*************************************************************

[hanbi@cluster3 LCG]$ edg-job-status https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw


*************************************************************
BOOKKEEPING INFORMATION:

Status info for the Job : https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw
Current Status: Scheduled
Status Reason: Job successfully submitted to Globus
Destination: cluster50.knu.ac.kr:2119/jobmanager-torque-cms
reached on: Wed Jun 1 08:37:45 2005
*************************************************************

[hanbi@cluster3 LCG]$ edg-job-status https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw


*************************************************************
BOOKKEEPING INFORMATION:

Status info for the Job : https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw
Current Status: Running
Status Reason: Job successfully submitted to Globus
Destination: cluster50.knu.ac.kr:2119/jobmanager-torque-cms
reached on: Wed Jun 1 08:44:01 2005
*************************************************************

[hanbi@cluster3 LCG]$ edg-job-status https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw


*************************************************************
BOOKKEEPING INFORMATION:

Status info for the Job : https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw
Current Status: Done (Success)
Exit code: 0
Status Reason: Job terminated successfully
Destination: cluster50.knu.ac.kr:2119/jobmanager-torque-cms
reached on: Wed Jun 1 08:45:18 2005
*************************************************************

* edg-job-get-output https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw
[hanbi@cluster3 LCG]$ edg-job-get-output https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw

Retrieving files from host: cluster3.knu.ac.kr ( for https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw )

*********************************************************************************
JOB GET OUTPUT OUTCOME

Output sandbox files for the job:
- https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw
have been successfully retrieved and stored in the directory:
/tmp/jobOutput/hanbi_v2oS_UiyNOBxOWKUaSF8nw

*********************************************************************************

[hanbi@cluster3 LCG]$ cat /tmp/jobOutput/hanbi_v2oS_UiyNOBxOWKUaSF8nw/message.txt
Hello World
[hanbi@cluster3 LCG]$ cat /tmp/jobOutput/hanbi_v2oS_UiyNOBxOWKUaSF8nw/stderror
[hanbi@cluster3 LCG]$

wedge FAQ
* Jobs are aborting with: Failure while executing job wrapper
Several reason can cause this problem

• The Executable attribute of the jdl file is defined errorneously. This value should be the name of the executable file on the working node and not on the UI !

* Jobs are aborting with: JobSizeException: Job Size exceeds limits.
The problem is that the size of the InputSandbox exceeded the limtit. Solution:

• Use globus-url-copy to copy your input files onto a SE. Your job can retrive these files during it's execution to the WN.
• Put your input files to a public web server and use wget in yout job to download it.

wedge Reference
* LCG User Guide
https://edms.cern.ch/file/722398/1.2/gLite-3-UserGuide.pdf