22
IT-SDC : Support for Distributed Computing Alejandro Alvarez Ayllon on behalf of the DM Clients developers GFAL/LCGUTIL to GFAL2/GFAL2 migration

GFAL/LCGUTIL to GFAL2/GFAL2 migration

  • Upload
    tameka

  • View
    63

  • Download
    1

Embed Size (px)

DESCRIPTION

GFAL/LCGUTIL to GFAL2/GFAL2 migration. Alejandro Alvarez Ayllon on behalf of the DM Clients developers. Remember remember the 1 st of November. The 1 st of November. GFAL/LCGUTIL will not be supported They will be removed from Fedora/EPEL - PowerPoint PPT Presentation

Citation preview

Page 1: GFAL/LCGUTIL to GFAL2/GFAL2 migration

IT-SDC : Support for Distributed Computing

Alejandro Alvarez Ayllonon behalf of the DM Clients developers

GFAL/LCGUTILto

GFAL2/GFAL2 migration

Page 2: GFAL/LCGUTIL to GFAL2/GFAL2 migration

2IT-SDC : Support for Distributed Computing

Remember remember the 1st of November

Page 3: GFAL/LCGUTIL to GFAL2/GFAL2 migration

3IT-SDC

The 1st of November

GFAL/LCGUTIL will not be supported They will be removed from Fedora/EPEL

Fear not! We will give support for migration indefinitely

Page 4: GFAL/LCGUTIL to GFAL2/GFAL2 migration

4IT-SDC

Release cycle for gfal2 components

EPEL

• Full production release

Development

• Increase of minor version• New functionalities• Non critical bug fixes• Nightly tests• Deployed in the FTS3

Development Services

RC

• Increase of revision number• Critical bug fixes• Deployed in the FTS3 Pilot

Service

EPEL Testing

• Increase of release number• “Quarantine” stage of a

release• Packaging fixes• Critical patches• Beta testers welcome!

Merges

Page 5: GFAL/LCGUTIL to GFAL2/GFAL2 migration

5IT-SDC : Support for Distributed Computing

Getting started

Page 6: GFAL/LCGUTIL to GFAL2/GFAL2 migration

6IT-SDC

Installation

Enable EPEL (5, 6 or even 7!) Install

gfal2-all Core + Transfer, DCAP, GridFTP, HTTP/DAV,

LFC, RFIO and SRM gfal2-python gfal2-util gfal2-plugin-xrootd for xrootd support

Page 7: GFAL/LCGUTIL to GFAL2/GFAL2 migration

7IT-SDC

Fast check

$ voms-proxy-init --voms dteam$ gfal-ls gsiftp://lxfsra04a04.cern.ch/dpm/drwxr-xr-x 0 0 0 Jul 12 2013 0 cern.ch

Page 8: GFAL/LCGUTIL to GFAL2/GFAL2 migration

8IT-SDC : Support for Distributed Computing

Command Line InterfaceSide by side

Page 9: GFAL/LCGUTIL to GFAL2/GFAL2 migration

9IT-SDC

Description lcg-util gfal2-utilAdd an alias for a given GUID lcg-aa DeprecatedBring SURLS online lcg-bringonline N/A, can be doneCopy files with no catalog lcg-cp gfal-copyCopy file and register lcg-cr gfal-copyDelete a file / directory lcg-del gfal-rmGet checksum lcg-get-checksum gfal-checksumGet TURL/s lcg-getturls gfal-xattrList aliases for a given GUID lcg-la DeprecatedGet the GUID for an LFN lcg-lc gfal-xattrList the replicas for an LFN lcg-lg gfal-xattrDirectory listing lcg-ls gfal-lsRemove an alias lcg-ra Deprecated

Page 10: GFAL/LCGUTIL to GFAL2/GFAL2 migration

10IT-SDC

Description lcg-util gfal2-utilCopy between SEs with registration lcg-rep gfal-copyRegister a file in the catalog lcg-rf gfal-copySet a file status to done lcg-sd DeprecatedGet space tokens lcg-stmd gfal-xattrUnregister a file lcg-uf DeprecatedCreate a directory gfal-mkdirDump stdin into a file gfal-saveDump a file into stdout gfal-cat

Page 11: GFAL/LCGUTIL to GFAL2/GFAL2 migration

11IT-SDC

Two Swiss Army Knifes: gfal-copy

LFC is not a special citizen, but some operations can be mapped easily

Registration = COPY

Page 12: GFAL/LCGUTIL to GFAL2/GFAL2 migration

12IT-SDC

# Copy & Register (lcg-cr)gfal-copy file:///local/file gsiftp://se.cern.ch \ lfc://lfc.cern.ch/lfn

# Copy & Register (lcg-rep)gfal-copy gsiftp://se-a/path gsiftp://se-b/path lfc://lfc.cern.ch/lfn

# Register a file (lcg-rf)gfal-copy gsiftp://se/path lfc://lfc.cern.ch/lfn

Page 13: GFAL/LCGUTIL to GFAL2/GFAL2 migration

13IT-SDC

Two Swiss Army Knifes: gfal-xattr

Get/set extended attributes: key => value

Some “special” mappings user.replicas user.guid user.comment spacetoken

spacetoken.token?<token> spacetoken.description?<description>

Page 14: GFAL/LCGUTIL to GFAL2/GFAL2 migration

14IT-SDC : Support for Distributed Computing

Examples

Page 15: GFAL/LCGUTIL to GFAL2/GFAL2 migration

15IT-SDC : Support for Distributed Computing

GFAL2 Python APISide by side

Page 16: GFAL/LCGUTIL to GFAL2/GFAL2 migration

16IT-SDC

GFAL: Less Pythonicimport gfalgfalDict = {‘surls’: ‘srm://…’}err, obj, msg = gfal.gfal_init(gfalDict)ret, buff, msg = gfal.gfal_ls(obj)gfal.internal_free(obj)

Page 17: GFAL/LCGUTIL to GFAL2/GFAL2 migration

17IT-SDC

GFAL2: More Pythonic

import gfal2ctx = gfal2.creat_context()try:

ctx.listdir(‘srm://…’)except gfal2.Gerror, e:

print “[%d] %s” % (e.code, e.message)

Page 18: GFAL/LCGUTIL to GFAL2/GFAL2 migration

18IT-SDC

Description gfal gfal2

List a directory gfal_ls ctx.listdirctx.opendir + read/readpp

Extend lifetime gfal_pin Not available

Async bring online gfal_prestage ctx.bring_online

TURLS from SURLS gfal_turlsfromsurls ctx.getaxttr

Delete SURLS gfal_deletesurls ctx.unlink

Delete directory gfal_removedir ctx.rmdir

Status of async bring online gfal_prestagestatus ctx.bring_online_poll

Release SURLS gfal_release ctx.release

Copy a file lcg_cp4 ctx.filecopy

Remote random IO supported too, and thread safe!

Page 19: GFAL/LCGUTIL to GFAL2/GFAL2 migration

19IT-SDC

Copy a file

ctx.filecopy(params, source, dest) Params is an instance of ctx.transfer_parameters Members

checksum_check set_user_defined_checksum(algo, value) dst_spacetoken event_callback monitor_callback nbstreams overwrite src_spacetoken timeout

Page 21: GFAL/LCGUTIL to GFAL2/GFAL2 migration

New DM Clients and retirement plans for old ones 21IT-SDC

Do not forget

Supported protocols SRM GridFTP HTTP/DAV LFC RFIO DCAP XROOTD

Page 22: GFAL/LCGUTIL to GFAL2/GFAL2 migration

22IT-SDC

Questions?