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]
cloud:image_cernvm_2.5.1 [2013/07/25 15:31]
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/​hashlib/​20081119]]. The file downloaded was
 +cd hashlib-20081119
 +python build
 +python install
 +This installs into /​usr/​lib64/​python2.4/​site-packages:​
 +You should now be able to import the module hashlib into python
 +[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
 +>>> ​
 ===== CVMFS Configuration ===== ===== CVMFS Configuration =====
Line 350: Line 385:
 $ vi /​mnt/​etc/​cvmfs/​default.local $ vi /​mnt/​etc/​cvmfs/​default.local,​,​,​,​
 CVMFS_HTTP_PROXY="​http://​​3128|http://​​3128;​http://​​3128"​ CVMFS_HTTP_PROXY="​http://​​3128|http://​​3128;​http://​​3128"​
 $ vi /​mnt/​etc/​cvmfs/​domain.d/​ $ vi /​mnt/​etc/​cvmfs/​domain.d/​
 CVMFS_SERVER_URL="​http://​​8000/​opt/​@org@;​http://​​8000/​opt/​@org@;​http://​​8000/​opt/​@org@;​http://​​8000/​opt/​@org@"​ CVMFS_SERVER_URL="​http://​​8000/​opt/​@org@;​http://​​8000/​opt/​@org@;​http://​​8000/​opt/​@org@;​http://​​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);​ 
 +# Workaround for condor not setting $HOME. 
 +# voms-proxy-info requires this. 
 +if [[ -z "​$HOME"​ ]] ; then 
 +  export HOME=/​home/​`whoami` 
 +## Set up grid environment:​ 
 +## Option 1: gLite 3.1 in CernVM 
 +#. /​opt/​external/​etc/​profile.d/​ 
 +## Option 2: gLite 3.2 in AtlasLocalRootBase 
 +shopt -s expand_aliases 
 +export ATLAS_LOCAL_ROOT_BASE=/​cvmfs/​​repo/​ATLASLocalRootBase 
 +alias setupATLAS='​source ${ATLAS_LOCAL_ROOT_BASE}/​user/​'​ 
 +setupATLAS --quiet 
 +# 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 
 +   * 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