Tags:
create new tag
view all tags

Grid Tips

Creating a grid proxy

Always create a gird proxy with lhcb-proxy-init no other program will work correctly.

Incorrect ways to create a proxy

Creating your proxy with either grid-proxy-init or voms-proxy-init is in correct and will lead to numerous errors. One of these can be that lhcb-proxy-info does not run properly and outputs a traceback instead of information about your proxy. The correct format of the output from this command is below.

Ganga will not create the grid proxy correctly and will lead to you getting error messages like these:

Ganga.GPIDev.Lib.Job               : INFO     submitting job 132
Ganga.GPIDev.Lib.Job               : INFO     job 132 status changed to "submitting"
GangaLHCb.Lib.DIRAC                : ERROR    Error splitting files: {'Message': 'Failed to get replica information', 'OK': False}
Ganga.GPIDev.Lib.Job               : WARNING  ---------- error in user/extension code ----------
Ganga.GPIDev.Lib.Job               : WARNING  Traceback (most recent call last):
Ganga.GPIDev.Lib.Job               : WARNING    File "/afs/rl.ac.uk/lhcb/lhcb/GANGA/GANGA_v505r11/install/ganga/python/Ganga/GPIDev/Lib/Job/Job.py", line 636, in submit
Ganga.GPIDev.Lib.Job               : WARNING      subjobs = self.splitter.validatedSplit(self)
Ganga.GPIDev.Lib.Job               : WARNING    File "/afs/rl.ac.uk/lhcb/lhcb/GANGA/GANGA_v505r11/install/ganga/python/Ganga/GPIDev/Adapters/ISplitter.py", line 69, in validatedSplit
Ganga.GPIDev.Lib.Job               : WARNING      subjobs = self.split(job)
Ganga.GPIDev.Lib.Job               : WARNING    File "/afs/rl.ac.uk/lhcb/lhcb/GANGA/GANGA_v505r11/install/ganga/python/GangaLHCb/Lib/Gaudi/Splitters.py", line 138, in split
Ganga.GPIDev.Lib.Job               : WARNING      datasetlist = self._splitFiles(inputs)
Ganga.GPIDev.Lib.Job               : WARNING    File "/afs/rl.ac.uk/lhcb/lhcb/GANGA/GANGA_v505r11/install/ganga/python/GangaLHCb/Lib/DIRAC/DiracSplitter.py", line 49, in _splitFiles
Ganga.GPIDev.Lib.Job               : WARNING      raise SplittingError('Error splitting files.')
Ganga.GPIDev.Lib.Job               : WARNING  SplittingError: Error splitting files.
Ganga.GPIDev.Lib.Job               : WARNING  --------------------------------------------------
Ganga.GPIDev.Lib.Job               : ERROR    Error splitting files. ... reverting job 132 to the new status
Ganga.GPIDev.Lib.Job               : INFO     job 132 status changed to "new"

JobError: Error splitting files.

If the proxy is created with lhcb_bkk you will be able to do everything as normal on the grid, except retrieve output from your jobs on the grid. lhcb_bkk gave me an error like this when creating your proxy with lhcb_bkk. This does not stop lhcb_bkk from running

uoh35620@heplnx112 ~ $ lhcb_bkk
Traceback (most recent call last):
  File "/afs/rl.ac.uk/lhcb/lhcb/DIRAC/DIRAC_v5r5/InstallArea/scripts/dirac-proxy-info", line 120, in <module>
    pinvalidProxy( "Unable to retrieve VOMS extension" )
NameError: name 'pinvalidProxy' is not defined Enter Certificate password:
Warning : Cannot add voms attribute /lhcb/Role=user to proxy
          Accessing data in the grid storage from the user interface will not be possible.
          The grid jobs will not be affected.
First please choise which kind of queries you want to use!
The default value is Configuration!
The possible parameters:
['Configuration', 'Event type', 'Productions', 'Runlookup'] For Example:
client.setParameter('Processing Pass')
If you need help, you will use client.help() command.
2010-08-23 10:55:53 UTC dirac-bookkeeping-gui  INFO: You do not have yet bookmarks for the bookkeeping ! No data for userIds (280L, 2L) profileName Bookkeeping varName Bookmarks

Checking your proxy

To check that your proxy is set up correctly, you can run lhcb-proxy-info, this can just output a tracebak if it is created with grid-proxy-init and not out put all data if created with ganga. The last two lines of the output VOMS and VOMS fqdn are important and must be there in order for your proxy to fully function.

uoh35620@heplnx108 ~ $ lhcb-proxy-info
subject      : /C=UK/O=eScience/OU=CLRC/L=RAL/CN=thomas bird/CN=proxy/CN=proxy
issuer       : /C=UK/O=eScience/OU=CLRC/L=RAL/CN=thomas bird/CN=proxy
identity     : /C=UK/O=eScience/OU=CLRC/L=RAL/CN=thomas bird
timeleft     : 23:53:15
DIRAC group  : lhcb_user
path         : /net/unixfsrv/hep/uoh35620/.globus/.proxy
username     : tbird
VOMS         : True
VOMS fqan    : ['/lhcb/Role=user']

Removing an invalid proxy

The output of lhcb-proxy-info includes a line called path, delete this file and you will delete your proxy. In my case I would need to run

rm ~/.globus/.proxy

-- ThomasBird - 2010-08-24

Topic revision: r1 - 2010-08-24 - ThomasBird
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback