john kewley cclrc daresbury laboratory nw-grid training event 26 th january 2007 growl scripts and...

21
John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science Centre CCLRC Daresbury Laboratory [email protected]

Upload: marvin-weathersbee

Post on 01-Apr-2015

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science

John Kewley

CCLRC Daresbury Laboratory

NW-GRID Training Event

26th January 2007

GROWL Scripts and Web Services

John KewleyGrid Technology Group

E-Science CentreCCLRC Daresbury Laboratory

[email protected]

Page 2: John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science

John Kewley

CCLRC Daresbury Laboratory

NW-GRID Training Event

26th January 2007

GROWLGROWL

Collaborative project (JISC VRE programme) between CCLRC Daresbury Laboratory and the Universities of Cambridge and Lancaster.

Project Objectives: to produce a lightweight client-side Grid connection toolkit.

Due for completion January 2007

Page 3: John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science

John Kewley

CCLRC Daresbury Laboratory

NW-GRID Training Event

26th January 2007

OutlineOutline

1. Background

2. Use of Growl Scripts for job submission

3. Avoiding firewall problems

4. GROWL + Web Services

Page 4: John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science

John Kewley

CCLRC Daresbury Laboratory

NW-GRID Training Event

26th January 2007

GROWLGROWL

GROWL tries to address the three barriers that newcomers find when using the Grid for the first time:

1. Setting up the client-side middleware

2. Handling of certificates

3. Job submission in the presence of firewalls

We have covered the first 2 of these in the previous talk.

Page 5: John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science

John Kewley

CCLRC Daresbury Laboratory

NW-GRID Training Event

26th January 2007

GROWL ScriptsGROWL Scripts

We now have several groups using GROWL scripts to give them an easy way of installing globus middleware on many Linux platforms. Most of these are currently within CCLRC.

CCP1GUI also uses the GROWL Wrapper Scripts which have some advantages over using globus directly.

Page 6: John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science

John Kewley

CCLRC Daresbury Laboratory

NW-GRID Training Event

26th January 2007

What you get with GROWL ScriptsWhat you get with GROWL Scripts

• Certificate helper scripts

– mk-cert

– growl-info, growl-login, growl-logout

• VDT client installation of globus and MyProxy

– grid-proxy-init, grid-proxy-info

– globus-job-submit, globus-job-run

– gsissh, gsiscp, openssl

– myproxy-init, myproxy-info, myproxy-logon

• Growl wrapper scripts

– growl-submit, growl-status, growl-get-output

– growl-sh, growl-cp, growl-mkdir, growl-rm,

– growl-pwd, growl-which, growl-get-jobmanager

Page 7: John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science

John Kewley

CCLRC Daresbury Laboratory

NW-GRID Training Event

26th January 2007

FirstlyFirstly

To add these various commands to your environment, add the following to your .bashrc, .cshrc, .login, .profile or equivalent.

# For /bin/sh or /bin/bash

$ . ~/Growl/setup.sh

# For /bin/csh or /bin/tcsh

$ source ~/Growl/setup.csh

Page 8: John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science

John Kewley

CCLRC Daresbury Laboratory

NW-GRID Training Event

26th January 2007

SecondlySecondly

Before running any globus commands or the GROWL wrapper scripts, you must have a valid local proxy.

$ grid-proxy-initYour identity: /C=UK/O=eScience/OU=CLRC/L=DL/CN=john kewleyEnter GRID pass phrase for this identity: <grid-password>Creating proxy ................................... DoneYour proxy is valid until: Tue Jan 23 05:19:34 2007

Page 9: John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science

John Kewley

CCLRC Daresbury Laboratory

NW-GRID Training Event

26th January 2007

growl-infogrowl-info

growl-info is a wrapper for grid-cert-info, grid-proxy-info and myproxy-info

$ growl-infoCertificate Information (including validity)--------------------------------------------subject= /C=UK/O=eScience/OU=CLRC/L=DL/CN=john kewleynotBefore=Jun 15 16:10:35 2006 GMTnotAfter=Jun 15 16:10:35 2007 GMT

Local proxy certificate(s)--------------------------subject : /C=UK/O=eScience/OU=CLRC/L=DL/CN=john kewleyissuer : /C=UK/O=eScience/OU=CLRC/L=DL/CN=john kewleyidentity : /C=UK/O=eScience/OU=CLRC/L=DL/CN=john kewleytype : Proxy draft (pre-RFC) compliant impersonation proxystrength : 512 bitspath : /tmp/x509up_u13445timeleft : 11:57:19

Page 10: John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science

John Kewley

CCLRC Daresbury Laboratory

NW-GRID Training Event

26th January 2007

Features of GROWL ScriptsFeatures of GROWL Scripts

Grid job submission

• Help with transparency - user shouldn't really need to know

– Machine's jobmanager

– Home directory location

– Location in your path of executable

• Firewall problems minimised

Page 11: John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science

John Kewley

CCLRC Daresbury Laboratory

NW-GRID Training Event

26th January 2007

Running a grid job (1)Running a grid job (1)

$ growl-submit dl1.nw-grid.ac.uk hostnamehttps://dl1.nw-grid.ac.uk:64010/792/116475/

$ growl-status https://dl1.nw-grid.ac.uk:64010/792/116475/PENDING

$ growl-status https://dl1.nw-grid.ac.uk:64010/792/116475/DONE

$ growl-get-output https://dl1.nw-grid.ac.uk:64010/792/116475/comp023.nw-grid.ac.uk

$ growl-submit -c dl1.nw-grid.ac.uk hostname

$ growl-statusPENDING

$ growl-statusDONE

$ growl-get-outputcomp021.nw-grid.ac.uk

Page 12: John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science

John Kewley

CCLRC Daresbury Laboratory

NW-GRID Training Event

26th January 2007

Running a grid job (2)Running a grid job (2)

Advantages of using GROWL wrapper scripts:

growl-submit :

• uses growl-get-jobmanager to obtain default parallel queue, rather than defaulting to jobmanager-fork

• uses growl-which to get full path of executable ensuring it is in your path

growl-get-output :

• uses gsissh to do remote retrieval, avoiding client firewall problem

Page 13: John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science

John Kewley

CCLRC Daresbury Laboratory

NW-GRID Training Event

26th January 2007

Remote filestore manipulationRemote filestore manipulation

Equivalents of many of the standard unix command tools are provided for remote filestore manipulation.

growl-ls : contents of directory

growl-mkdir : (sub)directory creation

growl-rm : file removal

growl-cp : remote file copying, including "3rd party"

growl-which : finds executable in your path

growl-pwd : prints your home directory on the grid resource

growl-sh : gsissh wrapper (using default ports)

They have an additional parameter of the remote resource on which they should run.

Page 14: John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science

John Kewley

CCLRC Daresbury Laboratory

NW-GRID Training Event

26th January 2007

Globus + FirewallsGlobus + Firewalls

Client Grid Resource

globus-job-submit

Results

gsiscp

jobmanager

sshdgsissh /GSI-SSHTerm

globus-job-get_result

qsub

Page 15: John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science

John Kewley

CCLRC Daresbury Laboratory

NW-GRID Training Event

26th January 2007

Globus + FirewallsGlobus + Firewalls

Client Grid Resource

growl-submit

jobmanager

sshd

globus-job-get-outputgrowl-get-output (using gsissh)

Page 16: John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science

John Kewley

CCLRC Daresbury Laboratory

NW-GRID Training Event

26th January 2007

Remote file copying using Remote file copying using growl-cpgrowl-cp

growl-cp can be used to stage and retrieve files. The syntax is the same as that of scp. It can also be used for "3rd party" file transfers

For 3rd party transfers to work, there has to be a route through all firewalls between the 2 remote resources in one direction or the other

$ growl-cp my_input_file.txt dl1.nw-grid.ac.uk:.

$ growl-cp dl1.nw-grid.ac.uk:my_output.txt .

$ growl-cp lv1.nw-grid.ac.uk:my_file.txt dl1.nw-grid.ac.uk:.

Page 17: John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science

John Kewley

CCLRC Daresbury Laboratory

NW-GRID Training Event

26th January 2007

GROWL + Firewalls (3-tier)GROWL + Firewalls (3-tier)

Client GROWL Server Grid Resource

WS I/F

GROWLScripts

WS

sshd

jobmanager

growl-cp

Page 18: John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science

John Kewley

CCLRC Daresbury Laboratory

NW-GRID Training Event

26th January 2007

grid-logingrid-login

If you need to upload your certificate to MyProxy and generate a local proxy, growl-login is provided:

$ grid-proxy-init... <grid-password>

$ myproxy-initYour identity: /C=UK/O=eScience/OU=CLRC/L=DL/CN=john kewleyEnter GRID pass phrase for this identity: <grid-password>...Enter MyProxy pass phrase: <myproxy-pass>Verifying - Enter MyProxy pass phrase: <myproxy-pass>

$ growl-loginPassword to protect MyProxy certificate: <myproxy-pass>Enter GRID pass phrase for this id: <grid-password>

Page 19: John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science

John Kewley

CCLRC Daresbury Laboratory

NW-GRID Training Event

26th January 2007

GROWL + Firewalls (3-tier)GROWL + Firewalls (3-tier)

Client GROWL Server Grid Resource

WS I/F

GROWLScripts

WS

growl-submit

sshd

jobmanager

growl-get-output growl-cp

Page 20: John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science

John Kewley

CCLRC Daresbury Laboratory

NW-GRID Training Event

26th January 2007

GROWL Web ServicesGROWL Web Services

• Analogous interface to those we have seen on previous slides.

– Remote file manipulation

– Job submission

– Interfacing to SRB

• Wrappers being developed for access from R, Fortran, C and C++

• Users at both Lancaster and Bristol using GROWL Web Services, although not yet available for widespread release

Page 21: John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science

John Kewley

CCLRC Daresbury Laboratory

NW-GRID Training Event

26th January 2007

GROWL Web SiteGROWL Web Site

Contains papers, presentations and other information.

Project Web site is in need of updating (project comes to an end this month). User manual / tutorials to be added shortly.

http://www.growl.org.uk/