voodoo D 0 on EDG Get certificate certificate
- Slides: 11
voodoo D 0 on EDG
Get certificate • certificate. nikhef. nl • Organization nikhef ? • Open ssl necessary on dors?
Install mcp 11 • Make tarballs of – mcc-dist – mc_runjob • Make rpm of mcc-dist • LBCG mcc-dist • Install mc_runjob on user interface – mc_runjob checks existence of card file
mc_runjob (1) • • • Runs on user interface Generates directory structure Tars d/s Puts d/s in sandbox Submits job to grid
mc_runjob (2) • Batch job – Unpacks tar file – Executes mcc – Stores output in compute element
Useful commands • • grid-proxy-init grid-proxy-info –all dg-job-submit dg-job-status dg-job-get-output dg-job-cancel dg-job-list-match
• dg-job-submit d 0. jdl • dg-job-get-output https: //lxshare 0382. cern. ch: 7846/192. 16. 186. 233/ 135912320218356? lxshare 0382. cern. ch: 7771 • cp /tmp/135912320218356/*.
Executable = "/bin/sh"; Std. Output = "d 0 mcc. out"; Std. Error = "d 0 mcc. err"; Input. Sandbox = {"submit", "macro"}; Output. Sandbox = {"d 0 mcc. err", "d 0 mcc. out"}; Arguments = "submit macro"; Requirements = Member(other. Run. Time. Environment, "D 0 MCC-0. 1 -4"); submit D 0. jdl #!/bin/sh macro=$1 pwd=`pwd` cd /d 0/mcc-dist. mcc_dist_setup. sh cd $pwd dir=/home/willem/mc_runjob/py_script python $dir/Linker. py script=$macro
Save. On. Make attach samglobal cfg samglobal define string Job. Name Request-184 cfg samglobal define int Request. ID 184 cfg samglobal define string Destination. Dir /home/dzero 002/local/dest cfg samglobal define string Current. Dir /home/dzero 002/local/curr cfg samglobal define string Phase mcp 10 cfg samglobal define string Origin. Name nikhef cfg samglobal define string Facility. Name testbed cfg samglobal define string Produced. By. Name Willem van Leeuwen cfg samglobal define string Group. Name mcc 99 attach pythia cfg pythia define string Cardfile. Dir np cfg pythia define string Cardfile. Version v 00 -03 -43 cfg pythia define float Collision. Energy 1960. 0 cfg pythia define string Production qcd cfg pythia define string Decay incl cfg pythia define string Generator pythia cfg pythia define string D 0 Release p 10. 15. 03 cfg pythia define int Use. Maxopt 1 cfg pythia define float Pt. Gt 40. cfg pythia define int Num. Records 2 macro attach runjob_testbed repeat 1 reset chain cfg pythia make seeds make job save print script cfg runjob_testbed run end return
class Run. Job_testbed(Run. Job_batch) : def __init__(self, name=None) : Run. Job_batch. __init__(self, name) self. my. Type="runjob_testbed" def Run(self) : self. jobname = self. linker. Current. Job() self. jobnaam = string. splitfields(self. jobname, '/')[-1] comm = 'chmod +x ' + self. jobname commands. getoutput(comm) if self. tdconf['Run. Option'] == 'Run. In. Background' : Run. Job_batch. Run(self) else : bq = self. tdconf['Batch. Queue'] dirn = os. path. dirname(self. jobname) print dirn comm = 'sh ' + self. jobnaam + ' `pwd`'
self. batch_file=open(dirn+'/batch', 'w') self. batch_file. write('#!/bin/shn') self. batch_file. write('cd /d 0/mcc-distn') self. batch_file. write('. mcc_dist_setup. shn') self. batch_file. write('cd '+dirn+'n') self. batch_file. write('export PATH=`pwd`: $PATH n') self. batch_file. write(comm+' > logn') self. batch_file. close() runcommand('cd ' + dirn + ' ; sh. /batch')