TWiki> LCG Web>LCGGridDeployment>EticsNmiFramework (revision 2)EditAttachPDF

Submitting edg-tests via NMI (by Matvey Sapunov):

1) Set X509_USER_PROXY i.e. "export X509_USER_PROXY=path_to_file_with_your_proxy".

2) Download and install user space UI. For details look at this page, section "UI Install". Just copy-past code and change GLITE_ROOT variable if you want.

3) Download task-specific RPM(s) and install it using recipe from the same page, section "Local APT Repository". Again, just copy-past code and change package name(s).

4) Set LD_LIBRARY_PATH variable. As far as you install UI in non standard location, system doesn't know where to get shared libraries for grid specific programs. So in my case I set it like "export LD_LIBRARY_PATH=$GLITE_ROOT/opt/globus/lib".

5) Then, you should set path to grid-specific executables. Just set PATH variable as "export PATH=$PATH:$GLITE_ROOT/opt/globus/bin/:$GLITE_ROOT/opt/edg/bin/" 6) UI need to read appropriate CA, for doing this you need to setup variable X509_CERT_DIR, like "export X509_CERT_DIR=$GLITE_ROOT/etc/grid-security/certificates"

7) After defining all variables just simply run your command with or without arguments.

8) For the time being, don't forget to tar results you get "tar czvf results.tar.gz *"

Code example:

#!/bin/bash
export PATH=$PATH:$PWD/bin
export X509_USER_PROXY=$PWD/my_proxy
echo "----- Try to get UI -----"
GLITE_ROOT=/tmp/glite-ui
rm -rf $GLITE_ROOT
mkdir $GLITE_ROOT
wget --no-check-certificate https://twiki.cern.ch/twiki/pub/EGEE/DMUserspaceInstall/glite-userspace-installer-1.5.0.shar -O glite-userspace-installer-1.5.0.shar
echo "----- Try to install UI ---"
bash glite-userspace-installer-1.5.0.shar
cd glite-userspace-installer-1.5.0
export GLITE_APT_REPOSITORY='rpm http://glitesoft.cern.ch/EGEE/gLite/APT/R1.4/ rhel30 externals Release1.4 updates'
./glite-userspace-install.sh $GLITE_ROOT
bash <<EOF
source $GLITE_ROOT/root/env_settings
glite-userspace-apt-get update
glite-userspace-apt-get install --yes glite-ui-config
EOF
echo "----- Try to get&install specific RPM(s) -----"
mkdir -p /tmp/localrepo/RPMS.mine
wget http://gridportal.fzk.de/distribution/crossgrid/releases/allfiles/7.3/edg/WP6/edg-gridftp-client-1.2.7-1.i386.rpm
genbasedir /tmp/localrepo/
mkdir -p /tmp/obsoletes/glite-wn/etc/apt/sources.list.d/
echo 'rpm file:/tmp localrepo mine' >/tmp/obsoletes/glite-wn/etc/apt/sources.list.d/mine.list
bash <<EOF
source $GLITE_ROOT/root/env_settings
glite-userspace-apt-get update
glite-userspace-apt-get install edg-gridftp-client
EOF
echo "----- Try to execute test(s) -----"
cd ..
export LD_LIBRARY_PATH=$GLITE_ROOT/opt/globus/lib
#export LD_LIBRARY_PATH=/tmp/glite-ui/opt/globus/lib
export PATH=$PATH:$GLITE_ROOT/opt/globus/bin/:$GLITE_ROOT/opt/edg/bin/
#export PATH=$PATH:/tmp/glite-ui/opt/globus/bin/:/tmp/glite-ui/opt/edg/bin/
source test_site.conf
export HTML_DIR=$PWD
export MAINSCRIPT=yes
export X509_CERT_DIR=$GLITE_ROOT/etc/grid-security/certificates
#export X509_CERT_DIR=/tmp/glite-ui/etc/grid-security/certificates
edg-testbed-test BaseTest::GridFTP lxb1921.cern.ch lxb1737.cern.ch lxb0724.cern.ch lxb2018.cern.ch lxb2034.cern.ch lxb2035.cern.ch lxb2016.cern.ch
tar czvf results.tar.gz *

Links:

NMI at CERN (ETICS)

-- AndreasUnterkircher - 04 Apr 2006

Edit | Attach | Watch | Print version | History: r6 | r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 2006-04-04 - MatveySapunov
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LCG 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