Instalação do WN e Glexec

Description

Primeiramente devemos criar o usuário glexec na osg-ce, e adiciona-lo ao mapa do ypbind
[root@osg-ce ~]# groupadd glexec
[root@osg-ce ~]# adduser -g glexec -s /bin/false glexec
[root@osg-ce ~]#cd /var/yp
[root@osg-ce yp]#make
[root@osg-ce yp]#cd /etc/init.d/ypserv restart
Criamos então o script abaixo dentro de uma área /home/mdias da osg-ce:
cd /tmp
wget http://physics.bu.edu/pacman/sample_cache/tarballs/pacman-3.21.tar.gz
tar --no-same-owner -xzvf pacman-3.21.tar.gz
cd pacman-3.21
source setup.sh
mkdir /opt/OSG-wn-client
cd /opt/OSG-wn-client/
VDTSETUP_AGREE_TO_LICENSES=y
export VDTSETUP_AGREE_TO_LICENSES
VDTSETUP_INSTALL_CERTS=l
export VDTSETUP_INSTALL_CERTS
VDTSETUP_EDG_CRL_UPDATE=y
export VDTSETUP_EDG_CRL_UPDATE
VDTSETUP_ENABLE_ROTATE=y
export VDTSETUP_ENABLE_ROTATE
pacman -trust-all-caches -get OSG:wn-client
source setup.sh
vdt-control --on
mkdir /etc/grid-security
ln -s /opt/OSG-wn-client/globus/share/certificates /etc/grid-security/certificates
pacman -get http://vdt.cs.wisc.edu/vdt_181_cache:Glexec
sed -i 's/yourmachine.yourdomain/osg-ce.sprace.org.br/g'  /etc/glexec/contrib/gums_interface/getmapping.cfg
rm -rf /tmp/pacman*
O osg-ce vai rodar este script de instalação:
/root/bin/clcmd /home/mdias/glexec_install.sh

Agora precisamos distribuir os proxies para os nodes, usando o script

#!/bin/bash
#Gerando as chaves
. /OSG/setup.sh
grid-proxy-init -cert /etc/grid-security/hostcert.pem -key /etc/grid-security/hostkey.pem -valid 12:00 -out /tmp/x509proxy.pem  >/tmp/grid_tmpout 2> /
tmp/grid_tmperr
openssl rsa -in /tmp/x509proxy.pem -out /tmp/x509proxykey.pem > /tmp/ssl_tmpout2> /tmp/ssl_tmperr
#Copiando as chaves para os nodes
for ((i=1; i<84; i++)) ; do  
        if ! scp /tmp/x509proxy.pem 192.168.1.$i:/etc/grid-security/hostproxy.pem; then echo "$(date) scp 192.168.1.$i fail">>/tmp/grid_scptmperr;fi
done
for ((i=1; i<84; i++)) ; do  
         if ! scp /tmp/x509proxykey.pem 192.168.1.$i:/etc/grid-security/hostproxykey.pem; then echo "$(date) scp 192.168.1.$i fail">>/tmp/grid_scptmpe
rr;fi
done
que rodará como um cronjob
55 */11 * * * /usr/local/bin/ProxyRenewNodes.sh
rodará de 11h55 em 11h55 todos os dias. Precisamos mudar a variável OSG_GRID dos fles osg-atributtes.conf osg-job-enviromment.conf , grid3-info.conf dentro do diretório /OSG/monitoring
OSG_GRID=/opt/OSG-wn-client

Atualização 16/05/2008

Rodado em todos os nodes o script para compartilhar o TRUSTED_CA da CE com os nodes, ja que os cronjobs falham:

sed -ie '1d' /var/spool/cron/root
mv /opt/OSG-wn-client/globus/share/certificates /opt/OSG-wn-client/globus/share/certificates.bck
rm -f /opt/OSG-wn-client/globus/TRUSTED_CA
rm -f  /etc/grid-security/certificates 
ln -s /OSG/globus/share/certificates /etc/grid-security/certificates
ln -s /OSG/globus/share/certificates /opt/OSG-wn-client/globus/TRUSTED_CA
mv /opt/OSG-wn-client/globus/share/certificates.bck /opt/OSG-wn-client/globus/share/certificates

Atualização 01/06/2008

colocar a linha abaixo em todos os nodes no /etc/glexec/glexec.conf
linger                       = no
na seção [glexec]
Topic revision: r6 - 2008-06-02 - MarcoAndreFerreiraDias
 

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

antalya escort bursa escort eskisehir escort istanbul escort izmir escort