Installation instructions for the CrossOSG Frontend

Location

osg-glidein-fe.t2.ucsd.edu

Node type

CentOS? 5

Maintenance

The frontend processes will be started and stopped as user frontend.

cd ~frontend/frontstage/frontend_CrossOSGCE-v3_0
./frontend_startup [start|stop]

To change the configuration, edit

/home/frontend/frontstage/instance_v3_0.cfg/frontend.xml
then run
cd ~frontend/frontstage/frontend_CrossOSGCE-v3_0
./frontend_startup reconfig

Certificates must be updated once a year.
Plus, every time the host certs get updated in /etc/grid-security, they must be copied into ~fronrend/.globus as well.

Detailed instructions

Base root-level installation

# Node came pre-installed with the osg-ca-certs
# If not, follow the instructions at
# https://twiki.grid.iu.edu/bin/view/Documentation/Release3/InstallOSGClient#Install_the_CA_Certificates_A_qu

# Basic OSG client installation
# Note: Not essential, but I like to have it in advance
yum install osg-client

# Install basic condor, make sure it is client only
yum install condor
echo -e "#Disable daemons, this is client only\nDAEMON_LIST=NONE" >/etc/condor/config.d/99_client_only.config

# Make sure m2crypto and python-rrdtool are installed
yum install m2crypto python-rrdtool

# Make sure httpd is installed
yum install httpd
# hide the directory structure
touch /var/www/html/index.html

#now create the needed user
useradd frontend

# give it a copy of the host cert
# not the most elsegant solution, but it works
mkdir ~frontend/.globus
cp /etc/grid-security/host*pem ~frontend/.globus/
chown -R frontend:frontend ~frontend/.globus

# And do whatever needed to be able to log in

# Create frontend web dir
mkdir /var/www/html/vofrontend
chown frontend:frontend /var/www/html/vofrontend

# start httpd
service httpd start
chkconfig httpd on

Request the service certificates

#
# As user frontend
#

python /usr/bin/osg-cert-request -t 'crossosg-glow/osg-glidein-fe.t2.ucsd.edu' -e isfiligoi@ucsd.edu -n "Igor Sfiligoi" -p 6193126199  -m "This certificate will be used to impersonate GLOW users running under the CrossOSG CE"
osg-cert-retrieve -i XYZ 
mv hostcert.pem .globus/service_glow_cert.pem
mv hostkey.pem .globus/service_glow_key.pem

Installation as the frontend user

#
# As user frontend
#

# finish the WWW setup
mkdir /var/www/html/vofrontend/stage
mkdir /var/www/html/vofrontend/monitor

# put in place the proxy refresh script
cd .globus
wget http://www.t2.ucsd.edu/twiki2/pub/UCSDTier2/CrossOSGCEInstFE/refresh_script.sh -O .globus/refresh_script.sh
chmod a+x .globus/refresh_script.sh

# put it in crontab
crontab -e 
9 9,21 * * * /home/frontend/.globus/refresh_proxy.sh > /home/frontend/.globus/refresh_proxy.log 2> /home/frontend/.globus/refresh_proxy.err </dev/null
# end crontab

#run it once by hand, to create the proxies
./globus/refresh_proxy.sh

# create a service dir
mkdir Downloads

# Get the glideinwms software
cd Downloads/
wget http://www.uscms.org/SoftwareComputing/Grid/WMS/glideinWMS/glideinWMS_v2_7_1_frontend.tgz
cd ..
tar -xzf Downloads/glideinWMS_v2_7_1_frontend.tgz 

# now configure the frontend

# create the base directories
mkdir frontstage frontlogs

# create the actual instance
mkdir frontstage/instance_v3_0.cfg
cd  frontstage/instance_v3_0.cfg

# get the helper files
wget http://www.t2.ucsd.edu/twiki2/pub/UCSDTier2/CrossOSGCEInstFE/save_env.sh -O save_env.sh
wget http://www.t2.ucsd.edu/twiki2/pub/UCSDTier2/CrossOSGCEInstFE/restore_env.source -O restore_env.source
wget http://www.t2.ucsd.edu/twiki2/pub/UCSDTier2/CrossOSGCEInstFE/fix_proxy.source -O fix_proxy.source
 
# get the actual XML file
wget http://www.t2.ucsd.edu/twiki2/pub/UCSDTier2/CrossOSGCEInstFE/frontend.xml -O frontend.xml

# create the instance
~/glideinwms/creation/create_frontend $PWD/frontend.xml

# start the frontend
cd ~/frontstage/frontend_CrossOSGCE-v3_0/
./frontend_startup start

-- IgorSfiligoi

Topic attachments
I Attachment Action Size Date Who Comment
elsesource fix_proxy.source manage 0.4 K 2013/05/13 - 18:33 IgorSfiligoi Wrapper to point the environtment to the user proxy file
xmlxml frontend.xml manage 5.1 K 2013/05/15 - 23:20 IgorSfiligoi FE config file
shsh refresh_proxy.sh manage 1.6 K 2013/05/15 - 22:48 IgorSfiligoi Service script that refreshes the proxies
elsesource restore_env.source manage 2.1 K 2013/05/13 - 18:32 IgorSfiligoi Wrapper script to restore the Grid environtment
shsh save_env.sh manage 0.8 K 2013/05/13 - 18:32 IgorSfiligoi Script to save the grid environment for later retrieval
Edit | Attach | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r5 - 2013/05/15 - 23:20:52 - IgorSfiligoi
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback