How to set up a CERN OpenStack instance with AFS and GRID access

Create a VM instace

Log in as root using the keypair

Install the packages for GRID to work

yum install wget 
yum-config-manager --add-repo http://linuxsoft.cern.ch/wlcg/wlcg-sl6.repo
wget http://linuxsoft.cern.ch/wlcg/RPM-GPG-KEY-wlcg -P /etc/pki/rpm-gpg
yum install wlcg-repo
yum install voms-clients
yum-config-manager --add-repo http://linuxsoft.cern.ch/egi/production/cas/1/current
wget http://repository.egi.eu/sw/production/cas/1/current/repo-files/egi-trustanchors.repo -O /etc/yum.repos.d/egi-trustanchors.repo
yum install CERN-CA-certs ca_CERN-GridCA ca_CERN-Root ca_CERN-Root-2
yum install wlcg-voms-lhcb

Test the setup

voms-proxy-init -voms lhcb
SetupProject Bender
echo "ls()" | bender "root://xrootd-lhcb.cr.cnaf.infn.it//storage/gpfs_lhcb/lhcb/disk/LHCb/Collision15/TURBO.MDST/00047765/0000/00047765_00001241_1.turbo.mdst"
You should see Bender output with the event fields like this:
/Event/DAQ                                                         DataObject 
/Event/DAQ/RawEvent                                                LHCb::RawEvent 
/Event/DAQ/ODIN                                                    LHCb::ODIN 
/Event/Turbo                                                 
/Event/Rec                                                         DataObject 
Or, if something happens with this particular site, FAILURE in the Ipython section with IODataManager       ERROR Error: connectDataIO> Cannot connect to database in the log above.

Setup tmux and k5reath for running background tasks with AFS access

-- NikitaKazeev - 2016-02-08
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2016-02-21 - NikitaKazeev
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LHCb All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback