UI PnP Installation
From EUAGwiki
Contents |
[edit] GILDA User Interface Plug and Play 3.1
[edit] Lectured by
Giuseppe LA ROCCA
Italian National Institute of Nuclear Physics
Italy
mailto:giuseppe.larocca@ct.infn.it
[edit] Disclaimer
This version of the GILDA UI PnP have been tested for Scientific Linux 4.5/6/7 and Fedora Core 8 and 10. It may need additional effort to make it work on other distro. It differs from the official release because everything is pre-configured for the GILDA testebed. To install and use it does not need root privileges at all; however, there is something, which is listed in the preliminary section, that you might have to ask to the administrator.
[edit] Preliminary
You have to check that
*the clock of your machine is properly synchronized with an ntp server; *check that you have Java properly installed on your machine.
[edit] Install Java
- Configure repo:
# cd /etc/yum/repos.d/
# wget http://grid-deployment.web.cern.ch/grid-deployment/glite/repos/3.1/jpackage.repo
*Install jdk:
# yum clean all
# yum install jdk
Loading "kernel-module" plugin
Setting up Install Process
Setting up repositories
jpackage5-generic-nonfree 100% |=========================| 1.9 kB 00:00
jpackage5-generic 100% |=========================| 1.9 kB 00:00
sl-base 100% |=========================| 1.1 kB 00:00
sl-errata 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 5.2 kB 00:00
jpackage5-: ################################################## 17/17
Added 17 new packages, deleted 0 old in 0.19 seconds
primary.xml.gz 100% |=========================| 808 kB 00:00
jpackage5-: ################################################## 3307/3307
Added 3307 new packages, deleted 0 old in 8.58 seconds
primary.xml.gz 100% |=========================| 587 kB 00:01
sl-base : ################################################## 1827/1827
Added 1827 new packages, deleted 0 old in 8.46 seconds
primary.xml.gz 100% |=========================| 284 kB 00:01
sl-errata : ################################################## 1124/1124
Added 1124 new packages, deleted 0 old in 5.16 seconds
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for jdk to pack into transaction set.
jdk-1.6.0_16-fcs.i586.rpm 100% |=========================| 432 kB 00:01
---> Package jdk.i586 2000:1.6.0_16-fcs set to be updated
--> Running transaction check
Beginning Kernel Module Plugin
Finished Kernel Module Plugin
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
jdk i586 2000:1.6.0_16-fcs sl-errata 65 M
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 65 M
Is this ok [y/N]: y
Downloading Packages:
(1/1): jdk-1.6.0_16-fcs.i 100% |=========================| 65 MB 02:01
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: jdk ######################### [1/1]
Unpacking JAR files...
rt.jar...
jsse.jar...
charsets.jar...
tools.jar...
localedata.jar...
plugin.jar...
javaws.jar...
deploy.jar...
Installed: jdk.i586 2000:1.6.0_16-fcs
Complete!
[edit] Installation
As normal user, download the tarball as follow:
wget https://grid.ct.infn.it/twiki/bin/view/GILDA/GildaUIPnP31
Copy it under your home directory and uncompress the tarball.
# ls GILDA-UIPnP-3.1.tar.gz # tar xzf GILDA-UIPnP-3.1.tar.gz # ls UIPnP-3.1 drwxr-xr-x 5 1000 1000 4096 Apr 7 2008 classads drwxr-xr-x 4 1000 1000 4096 Apr 7 2008 d-cache drwxr-xr-x 8 1000 1000 4096 May 19 2008 edg -rw-r--r-- 1 1000 1000 4059 May 6 15:46 eela2uiconf.tar.gz drwxr-xr-x 3 1000 1000 4096 Apr 7 2008 etc drwxr-xr-x 10 1000 1000 4096 May 19 2008 external drwxr-xr-x 14 1000 1000 4096 Apr 7 2008 glite drwxr-xr-x 14 1000 1000 4096 Apr 7 2008 globus drwxr-xr-x 9 1000 1000 4096 Apr 7 2008 gpt drwxr-xr-x 8 1000 1000 4096 Apr 7 2008 lcg -rw-r--r-- 1 1000 1000 21185 Mar 31 17:27 PnP-conf.def -rw-r--r-- 1 1000 1000 925 May 21 2008 README
[edit] Configuration
Enter the UIPnP-3.1 directory, open the file PnP-conf.def and configure your UI PnP with the following settings:
# Check this is the correct value !
JAVA_LOCATION="/usr/java/latest/"
# Space separated list of supported VOs by your site
VOS="gilda euasia"
#########
# gilda #
#########
# GILDA VO: contact Gilda Team for Gilda settings
VO_GILDA_SW_DIR=$VO_SW_DIR/gilda
VO_GILDA_DEFAULT_SE=$DPM_HOST
VO_GILDA_STORAGE_DIR=$CLASSIC_STORAGE_DIR//gilda
VO_GILDA_QUEUES="short long infinite"
VO_GILDA_VOMS_SERVERS="vomss://voms.ct.infn.it:8443/voms/gilda?/gilda"
VO_GILDA_VOMSES="'gilda voms.ct.infn.it 15001 /C=IT/O=INFN/OU=Host/L=Catania/CN=voms.ct.infn.it gilda'"
VO_GILDA_VOMS_CA_DN="'/C=IT/O=INFN/CN=INFN CA' '/C=IT/O=INFN/CN=INFN CA'"
##########
# EUASIA#
##########
VO_EUASIA_SW_DIR=$VO_SW_DIR/euag
VO_EUASIA_DEFAULT_SE=$DPM_HOST
VO_EUASIA_STORAGE_DIR=$CLASSIC_STORAGE_DIR/euag
VO_EUASIA_VOMS_SERVERS="vomss://voms.grid.sinica.edu.tw:8443/voms/euasia?/euasia"
VO_EUASIA_VOMSES="'euasia voms.grid.sinica.edu.tw 15015 /C=TW/O=AS/OU=GRID/CN=voms.grid.sinica.edu.tw euasia'"
VO_EUASIA_VOMS_CA_DN="'/C=TW/O=AS/OU=GRID/CN=voms.grid.sinica.edu.tw'"
VO_EUASIA_CA_DN="'/C=TW/O=AS/CN=Academia Sinica Grid Computing Certification Authority Mercury' '/C=TW/O=AS/CN=Academia Sinica Grid Computing Certification Authority Mercury'"
Then run the configuration command
# $HOME/UIPnP-3.1/glite/yaim/bin/yaim -c -s PnP-conf.def -n UI_TAR
INFO: - -- --- ---- o oo ooo OOO #### OOO ooo oo o ---- --- -- -
. __ _____ ______ ___
. \ \/ / _ | / _/ |/ / Current Working directory is: /home/larocca/UIPnP-3.1
. \ / __ |_/ // /|_/ / Site-info file used: Jun 8 20:09 PnP-conf.def
. /_/_/ |_/___/_/ /_/ Mon Jun 8 20:10:16 CEST 2009 : /home/larocca/UIPnP-3.1/glite/yaim/bin/yaim -c -s PnP-conf.def -n UI_TAR
YAIM versions used:
INFO: Output will be written into log file: /home/larocca/UIPnP-3.1/glite/yaim/bin/../log/yaimlog
INFO: Using site configuration file: PnP-conf.def
INFO: The default location of the grid-env.(c)sh files will be: /home/larocca/UIPnP-3.1/external/etc/profile.d
INFO: Sourcing the utilities in /home/larocca/UIPnP-3.1/glite/yaim/functions/utils
INFO: Detecting environment
INFO: Executing function: config_certs_userland_check
INFO: Executing function: config_globus_clients_check
INFO: Executing function: config_lcgenv_check
INFO: Executing function: config_rgma_client_check
INFO: Executing function: config_glite_ui_check
INFO: Executing function: config_ui_tar_check
INFO: Executing function: config_certs_userland_setenv
INFO: Executing function: config_certs_userland
INFO: Executing function: config_crl
INFO: Now updating the CRLs - this may take a few minutes...
INFO: Executing function: config_sysconfig_edg
INFO: Executing function: config_sysconfig_globus
INFO: Executing function: config_sysconfig_lcg
INFO: Executing function: config_globus_clients_setenv
INFO: Executing function: config_globus_clients
INFO: Configure the globus service
setup-tmpdirs: creating ./config.status
config.status: creating globus-script-initializer
config.status: creating Paths.pm
creating globus-sh-tools-vars.sh
creating globus-script-initializer
creating Globus::Core::Paths
checking globus-hostname
Done
INFO: Executing function: config_lcgenv
INFO: Executing function: config_rgma_client_setenv
INFO: Executing function: config_rgma_client
Welcome to the R-GMA setup utility
----------------------------------
Configuration written to:
/home/larocca/UIPnP-3.1/glite/etc/rgma/rgma.conf
To configure security, edit proxy/certificate settings in
/home/larocca/UIPnP-3.1/glite/etc/rgma/ClientAuthentication.props
INFO: Executing function: config_workload_manager_client_setenv
INFO: Executing function: config_workload_manager_client
INFO: Executing function: config_fts_client
INFO: Executing function: config_gsissh
Configuring gsi_openssh
------------------------------------------------------------
Executing...
Notes:
o Privilege separation is off.
o GSI-OpenSSH website is <http://grid.ncsa.uiuc.edu/ssh/>.
------------------------------------------------------------
Finished configuring gsi_openssh.
INFO: Executing function: config_glite_ui_setenv
INFO: Executing function: config_glite_ui
INFO: Executing function: config_ui_tar_setenv
INFO: Executing function: config_ui_tar
INFO: Executing function: config_vomses
INFO: Configuration Complete. [ OK ]
For your convenience, it may be useful to put these inside your ~/.bashrc, instead of running them everytime you log in.
# source $HOME/UIPnP-3.1/external/etc/profile.d/grid-env.sh # export LFC_HOST=lfc-gilda.ct.infn.it
Either logout-login or run source .bashrc and, after you have copied under .globus your personal certificates you can enjoy GILDA UI Plug and play !
[edit] APPENDIX
[edit] Install UI PnP on Ubuntu 8.04
Due to the big importance of such Linux distribution, few tests were made in order to verify that the UI PnP works on Ubuntu. It is yet possible to install the UI PnP on UBUNTU v 8.04, but several additional actions must be performed before to follow the standard installation steps described above.
Some of the steps suggested require to execute some statements with the use of 'sudo' command; that means the user must know the administration password or he/she has to be assisted by a system administrator.
Before to proceed with the following steps the installation step explained above must be performed.
[edit] Config hostname
The new gLite UI configuration script requires to have a 'dotted' (e.g. mylaptopname.mydomain) domain name. Normally previous UI configuration scripts did not require a so strict requirement. In case our machine does not have a 'dotted' hostname and in order to correctly configure the UI-PnP the user has to change the hostname accordingly. Of course there is no need that the hostname has to be solved by a DNS. Once the configuration has finished the hostname can be ignored. In order to setup a good hostname use the following command: sudo hostname anyname.anydomain
Example: # sudo hostname mylaptopname.net
You may also change the hostnname directly changing the the file:
# sudo vi /etc/hostname
[edit] Install awk and solve command discrepancies
The standard installation of UBUNTU does not provide awk. You may test just executing the command and if it does not exists, you can install it just executing:
# sudo apt-get install gawk
Unfortunately awk and basename commands are installed in different paths that are hardcoded on the configuration script file: $HOME/UIPnP-3.1/external/usr/sbin/fetch-crl
Open the file and change the following lines:
basename=/bin/basename awk=/bin/awk
with:
basename=$(which basename) awk=$(which awk)
Of course you can perform this action only after you unpack the UI-PnP tar.gz file.
[edit] Install Java Sun
Ubuntu provides its own package containing the Java JRE/JDK provided by Sun. It is warmly suggested to install the JDK but the JRE works as well. In order to install the Java Sun please execute the following commands:
# sudo apt-get install sun-java6-jdk (or sun-java6-jre) # sudo apt-get install sun-java6-plugin
Then select the Java Sun as default java with:
# sudo update-java-alternatives -s java-6-sun
Please keep track of the real path where java Sun is now installed. You have to take care of this path in order to properly configure the JAVA_LOCATION environment variable inside the file: PnP-conf.def. Of course you can change JAVA_LOCATION variable only after you unpack the UI-PnP tar.gz file.
[edit] RPM
Although the standard Ubuntu installation does not support the utility rpm the configuration script of the UI-PnP requires it. It is possible to install the rpm utility just executing:
# sudo apt-get install rpm
[edit] NTP
All grid services and UIs as well need to be synchronized with a NTP time server, for this reason the NTP package must be installed with:
# sudo apt-get install ntp
Then from the desktop clock (right click) select: Adjust Time&Date choosing that you want to be synchronized with a NTP time server.
You may also add your own ntp server: (e.g.: ntp1.infn.it)
[edit] Done
Once completed the steps above you have to configure the UIPnP as described here.
WARNING: do not forget to call YAIM tool using the 'sudo' command; otherwise the CRLs will be not properly loaded.
You are now able to enjoy the grid services on top of a Ubuntu Linux distribution 8.04. Please consider that for Grid application development is still required that developers have to work on SL3/4 (depending on the middleware version used) as recommended Linux distribution.
Last test successfully test has been done on: Ubuntu 8.04 - the Hardy Heron - released in April 2008
[edit] Open Issues
gLite Pyton scripts may prompt for warnings like:
/home/brunor/UIPnP-3.1/glite/lib/python/glite_wmsui_UcWrapper.py:5: RuntimeWarning: Python C API version mismatch for module _glite_wmsui_UcWrapper: This Python has API version 1013, module _glite_wmsui_UcWrapper has version 1012. import _glite_wmsui_UcWrapper+
These messages are only reporting a version mismatch between the current python version and the python libraries provided by gLite.
