CoEPP RC
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cloud:image_cernvm_2.5.1 [2013/07/25 15:19]
scrosby
cloud:image_cernvm_2.5.1 [2013/07/25 15:31]
scrosby
Line 344: Line 344:
 </​code>​ </​code>​
  
 +===== Rucio pilots =====
  
 +Default CERNVM was not working with Rucio pilots. This was caused by Python not being able to import the '​hashlib'​ module. On regular SL5, Python2.4 also doesn'​t have the '​hashlib'​ module, but '​md5'​ was used as a fallback. '​md5'​ wasn't working on the CERNVM image either, so '​hashlib'​ was installed.
 +
 +Sean compiled hashlib and copied the files into /​usr/​lib64/​python2.4/​site-packages
 +
 +Hashlib was downloaded from here - [[https://​pypi.python.org/​pypi/​hashlib/​20081119]]. The file downloaded was hashlib-20081119.zip
 +
 +<​code>​
 +unzip hashlib-20081119.zip
 +cd hashlib-20081119
 +python setup.py build
 +python setup.py install
 +</​code>​
 +
 +This installs into /​usr/​lib64/​python2.4/​site-packages:​
 +
 +<​code>​
 +_md5.so
 +_sha.so
 +_sha256.so
 +_sha512.so
 +hashlib.py
 +hashlib.pyc
 +</​code>​
 +
 +You should now be able to import the module hashlib into python
 +
 +<​code>​
 +[root@vm-118-138-241-196 build]# python
 +Python 2.4.3 (#1, Sep 20 2011, 06:​04:​31) ​
 +[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2
 +Type "​help",​ "​copyright",​ "​credits"​ or "​license"​ for more information.
 +>>>​ from hashlib import md5
 +>>> ​
 +</​code>​
  
 ===== CVMFS Configuration ===== ===== CVMFS Configuration =====
Line 350: Line 385:
 $ vi /​mnt/​etc/​cvmfs/​default.local $ vi /​mnt/​etc/​cvmfs/​default.local
 CVMFS_REPOSITORIES=atlas.cern.ch,​atlas-condb.cern.ch,​grid.cern.ch CVMFS_REPOSITORIES=atlas.cern.ch,​atlas-condb.cern.ch,​grid.cern.ch
-CVMFS_QUOTA_LIMIT=3000+CVMFS_QUOTA_LIMIT=20000
 CVMFS_HTTP_PROXY="​http://​rcsquid1.atlas.unimelb.edu.au:​3128|http://​rcsquid2.atlas.unimelb.edu.au:​3128;​http://​cernvm-webfs.atlas-canada.ca:​3128"​ CVMFS_HTTP_PROXY="​http://​rcsquid1.atlas.unimelb.edu.au:​3128|http://​rcsquid2.atlas.unimelb.edu.au:​3128;​http://​cernvm-webfs.atlas-canada.ca:​3128"​
 +CVMFS_CACHE_BASE=/​scratch/​cvmfs
 $ vi /​mnt/​etc/​cvmfs/​domain.d/​cern.ch.local $ vi /​mnt/​etc/​cvmfs/​domain.d/​cern.ch.local
 CVMFS_SERVER_URL="​http://​cvmfs.fnal.gov:​8000/​opt/​@org@;​http://​cvmfs.racf.bnl.gov:​8000/​opt/​@org@;​http://​cernvmfs.gridpp.rl.ac.uk:​8000/​opt/​@org@;​http://​cvmfs-stratum-one.cern.ch:​8000/​opt/​@org@"​ CVMFS_SERVER_URL="​http://​cvmfs.fnal.gov:​8000/​opt/​@org@;​http://​cvmfs.racf.bnl.gov:​8000/​opt/​@org@;​http://​cernvmfs.gridpp.rl.ac.uk:​8000/​opt/​@org@;​http://​cvmfs-stratum-one.cern.ch:​8000/​opt/​@org@"​
Line 432: Line 468:
 </​code>​ </​code>​
  
-===== Modify ​ATLAS_SITE_NAME in .bashrc ===== +===== Modify .bashrc ​for users ===== 
-  * Modify the file **.bashrc** under each atlas user's home directory (eg. /mnt/​home/​atlas01/​.bashrc); ​change the value of directive ​ATLAS_SITE_NAME ​from **FutureGrid** to **Australia-ATLAS**.+  * Modify the file **.bashrc** under each atlas user's home directory (eg. /​home/​atlas01/​.bashrc);​ 
 + 
 +<​code>​ 
 +# Workaround for condor not setting $HOME. 
 +# voms-proxy-info requires this. 
 +if [[ -z "​$HOME"​ ]] ; then 
 +  export HOME=/​home/​`whoami` 
 +fi 
 + 
 +## Set up grid environment:​ 
 +## Option 1: gLite 3.1 in CernVM 
 +#. /​opt/​external/​etc/​profile.d/​grid-env.sh 
 +## Option 2: gLite 3.2 in AtlasLocalRootBase 
 +shopt -s expand_aliases 
 +export ATLAS_LOCAL_ROOT_BASE=/​cvmfs/​atlas.cern.ch/​repo/​ATLASLocalRootBase 
 +alias setupATLAS='​source ${ATLAS_LOCAL_ROOT_BASE}/​user/​atlasLocalSetup.sh'​ 
 +setupATLAS --quiet 
 +localSetupEmi 
 +# Fix for using AtlasLocalRootBase with a kit 
 +unset  AtlasSetupSite 
 +rm ~/.asetup 
 + 
 +# Site-specific variables (e.g. Frontier and Squid servers) 
 +# are set based on ATLAS_SITE_NAME
 +export ATLAS_SITE_NAME=Australia-NECTAR 
 +# This auto-setup is only temporarily needed, and will soon become automatic 
 +/​cvmfs/​atlas.cern.ch/​repo/​sw/​local/​bin/​auto-setup 
 +</​code>​ 
 + 
 +   * Major changes are the ATLAS_SITE_NAME,​ and the change to localSetupEmi instead of localSetupGlite
  
  
cloud/image_cernvm_2.5.1.txt · Last modified: 2013/07/25 15:31 by scrosby
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki