The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) GISELA Additional Services Diego Scardaci

Slides:



Advertisements
Similar presentations
EGEE is a project funded by the European Union under contract IST EGEE Tutorial Turin, January Hands on Job Services.
Advertisements

JRA1 – Application and Infrastructure Grid Services Francisco Brasileiro Universidade Federal de Campina Grande – UFCG (Brazil) Diego Scardaci.
INFSO-RI Enabling Grids for E-sciencE Workload Management System and Job Description Language.
Riccardo Bruno, INFN.CT Sevilla, 10-14/09/2007 GENIUS Exercises.
E-science grid facility for Europe and Latin America A Data Access Policy based on VOMS attributes in the Secure Storage Service Diego Scardaci.
INFSO-RI Enabling Grids for E-sciencE EGEE Middleware The Resource Broker EGEE project members.
Basic Grid Job Submission Alessandra Forti 28 March 2006.
FESR Consorzio COMETA - Progetto PI2S2 Using MPI to run parallel jobs on the Grid Marcello Iacono Manno Consorzio COMETA
Enabling Grids for E-sciencE gLite training at Sinaia '06 Victor Penso Kilian Schwarz GSI Darmstadt Germany.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Grid Engine Riccardo Rotondo
Ninth EELA Tutorial for Users and Managers E-infrastructure shared between Europe and Latin America LFC Server Installation and Configuration.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Luciano Díaz ICN-UNAM Based on Domenico.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) WMPROXY API Python & C++ Diego Scardaci
The gLite API – PART I Giuseppe LA ROCCA INFN Catania ACGRID-II School 2-14 November 2009 Kuala Lumpur - Malaysia.
INFSO-RI Enabling Grids for E-sciencE GILDA Praticals GILDA Tutors INFN Catania ICTP/INFM-Democritos Workshop on Porting Scientific.
E-science grid facility for Europe and Latin America Watchdog: A job monitoring solution inside the EELA-2 Infrastructure Riccardo Bruno,
:: ::::: ::::: ::::: ::::: ::::: ::::: ::::: ::::: ::::: ::::: ::::: :: GridKA School 2009 MPI on Grids 1 MPI On Grids September 3 rd, GridKA School 2009.
1 HeMoLab - Porting HeMoLab's SolverGP to EELA glite Grid Environment FINAL REPORT Ramon Gomes Costa - Paulo Ziemer.
E-science grid facility for Europe and Latin America Developing e-Infrastructure services for e-Science applications: the EELA-2 experience.
Nadia LAJILI User Interface User Interface 4 Février 2002.
E-science grid facility for Europe and Latin America Marcelo Risk y Juan Francisco García Eijó Laboratorio de Sistemas Complejos Departamento.
INFSO-RI Enabling Grids for E-sciencE Workload Management System Mike Mineter
- Distributed Analysis (07may02 - USA Grid SW BNL) Distributed Processing Craig E. Tull HCG/NERSC/LBNL (US) ATLAS Grid Software.
Group 1 : Grid Computing Laboratory of Information Technology Supervisors: Alexander Ujhinsky Nikolay Kutovskiy.
DIRAC Review (13 th December 2005)Stuart K. Paterson1 DIRAC Review Exposing DIRAC Functionality.
E-science grid facility for Europe and Latin America Using Secure Storage Service inside the EELA-2 Infrastructure Diego Scardaci INFN (Italy)
Jan 31, 2006 SEE-GRID Nis Training Session Hands-on V: Standard Grid Usage Dušan Vudragović SCL and ATLAS group Institute of Physics, Belgrade.
Satellital Image Clasification with neural networks Step implemented – Final Report Susana Arias, Héctor Gómez UNIVERSIDAD TÉCNICA PARTICULAR DE LOJA ECUADOR.
E-science grid facility for Europe and Latin America MAVs-Study Biologically Inspired, Super Maneuverable, Flapping Wing Micro-Air-Vehicles.
INFSO-RI Enabling Grids for E-sciencE Αthanasia Asiki Computing Systems Laboratory, National Technical.
Managing Data DIRAC Project. Outline  Data management components  Storage Elements  File Catalogs  DIRAC conventions for user data  Data operation.
1 DIRAC Job submission A.Tsaregorodtsev, CPPM, Marseille LHCb-ATLAS GANGA Workshop, 21 April 2004.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Moisés Hernández Duarte UNAM FES Cuautitlán.
EGEE-II INFSO-RI Enabling Grids for E-sciencE Command Line Grid Programming Spiros Spirou Greek Application Support Team NCSR “Demokritos”
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) The Egyptian Grid Infrastructure Maha Metawei
INFSO-RI Enabling Grids for E-sciencE GILDA Praticals Giuseppe La Rocca INFN – Catania gLite Tutorial at the EGEE User Forum CERN.
E-infrastructure shared between Europe and Latin America FP6−2004−Infrastructures−6-SSA Special Jobs Valeria Ardizzone INFN - Catania.
Enabling Grids for E-sciencE EGEE-II INFSO-RI Porting an application to the EGEE Grid & Data management for Application Rachel Chen.
User Interface UI TP: UI User Interface installation & configuration.
LCG2 Tutorial Viet Tran Institute of Informatics Slovakia.
12th EELA Tutorial for Users and Managers E-infrastructure shared between Europe and Latin America LFC Server Installation and Configuration.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) UI Installation and Configuration Dong Xu IHEP,
Istituto Nazionale di Astrofisica Information Technology Unit INAF-SI Job with data management Giuliano Taffoni.
Presentation of the results khiat abdelhamid
Breaking the frontiers of the Grid R. Graciani EGI TF 2012.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Algiers, EUMED/Epikh Application Porting Tutorial, 2010/07/04.
Claudio Grandi INFN Bologna Virtual Pools for Interactive Analysis and Software Development through an Integrated Cloud Environment Claudio Grandi (INFN.
GRID commands lines Original presentation from David Bouvet CC/IN2P3/CNRS.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Advanced Job Riccardo Rotondo
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America LFC Server Installation and Configuration.
Introduction to Computing Element HsiKai Wang Academia Sinica Grid Computing Center, Taiwan.
FESR Consorzio COMETA - Progetto PI2S2 Jobs with Input/Output data Fabio Scibilia, INFN - Catania, Italy Tutorial per utenti e.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) gLite Grid Introduction Salma Saber Electronic.
Scuola Grid INFN, Trieste, 1-12 Dic Managing Confidential Data in the gLite Middleware – The Secure Storage.
Enabling Grids for E-sciencE Work Load Management & Simple Job Submission Practical Shu-Ting Liao APROC, ASGC EGEE Tutorial.
Stephen Childs Trinity College Dublin
Advanced Topics: MPI jobs
gLite MPI Job Amina KHEDIMI CERIST
Java API del Logical File Catalog (LFC)
Scuola Grid INFN, Martina Franca, Nov
Grid2Win: Porting of gLite middleware to Windows XP platform
FEMM Riccardo Bruno INFN CT.
Grid2Win: Porting of gLite middleware to Windows XP platform
5. Job Submission Grid Computing.
Special Jobs: MPI Alessandro Costa INAF Catania
GSAF Grid Storage Access Framework
Long term job submission and monitoring uing grid services
Architecture of the gLite Data Management System
gLite Job Management Christos Theodosiou
GENIUS Grid portal Hands on
Presentation transcript:

The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) GISELA Additional Services Diego Scardaci INFN Dept. of Catania Joint CHAIN/GISELAEPIKH Application Porting School Valparaiso (Chile),

Valparaiso, Joint CHAIN/GISELA/EPIKH Grid School for Application Porting, Outline The Secure Storage Service for the gLite Middleware Watchdog LCG-REC OurGrid

Valparaiso, Joint CHAIN/GISELA/EPIKH Grid School for Application Porting, Provides gLite users with suitable and simple tools to store confidential data in storage elements in a transparent and secure way. The service is composed by the following components: Command Line Applications: commands integrated in the gLite User Interface to encrypt/upload and decrypt/ download files. Application Program Interface: allows the developer to write programs able to manage confidential data. Keystore: a new grid element used to store and retrieve the users’ keys. Secure Storage

Valparaiso, Joint CHAIN/GISELA/EPIKH Grid School for Application Porting, Using Secure Storage Secure Storage is a GISELA infrastructure service; The Secure Storage libraries are been installed in the GISELA Central UIs and in the GISELA sites; A central Keystore has just been installed in the machine securestorage-01.ct.infn.it; To use Secure Storage: Read the documentation in the wiki site: See the code samples; Contact: Diego Scardaci (mail:

Valparaiso, Joint CHAIN/GISELA/EPIKH Grid School for Application Porting, Set the following environment variables in the UI or in the WN: SS_GRID_KEYSTORE_HOST= :25406 SS_GRID_KEYSTORE_DN= In the main script of your application, set the following environment variables to be able to use Secure Storage in a WN: PATH=${VO_PROD_VO_EU_EELA_EU_SW_DIR}/securestorage- client/bin/:${PATH} LD_LIBRARY_PATH=${VO_PROD_VO_EU_EELA_EU_SW_DIR}/securestora ge-client/lib/:${LD_LIBRARY_PATH} [ Type = "Job"; JobType = "Normal"; Executable = "/bin/sh"; Arguments = "MySSApplication.sh"; StdOutput = "MySSApplication.out"; StdError = "MySSApplication.err"; InputSandbox = {“MySSApplication.sh”,…}; OutputSandbox = {"MySSApplication.err"," MySSApplication.out"}; ] MY JOB #!/bin/sh … export SS_GRID_KEYSTORE_HOST= :25406 export SS_GRID_KEYSTORE_DN= export LCG_CATALOG_TYPE=lfc export LFC_HOST=lfc.eela.ufrj.br export LCG_RFIO_TYPE=dpm export PATH=${VO_PROD_VO_EU_EELA_EU_SW_DIR}/securestorage- client/bin/:${PATH} export LD_LIBRARY_PATH=${VO_PROD_VO_EU_EELA_EU_SW_DIR}/secure storage-client/lib/:${LD_LIBRARY_PATH} #run application Using Secure Storage

Valparaiso, Joint CHAIN/GISELA/EPIKH Grid School for Application Porting, An example of Secure Storage Job #!/bin/sh export SS_GRID_KEYSTORE_HOST=securestorage-01.ct.infn.it:25406 export SS_GRID_KEYSTORE_DN="/C=IT/O=INFN/OU=Host/L=Catania/CN=securestorage-01.ct.infn.it“ export LCG_CATALOG_TYPE=lfc export LFC_HOST=lfc.eela.ufrj.br export LCG_RFIO_TYPE=dpm export PATH=${VO_PROD_VO_EU_EELA_EU_SW_DIR}/securestorage-client/bin/:${PATH} export LD_LIBRARY_PATH=${VO_PROD_VO_EU_EELA_EU_SW_DIR}/securestorage- client/lib/:${LD_LIBRARY_PATH} echo "SECURE STORAGE TEST" > text_file_5.txt lcg-scr --vo prod.vo.eu-eela.eu -d lnx097.eela.if.ufrj.br --vo_permission /C=IT/O=INFN/OU=Personal\ Certificate/L=Catania/CN=Diego\ Scardaci -l lfn:/grid/prod.vo.eu-eela.eu/text_file_6.enc text_file_5.txt lcg-scp --vo prod.vo.eu-eela.eu lfn:/grid/prod.vo.eu-eela.eu/text_file_6.enc file:$PWD/text_file_copy_dec.txt echo "That's all folks!“ exit $? MY JOB MY SCRIPT [ Type = "Job"; JobType = "Normal"; Executable = "/bin/sh"; Arguments = "./securestorage_test.sh"; StdOutput = "out-securestorage_test.out"; StdError = "err-securestorage_test.err"; InputSandbox = {"./securestorage_test.sh"}; OutputSandbox = {"text_file_copy_dec.txt","err- securestorage_test.err","out-securestorage_test.out"}; ]

Valparaiso, Joint CHAIN/GISELA/EPIKH Grid School for Application Porting, #include "securestorage.h“ … int main (int argc, char *argv[]) { int fd; int read_byte=0; unsigned char *buffer; FILE *fdout; if (argc != 3) { fprintf(stderr,"Usage: %s \n",argv[0]); exit(1); } if ( (fdout = fopen(argv[2], "wb")) == NULL ) { perror("fopen"); exit(1); } if ( (fd=securestorage_open(argv[1], O_RDONLY, 0644)) < 0 ) { /*manage the error*/ } buffer = calloc(1, BUFLEN+1); do { if ((read_byte=securestorage_read(fd,buffer,BUFLEN))<0){ /*manage the error*/} if (read_byte>0) { if (fwrite(buffer, 1, read_byte, fdout) < 0) {/*manage the error*/} } } while (read_byte>0); if ( securestorage_close (fd) < 0 ) {/*manage the error*/ } fclose(fdout); free(buffer); exit(0); } An example of Secure Storage API usage inside a C program

Valparaiso, Joint CHAIN/GISELA/EPIKH Grid School for Application Porting, Why –Especially long term jobs require to be monitored and controlled during their execution. How –Perform job control and monitoring using grid services in the less invasive way. Observations –Almost all jobs submitted on the grid are piloted by shell scripts  Shell scripting allow to get precious info in case of faults  Shell scripting can pilot more complex batch execution –Both AMGA and SE+LFC can be used as the simplest IS on the grid.  lfc-* and lcg-* tools already available for file creation and retrieve  The latency of CLI tools for the storage is very low compared to long term jobs Requirements: –Monitor job execution watching snapshot of files produced by the job execution  File snapshot will be reported on LFC+SE or AMGA servers –It would be useful to configure the monitoring tool accordingly to the user needs  Few shell environment variables can be used to configure the watchdog tool –Control the job execution accessing directly on the WN  It is possible to send commands on the WN Watchdog

Valparaiso, Joint CHAIN/GISELA/EPIKH Grid School for Application Porting, Watchdog The Watchdog is a shell script to be included in the JDL main script. –Some watchdog features:  It starts in background before to run the long term job  The watchdog runs as long as the main job  The main script can control, stop and wait until the watchdog has finished  Easily and highly configurable and customizable  The watchdog does not compromise the CPU power of the WN Amga LFC+SE Commands or Scripts JDL WN File snapshots WN UI

Valparaiso, Joint CHAIN/GISELA/EPIKH Grid School for Application Porting, Using the Watchdog Download Watchdog from GISELA forge: eela.eu/frs/?group_id=103https://forge.eu- eela.eu/frs/?group_id=103 Read the documentation in the wiki site: See the code samples distributed inside the packages: script.jdl script.sh Add Watchdog capabilities to your application! Contact: Riccardo Bruno (mail:

Valparaiso, Joint CHAIN/GISELA/EPIKH Grid School for Application Porting, Using the Watchdog Configure the Watchdog setting the watchdog.conf file (see the wiki); Applications using Watchdog MUST include the files watchdog.sh, watchdog.ctrl, watchdog.conf. [ Type = "Job"; JobType = "Normal"; Executable = "/bin/bash"; StdOutput = "file.out"; StdError = "file.err"; InputSandbox = {"watchdog.sh","watchdog.ctrl","watchdog.co nf",“MyScript.sh"}; OutputSandbox = {“MyApplication.out","MyApplication.err","wat chdog.log”}; Arguments = "script.sh"; ] MY JOB #!/bin/sh … # prepare and start the watchdog PATH=${VO_PROD_VO_EU_EELA_EU_SW_DIR}/ :${PATH} chmod +x watchdog.sh chmod +x watchdog.ctrl chmod +x watchdog.conf./watchdog.ctrl start... #run application … #stop and wait the watchdog completes./watchdog.ctrl stop MyScript.sh

Valparaiso, Joint CHAIN/GISELA/EPIKH Grid School for Application Porting, LCG-REC The new tools have the following prefix: 'lcg-rec-*' to enphatize the recursive interaction with the calalog/SE. These tools are described briefly below: lcg-rec-cr - Exactly like the corresponding lcg-cr command, this tool copy and register a whole directory structure from a local filesystem in the UI to the file catalog. The same file hierarchy will be kept in the catalog and the related file contents will be stored on a storage element. lcg-rec-cp - Exactly like the corresponding lcg-cp command, this tool copy from catalog a directory structure downloading the related file content from the storage elements. The same file hierarchy will be kept in the local filesystem. lcg-rec-del - Exactly like the corresponding lcg-del command, this tool removes a entire directory structure from the catalog and removes each replica of related file from the storage elements. lcg-rec-rep - Exaclty like the corresponding lcg-rep command, this tool adds recursively a replica to all files of a directory.

Valparaiso, Joint CHAIN/GISELA/EPIKH Grid School for Application Porting, Production opportunistic infrastructure powered by OurGrid OurGrid

Valparaiso, Joint CHAIN/GISELA/EPIKH Grid School for Application Porting, OurGrid Production gateway allowing the service and the opportunistic infrastructure to interoperate

Valparaiso, Joint CHAIN/GISELA/EPIKH Grid School for Application Porting, Thank you very much!