Alert.png The wiki is deprecated and due to be decommissioned by the end of September 2022.
The content is being migrated to other supports, new updates will be ignored and lost.
If needed you can get in touch with EGI SDIS team using operations @ egi.eu.

Difference between revisions of "HOWTO12 Globus Online cookbook for EGI VOs"

From EGIWiki
Jump to navigation Jump to search
Line 26: Line 26:
== VO Managers ==
== VO Managers ==


All commands are performed from the command line of a gLite User Interface (UI). The "lsgrid" VO is used as an example.
1. Get all storage managers (Glue 2.0):
 
1. Find storage elements available for your VO:
 
<pre>
 
-bash-3.2$ lcg-infosites --is bdii.grid.sara.nl --vo lsgrid se
 
Avail Space(kB)  Used Space(kB)  Type    SE
 
------------------------------------------
 
< output truncated >
 
      717032688      382478939  SRM      se.grid.rug.nl
 
    17542103037      460842863  SRM      se.lsg.hubrecht.eu
 
    16560797796      1442148104  SRM      se.lsg.psy.vu.nl
 
    58680692895            n.a  SRM      srm.grid.sara.nl
 
    14994733204        5266796  SRM      srm.grid.sara.nl
 
            n.a            n.a  SRM      srm.grid.sara.nl
 
</pre>
 
[[GO_testing|Our tests with Globus Online]] were successful with DPM and dCache type of SRM storages, however the same process may work with some Storm storages (Storm is the third SRM storage type in use in EGI). With this query you can find out the type of the SRM storage that support your VO (GlueSEUniqueID=<SE_hostname>):
<!---
 


<pre>
<pre>


-bash-3.2$ ldapsearch -LLL -h bdii.grid.sara.nl -p 2170 -x -b mds-vo-name=local,o=grid '(&(objectClass=GlueSE)(GlueSEUniqueID=se.grid.rug.nl))' GlueSEImplementationName
-bash-3.2$ ldapsearch -x -h lcg-bdii.cern.ch -p 2170 -b o=glue '(&(objectclass=GLUE2StorageService))' |perl -p00e 's/\r?\n //g'|grep ^dn:|cut -d" " -f2 > GLUE2StorageServiceDN
 
GlueSEImplementationName: dCache
 
-bash-3.2$ ldapsearch -LLL -h bdii.grid.sara.nl -p 2170 -x -b mds-vo-name=local,o=grid '(&(objectClass=GlueSE)(GlueSEUniqueID=se.lsg.hubrecht.eu))' GlueSEImplementationName
 
GlueSEImplementationName: DPM


</pre>
</pre>


 
2. Filter out only storage managers for your VO (Glue 2.0):
2. Find the SRM endpoint for chosen storage element (in case if a not default port used):


<pre>
<pre>


-bash-3.2$ lcg-info --list-service --bdii ldap://bdii.grid.sara.nl:2170 --vo lsgrid --query 'ServiceType=SRM' --attrs 'ServiceEndpoint'| grep srm.grid.sara.nl
-bash-3.2$ for i in `cat GLUE2StorageServiceDN`;do ldapsearch -LLL -x -H ldap://lcg-bdii.cern.ch:2170 -x -b "$i" "(&(objectClass=GLUE2AccessPolicy)(GLUE2PolicyRule=*:biomed))" GLUE2PolicyRule| grep -q GLUE2PolicyRule && echo $i;done > GLUE2AccessPolicyDN
 
- Service: httpg://srm.grid.sara.nl:8443/srm/managerv2
 
- ServiceEndpoint    httpg://srm.grid.sara.nl:8443/srm/managerv2


</pre>
</pre>


--->
2. Find your VO home directory path for the SE endpoint:


(This is the path of the directory where VO users can write files.)
3. Get all GridFTP endpoints for your VO (Glue 2.0):


<pre>
<pre>


lcg-info --list-se --bdii ldap://bdii.grid.sara.nl:2170 --vo lsgrid --query 'SE=srm.grid.sara.nl' --attrs 'VOInfoPath'
-bash-3.2$ for i in `cat GLUE2AccessPolicyDN`; do ldapsearch -LLL -x -H ldap://lcg-bdii.cern.ch:2170 -x -b "$i" "(&(objectClass=GLUE2Endpoint)(GLUE2EndpointInterfaceName=gsiftp))" GLUE2EndpointURL | grep ^GLUE |tail -n 1;done
 
GLUE2EndpointURL: gsiftp://gaeds023.ciemat.es:2811
- SE: srm.grid.sara.nl
GLUE2EndpointURL: gsiftp://se001.ipp.acad.bg:2811
 
GLUE2EndpointURL: gsiftp://juliet.zih.tu-dresden.de:2811
- VOInfoPath          /pnfs/grid.sara.nl/data/lsgrid
GLUE2EndpointURL: gsiftp://sedsk58.grid.hep.ph.ic.ac.uk:2811


</pre>
</pre>


3. Find the GridFTP endpoint that belongs to this SE endpoint:
<pre>
-bash-3.2$ ldapsearch -LLL -x -H ldap://bdii.grid.sara.nl:2170 -x -b o=grid '(&(GlueSEAccessProtocolType=gsiftp)(GlueChunkKey=GlueSEUniqueID=srm.grid.sara.nl))' GlueSEAccessProtocolEndpoint | grep ^Glue | tail -1
GlueSEAccessProtocolEndpoint: gsiftp://wasp9.grid.sara.nl:2811
< ... >
</pre>
Note: there are many endpoint nodes, but we are taking only last one.


[[GO_testing|Our tests with Globus Online]] were successful with DPM and dCache type of SRM storages, however the same process may work with some Storm storages (Storm is the third SRM storage type in use in EGI). With this query you can find out the type of the SRM storage that support your VO (GlueSEUniqueID=<SE_hostname>):
<!---
<!---
<pre>
-bash-3.2$ touch test
-bash-3.2$ lcg-cp file://$PWD/test srm://srm.grid.sara.nl:8443/pnfs/grid.sara.nl/data/lsgrid/test
-bash-3.2$ lcg-gt srm://srm.grid.sara.nl:8443/pnfs/grid.sara.nl/data/lsgrid/test gsiftp
gsiftp://bee33.grid.sara.nl:2811/pnfs/grid.sara.nl/data/lsgrid/test
-bash-3.2$ lcg-del -v -l srm://srm.grid.sara.nl:8443/pnfs/grid.sara.nl/data/lsgrid/test
</pre>


Note: we need to construct the SRM URL: e.g. srm://ServiceEndpoint_hostname:port/VOInfoPath
--->


5. Go to http://www.globusonline.eu/
5. Go to http://www.globusonline.eu/

Revision as of 11:11, 23 May 2013


About

This page provides guidance for Virtual Organisations (VO) of the European Grid Infrastructure (EGI) on how to use the Globus Online service that is available at http://www.globusonline.eu. The services provides robust and easy to use file transfer capabilities for EGI users. Globus Online manages file transfers for you, monitoring performance, retrying failures, auto-tuning and recovering from faults automatically where possible, and reporting status. The Cookbook demonstrates how SRM storages of EGI could be used as endpoints for file transfers in Globus Online.

The Cookbook consists of two parts:

  • The first part provides step-by-step instructions for VO Managers on how to register SRM storage services in Globus Online in such a way, that these appear as endpoints that VO members can find and use for file tranfers. Although these steps could be performed by any member of a VO, we assume that for most VOs the VO Manager is the most suitable person to complete the steps, because the VO Managers have sufficient knowledge on storage sites of the VO and about using the BDII information system to obtain detailed information about these storages.
  • The second part provides step-by-step instructions for VO members on how to use storage endpoints in Globus Online. These steps can be carried out by any VO member.

The "biomed" VO is used as an example in the Cookbook to demonstrate Globus Online usage.

Please email any feedback about this Cookbook to the EGI.eu User Community Support Team: ucst@egi.eu.

ATTENTION: in the examples we use Glue v1.3 and Glue 2.0. Currently there several discussions ongoing about what storage managers must publish to information system and make easier way of querying the information. REF: https://ggus.eu/tech/ticket_show.php?ticket=94264

VO Managers

1. Get all storage managers (Glue 2.0):


-bash-3.2$ ldapsearch -x -h lcg-bdii.cern.ch -p 2170 -b o=glue '(&(objectclass=GLUE2StorageService))' |perl -p00e 's/\r?\n //g'|grep ^dn:|cut -d" " -f2 > GLUE2StorageServiceDN

2. Filter out only storage managers for your VO (Glue 2.0):


-bash-3.2$ for i in `cat GLUE2StorageServiceDN`;do ldapsearch -LLL -x -H ldap://lcg-bdii.cern.ch:2170 -x -b "$i" "(&(objectClass=GLUE2AccessPolicy)(GLUE2PolicyRule=*:biomed))" GLUE2PolicyRule| grep -q GLUE2PolicyRule && echo $i;done > GLUE2AccessPolicyDN


3. Get all GridFTP endpoints for your VO (Glue 2.0):


-bash-3.2$ for i in `cat GLUE2AccessPolicyDN`; do ldapsearch -LLL -x -H ldap://lcg-bdii.cern.ch:2170 -x -b "$i" "(&(objectClass=GLUE2Endpoint)(GLUE2EndpointInterfaceName=gsiftp))" GLUE2EndpointURL | grep ^GLUE |tail -n 1;done
GLUE2EndpointURL: gsiftp://gaeds023.ciemat.es:2811
GLUE2EndpointURL: gsiftp://se001.ipp.acad.bg:2811
GLUE2EndpointURL: gsiftp://juliet.zih.tu-dresden.de:2811
GLUE2EndpointURL: gsiftp://sedsk58.grid.hep.ph.ic.ac.uk:2811


Our tests with Globus Online were successful with DPM and dCache type of SRM storages, however the same process may work with some Storm storages (Storm is the third SRM storage type in use in EGI). With this query you can find out the type of the SRM storage that support your VO (GlueSEUniqueID=<SE_hostname>):