Enabling Grids for E-sciencE www.eu-egee.org Sofia, 17 March 2009 INFSO-RI-031688 Introduction to Grid Computing, EGEE and Bulgarian Grid Initiatives –

Slides:



Advertisements
Similar presentations
It’s not about security... it’s about access! Grid Security Pieter van Beek.
Advertisements

The Grid Constantinos Kourouyiannis Ξ Architecture Group.
Riccardo Bruno, INFN.CT Sevilla, 10-14/09/2007 GENIUS Exercises.
EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE Tutorial Getting started with GILDA.
EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks Job Submission Fokke Dijkstra RuG/SARA Grid.
Basic Grid Job Submission Alessandra Forti 28 March 2006.
GLite authentication and authorization Discipline: Grid Computing, 07/08-2 Practical classes Inês Dutra, DCC/FCUP.
Enabling Grids for E-sciencE gLite training at Sinaia '06 Victor Penso Kilian Schwarz GSI Darmstadt Germany.
INFSO-RI Enabling Grids for E-sciencE Practicals on VOMS and MyProxy Emidio Giorgio INFN Retreat between GILDA and ESR VO, Bratislava,
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Luciano Díaz ICN-UNAM Based on Domenico.
Enabling Grids for E-sciencE EGEE-II INFSO-RI BG induction to GRID Computing and EGEE project – Sofia, 2006 Practical: Porting applications.
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.
GRID Computing: Ifrastructure, Development and Usage in Bulgaria M. Dechev, G. Petrov, E. Atanassov.
Nadia LAJILI User Interface User Interface 4 Février 2002.
INFSO-RI Enabling Grids for E-sciencE Workload Management System Mike Mineter
E-science grid facility for Europe and Latin America E2GRIS1 Raúl Priego Martínez – CETA-CIEMAT (Spain)‏ Itacuruça (Brazil), 2-15 November.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America MyProxy server installation Emidio Giorgio.
EGEE-III INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks gLite job submission Fokke Dijkstra Donald.
Enabling Grids for E-sciencE EGEE-II INFSO-RI Practical: Porting applications to the GILDA grid Slides from Vladimir Dimitrov, IPP-BAS.
Enabling Grids for E-sciencE EGEE-II INFSO-RI Introduction to Grid Computing, EGEE and Bulgarian Grid Initiatives Plovdiv, 2006.
EGEE-II INFSO-RI Enabling Grids for E-sciencE Using gLite API Vladimir Dimitrov IPP-BAS “gLite middleware Application Developers.
E-infrastructure shared between Europe and Latin America Security Hands-on Christian Grunfeld, UNLP 8th EELA Tutorial, La Plata, 11/12-12/12,2006.
EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks Introduction to GILDA and gaining access.
INFSO-RI Enabling Grids for E-sciencE GILDA Practicals : Security systems GILDA Tutors Singapore, 1st South East Asia Forum -- EGEE.
E-infrastructure shared between Europe and Latin America FP6−2004−Infrastructures−6-SSA Hands-on on security Pedro Rausch IF - UFRJ.
EGEE-III INFSO-RI Enabling Grids for E-sciencE Feb. 06, Introduction to High Performance and Grid Computing Faculty of Sciences,
EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks Job Submission Fokke Dijkstra RuG/SARA Grid.
EGEE-III INFSO-RI Enabling Grids for E-sciencE Apr. 25, Grid Computing Hands On Training for Users Faculty of Sciences, University.
E-NMR (RI ) is funded by the European Commission under the Research Infrastructure Programme Introduction to e-NMR hands-on e-NMR gLite.
EGEE-II INFSO-RI Enabling Grids for E-sciencE The GILDA training infrastructure.
Hands-on security Angelines Alberto Morillas Ciemat.
EGEE is a project funded by the European Union under contract IST Grid proxy and MyProxy Roberto Barbera Univ. of Catania and INFN SEE-GRID.
INFSO-RI Enabling Grids for E-sciencE Αthanasia Asiki Computing Systems Laboratory, National Technical.
4th EELA TUTORIAL - USERS AND SYSTEM ADMINISTRATORS E-infrastructure shared between Europe and Latin America Security Hands-on Vanessa.
Enabling Grids for E-sciencE Workload Management System on gLite middleware - commands Matthieu Reichstadt CNRS/IN2P3 ACGRID School, Hanoi.
Tier 3 Status at Panjab V. Bhatnagar, S. Gautam India-CMS Meeting, July 20-21, 2007 BARC, Mumbai Centre of Advanced Study in Physics, Panjab University,
INFSO-RI Enabling Grids for E-sciencE Job Submission Tutorial (material from INFN Catania)
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Practicals on Security Miguel Cárdenas Montes.
E-infrastructure shared between Europe and Latin America Security Hands-on Alexandre Duarte CERN Fifth EELA Tutorial Santiago, 06/09-07/09,2006.
EGEE-II INFSO-RI Enabling Grids for E-sciencE MyProxy - a brief introduction.
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”
INFSO-RI Enabling Grids for E-sciencE GILDA Praticals Giuseppe La Rocca INFN – Catania gLite Tutorial at the EGEE User Forum CERN.
Further aspects of EGEE middleware components INFN, Catania EGEE is funded by the European Union under contract IST
INFSO-RI Enabling Grids for E-sciencE VOMS & MyProxy interaction Emidio Giorgio INFN NA4 Generic Applications Meeting 10 January.
EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks WMS tricks & tips – further scripting Giuseppe.
EGEE-II INFSO-RI Enabling Grids for E-sciencE Practical using WMProxy advanced job submission.
User Interface UI TP: UI User Interface installation & configuration.
LCG2 Tutorial Viet Tran Institute of Informatics Slovakia.
Hands-on security Carlos Fuentes RedIRIS Madrid,26 – 30 de Octubre de 2008.
Hands on Security, Authentication and Authorization Virginia Martín-Rubio Pascual RedIRIS/Red.es Curso Grid y e-Ciencia.
EGI-InSPIRE RI Grid Training for Power Users EGI-InSPIRE N G I A E G I S Grid Training for Power Users Institute of Physics Belgrade.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) 马兰馨 IHEP, CAS Hands on gLite Security.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) UI Installation and Configuration Dong Xu IHEP,
Enabling Grids for E-sciencE gLite security pratical tutorial Dario Russo INFN Catania Catania,
GRID commands lines Original presentation from David Bouvet CC/IN2P3/CNRS.
Introduction to Computing Element HsiKai Wang Academia Sinica Grid Computing Center, Taiwan.
Enabling Grids for E-sciencE Work Load Management & Simple Job Submission Practical Shu-Ting Liao APROC, ASGC EGEE Tutorial.
EGEE is a project funded by the European Union under contract IST Job Submission Giuseppe La Rocca EGEE NA4 Generic Applications INFN Catania.
EGEE is a project funded by the European Union under contract IST Grid proxy and MyProxy Giuseppe La Rocca EGEE NA4 Generic Applications GENIUS/GILDA.
MyProxy Server Installation
Practicals on VOMS and MyProxy
Corso di Calcolo Parallelo Grid Computing
Long term job submission and monitoring uing grid services
Certificates Usage and Simple Job Submission
Certificates Usage and Simple Job Submission
Certificates Usage and Simple Job Submission
gLite Job Management Christos Theodosiou
GENIUS Grid portal Hands on
Presentation transcript:

Enabling Grids for E-sciencE Sofia, 17 March 2009 INFSO-RI Introduction to Grid Computing, EGEE and Bulgarian Grid Initiatives – Sofia, Certificates Usage and Simple Job Submission Rousse, 07 July 2009 Gilda Tutor Minor changes and adaptation for Bulgarian users by Plamena Nenkova -

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July Outline VOMS proxy usage MyProxy Usage Simple Job Submission

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July How to access the BG07-EDU User Interface User Interface: ui.grid.acad.bg Login : sofiaXX where XX=01,..18 Passwd : verila91 PEM PASSPHRASE (for gilda only) : SOFIA

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July Preliminary :.globus directory.globus directory contains your personal public / private keys Pay attention to permissions – userkey.pem contains your private key, and must be readable just by yourself (400) – usercert.pem contains your public key, which should be readable also from outside (644) ~]$ ls -l.globus total 24 -rw-r--r-- 1 plamena users 1505 Jun usercert.pem -rw plamena users 1090 Jun usercert_request.pem -r plamena users 1751 Jun userkey.pem

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July Main options -voms  command syntax is :/ /group for group specify (default none)  command syntax is :/ /Role= for Role choice (default none) -valid x:y, create a proxy valid for x hours and y minutes -vomslife x, create a proxy with AC valid for x hours (max 24 h) -cert Non-standard location of user certificate -key Non-standard location of user key -out Non-standard location of new proxy cert -userconf Non-standard location for user-defined voms server addresses Default location for voms server address file is /opt/glite/etc/vomses or $HOME/.glite/vomses. Syntax : “vo-nickname" “voms server FQDN" “port“ “voms server \ certificate subject" “vo name“ Parameters for vomses are usually provided by VOs manager voms-proxy-init : options voms-proxy-init –-voms bg-edu.grid.acad.bg voms-proxy-init --voms bg-edu.grid.acad.bg:/bg- edu.grid.acad.bg

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July Verify your credentials Exercise 1 : create a voms proxy : then verify obtained credentials with voms-proxy-info –Main options : -all prints all proxy options -file specifies a different location of proxy file voms-proxy-init –-voms bg-edu.grid.acad.bg voms-proxy-info -all

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July VOMS proxy info ~]$ voms-proxy-info -all subject : /DC=bg/DC=acad/O=people/O=IPP-BAS/OU=DDSN/CN=Plamena S. Nenkova/CN=proxy issuer : /DC=bg/DC=acad/O=people/O=IPP-BAS/OU=DDSN/CN=Plamena S. Nenkova identity : /DC=bg/DC=acad/O=people/O=IPP-BAS/OU=DDSN/CN=Plamena S. Nenkova type : proxy strength : 1024 bits path : /tmp/x509up_u502 timeleft : 11:59:50 === VO bg-edu.grid.acad.bg extension information === VO : bg-edu.grid.acad.bg subject : /DC=bg/DC=acad/O=people/O=IPP-BAS/OU=DDSN/CN=Plamena S. Nenkova issuer : /DC=bg/DC=acad/O=hosts/O=IPP- BAS/OU=DPA/CN=voms.ipp.acad.bg attribute : /bg-edu.grid.acad.bg/Role=NULL/Capability=NULL timeleft : 11:59:49 uri : voms.ipp.acad.bg:15002 Standard globus attributes Voms extensions

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July Long term proxy : MyProxy myproxy server: –myproxy-init  Allows to create and store a long term proxy certificate: –myproxy-info  Get information about stored long living proxy –myproxy-get-delegation  Get a new proxy from the MyProxy server –myproxy-destroy –Check out them with myproxy-xxx --help option A dedicated service on the RB can renew automatically the proxy –contacting the myproxy server

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July myproxy-init ~]$ myproxy-init -s myproxy.ipp.acad.bg Your identity: /DC=bg/DC=acad/O=people/O=IPP- BAS/OU=DDSN/CN=Plamena S. Nenkova Enter GRID pass phrase for this identity: Creating proxy Done Proxy Verify OK Your proxy is valid until: Tue Jul 14 09:16: Enter MyProxy pass phrase: Verifying - Enter MyProxy pass phrase: A proxy valid for 168 hours (7.0 days) for user plamena now exists on myproxy.ipp.acad.bg. Principal options -c hours specifies lifetime of stored credentials -t hours specifies the maximum lifetime of credentials when retrieved -s specifies the myproxy server where to store credentials -d stores credential with the distinguished name in proxy, instead of user name (mandatory for some data management services and proxy renewal) For proxy renewal it’s also mandatory –n (no passphrase). You’ve to specify also subject of principals that can renew a delegation (-R subject, or -A for any principal)

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July myproxy-info Useful to retrieve info on stored credentials Need local credentials to be performed If credentials have been initialized with –d switch, you have also to specify it there ~]$ myproxy-info -s myproxy.ipp.acad.bg username: plamena owner: /DC=bg/DC=acad/O=people/O=IPP- BAS/OU=DDSN/CN=Plamena S. Nenkova timeleft: 167:58:29 (7.0 days)

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July myproxy-get-delegation This command is used to retrieve a delegation from a long lived proxy stored on myproxy server It is independent by the machine ! You don’t need to have your certificate on board If credentials have been initialized with –d switch, you have to specify it also in myproxy-get-delegation request ~]$ myproxy-get-delegation -s myproxy.ipp.acad.bg Enter MyProxy pass phrase: A credential has been received for user plamena in /tmp/x509up_u502.

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July myproxy-destroy Delete, if existing, the long lived credentials on the specified myproxy server test]$ myproxy-destroy -s myproxy.ipp.acad.bg Default MyProxy credential for user plamena was successfully removed.

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July Exercise Exercise 2 (optional) –Create a myproxy on the server myproxy.ipp.acad.bg, with lifetime set to 96 –Visualize information on that –Create a myproxy with –d option –Which differences you note ? –Destroy both

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July Automatic Proxy Renewal test]$ myproxy-init -s myproxy.ipp.acad.bg -d -n -R "wms.ipp.acad.bg" -t 12 -c 160 Your identity: /DC=bg/DC=acad/O=people/O=IPP-BAS/OU=DDSN/CN=Plamena S. Nenkova Enter GRID pass phrase for this identity: Creating proxy Done Proxy Verify OK Your proxy is valid until: Tue Jul 14 01:31: A proxy valid for 160 hours (6.7 days) for user /DC=bg/DC=acad/O=people/O=IPP-BAS/OU=DDSN/CN=Plamena S. Nenkova now exists on myproxy.ipp.acad.bg. test]$ myproxy-info -s myproxy.ipp.acad.bg -d username: /DC=bg/DC=acad/O=people/O=IPP-BAS/OU=DDSN/CN=Plamena S. Nenkova owner: /DC=bg/DC=acad/O=people/O=IPP-BAS/OU=DDSN/CN=Plamena S. Nenkova renewal policy: */CN=wms.ipp.acad.bg timeleft: 159:58:34 (6.7 days)

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July Workload Management System In the glite middleware a user can submit and cancel jobs, query their status, and retrieve their output. These tasks go under the name of Workload Management. There are two different User Interfaces to accomplish these tasks. One is the Command Line Interface and the other is the Graphical User Interface. Introduction to Job submission

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July Exercize Exercize 3 Simple Job Submit Crete a simple job Submit it to the GRID for execution Check the status of the job Retrieve output of the job

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July Create or modify hello.jdl with following contents : Executable = "hello.sh"; StdError = "test.err"; StdOutput = "test.out"; InputSandbox = {"hello.sh"}; OutputSandbox = {"test.err","test.out"}; Create or modify hello.sh with following contents : #!/bin/sh date hostname echo "*** Hello World***" ls -al echo "End." Create a simple job

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July Create (download) files Just to speed up the exercise–the files can be obtained like this: cd ~ mkdir test cd test wget wget Make hello.sh script executable with chmod +x hello.sh

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July Before actually submitting the job, it is possible to see which CEs are eligible to run a job specified by a given JDL file using the command $ glite-wms-job-list-match -a hello.jdl Connecting to the service ================================================================= COMPUTING ELEMENT IDs LIST The following CE(s) matching your job requirements have been found: *CEId* - ce.ngcc.acad.bg:2119/jobmanager-pbs-ngedu - ce02.grid.acad.bg:2119/jobmanager-pbs-ngedu ================================================================= Command Line Interface (cont.)

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July Command Line Interface Job Submission – Perform the job submission to the Grid. $ glite-wms-job-submit [options] – where is a file containing the job description, usually with extension.jdl. --vo : perform submission with a different VO than the UI default one. --output, -o save jobId on a file. --resource, -r specify the resource for execution. --nomsgi neither message nor errors on the stdout will be displayed.

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July $ glite-wms-job-submit -o test.id -a hello.jdl $ glite-wms-job-submit -o test.id -a -r ce- edu.grid.acad.bg:2119/jobmanager-pbs-gilda hello.jdl If the request has been correctly submitted this is the tipical output that you can get: Connecting to the service ====================== glite-wms-job-submit Success ====================== The job has been successfully submitted to the WMProxy Your job identifier is: The job identifier has been saved in the following file: /home/plamena/test/test.id ========================================================================== In case of failure, an error message will be displayed instead, and an exit status different form zero will be retured. Command Line Interface (cont.)

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July If the command returns the following error message: **** Error: API_NATIVE_ERROR **** Error while calling the "NSClient::multi" native api AuthenticationException: Failed to establish security context... **** Error: UI_NO_NS_CONTACT **** Unable to contact any Network Server it means that there are authentication problems between the UI and the Network Server (check your proxy or contact the site administrator). Command Line Interface (cont.)

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July After a job is submitted, it is possible to see its status using the glite-job-status command. $ glite-wms-job-status -i test.id ************************************************************* BOOKKEEPING INFORMATION: Status info for the Job : vuXMBw Current Status: Running Status Reason: unavailable Destination: ce-edu.grid.acad.bg:2119/jobmanager-pbs-ngedu Submitted: Tue Jul 7 09:38: EEST ************************************************************* Command Line Interface (cont.)

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July More information on glite-wms-job-status The option -i can be used to specify a file with a list of job identifiers (saved previously with the -o option of glite-job-submit). glite-wms-job-status -i test.id : 2 : 3 : 4 : 5 : 6 : a : all q : quit Choose one or more jobId(s) in the list - [1-6]all:6 If the --all option is used instead, the status of all the jobs owned by the user submitting the command is retrieved. Command Line Interface (cont.)

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July A job can be canceled before it ends using the command glite-job-cancel. glite-wms-job-cancel –i test.id Are you sure you want to remove specified job(s) [y/n]y : y Connecting to the service ================== glite-wms-job-cancel Success =========================== The cancellation request has been successfully submitted for the following job(s): - ===================================================================== Command Line Interface (cont.)

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July After the job has finished (it reaches the DONE status), its output can be copied to the UI $ glite-wms-job-output -i test.id --dir outdir Connecting to the service ================================================================================ JOB GET OUTPUT OUTCOME Output sandbox files for the job: have been successfully retrieved and stored in the directory: /home/plamena/test/outdir ================================================================================ By default, the output is stored under /tmp, but it is possible to specify in which directory to save the output using the --dir option. Command Line Interface (cont.)

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July Check the output files ls –la cd outdir cat test.out Exercise Job Submit (cont.) If the proxy is not necessary anymore consider destroying it ! voms-proxy-destroy

Enabling Grids for E-sciencE INFSO-RI Sofia, 07 July Questions…