R-GMA Server Installation
-
Upload
justin-kaufman -
Category
Documents
-
view
24 -
download
0
description
Transcript of R-GMA Server Installation
FP6−2004−Infrastructures−6-SSA-026409
www.eu-eela.org
E-infrastructure shared between Europe and Latin America
R-GMA Server InstallationClaudio CherubinoINFN – CataniaThird EELA Tutorial for Managers and UsersRio de Janeiro, 26-30 June 2006
Third EELA Tutorial, Rio de Janeiro, 26-30 June 2006 2FP6−2004−Infrastructures−6-SSA-026409
E-infrastructure shared between Europe and Latin America
Outline
• Introduction to R-GMA
• How to install it
• R-GMA configuration
• Testing
Third EELA Tutorial, Rio de Janeiro, 26-30 June 2006 3FP6−2004−Infrastructures−6-SSA-026409
E-infrastructure shared between Europe and Latin America
Introduction to R-GMA
• Relational Grid Monitoring Architecture (R-GMA)– Provides Information (which resources are available on the Grid)
and Monitoring Services– Developed as part of the EuropeanDataGrid Project (EDG)– Now as part of the EGEE project. – Implementation of the Grid Monitoring Architecture (GMA) from
the Global Grid Forum (GGF).
• Uses a relational data model.– Data are viewed as tables.– Data structure defined by the columns.– Each entry is a row (tuple).– Queried using Structured Query Language (SQL).
Third EELA Tutorial, Rio de Janeiro, 26-30 June 2006 4FP6−2004−Infrastructures−6-SSA-026409
E-infrastructure shared between Europe and Latin America
Relational GMA
• The data model is relational.• The table definition is globally
unique and is stored in the Schema.
• The Registry stores the Producers table name as well as the URL.
• The data is inserted in the form of a tuple.
• The Consumer gets the tuple from Producers.
• Producers – publish: SQL “INSERT”
• Consumers– collect: SQL “SELECT” Execute or Stream data
Registry
Producer Consumer
Schema
Store
Loc
atio
n
Look up Location
Third EELA Tutorial, Rio de Janeiro, 26-30 June 2006 5FP6−2004−Infrastructures−6-SSA-026409
E-infrastructure shared between Europe and Latin America
Installing R-GMA
Third EELA Tutorial, Rio de Janeiro, 26-30 June 2006 6FP6−2004−Infrastructures−6-SSA-026409
E-infrastructure shared between Europe and Latin America
Installation Pre-requisites
• Start from the base machine you installed in the INTRODUCTORY tutorial
• Verify that these packages are installed and properly configured:– Java SDK– Ntp daemon– CA_Gilda rpm (https://gilda.ct.infn.it/RPMS/)
– edg_VO_Gilda rpm (https://gilda.ct.infn.it/RPMS/)
• Also check that your host certificates are present in /etc/grid-security and have proper permissions:
-rw-r--r-- 1 root root 1127 Jun 14 12:27 hostcert.pem-r-------- 1 root root 887 Jun 14 12:28 hostkey.pem
Third EELA Tutorial, Rio de Janeiro, 26-30 June 2006 7FP6−2004−Infrastructures−6-SSA-026409
E-infrastructure shared between Europe and Latin America
Installing R-GMA Server via apt
1. Create the file glite.list in the /etc/apt/sources.list.d directory and put these rows into it:rpm http://gaia.eela.if.ufrj.br/yam sl305-i386 os updates contribrpm http://gaia.eela.if.ufrj.br/yam gilda_sl3-i386 app 3_0_0rpm http://gaia.eela.if.ufrj.br/yam ig_sl3-i386 3_0_0 utilsrpm http://gaia.eela.if.ufrj.br/yam glite_sl3-i386 securityrpm http://gaia.eela.if.ufrj.br/yam glite_sl3-i386 3_0 3_0_externals 3_0_updatesrpm http://gaia.eela.if.ufrj.br/yam sl305-i386 os updates contrib
2. Digit the following commands:> apt-get update> apt-get dist-upgrade
3. Install R-GMA:> apt-get install glite-rgma-server-config
See also http://glite.web.cern.ch/glite/packages/R3.0/R20060502/APT.asp
Third EELA Tutorial, Rio de Janeiro, 26-30 June 2006 8FP6−2004−Infrastructures−6-SSA-026409
E-infrastructure shared between Europe and Latin America
R-GMA Server configuration
• Copy the configuration template files from– $GLITE_LOCATION/etc/config/templates
• To– $GLITE_LOCATION/etc/config
• P.S: You can delete the glite-rgma-servicetool-serviceName.cfg.xml template file because it will not be used.
• Now we will start to customize the just copied configuration files by replacing the “changeme” value in all user-defined parameters with the proper value.
Third EELA Tutorial, Rio de Janeiro, 26-30 June 2006 9FP6−2004−Infrastructures−6-SSA-026409
E-infrastructure shared between Europe and Latin America
R-GMA Server configuration
• List of XML files to customize:
– glite-global.cfg.xml
– glite-rgma-common.cfg.xml
– glite-rgma-server.cfg.xml
– glite-rgma-servicetool.cfg.xml
– glite-security-utils.cfg.xml
Third EELA Tutorial, Rio de Janeiro, 26-30 June 2006 10
FP6−2004−Infrastructures−6-SSA-026409
E-infrastructure shared between Europe and Latin America
glite-global.cfg.xml
<JAVA_HOMEdescription="Environment variable pointing to the SUN Java JRE or J2SE package for example '/usr/java/j2re1.4.2_08/' or '$JAVA_HOME' (if it is defined as an environment variable)." value="/usr/java/j2sdk1.4.2_XX"/>
Third EELA Tutorial, Rio de Janeiro, 26-30 June 2006 11
FP6−2004−Infrastructures−6-SSA-026409
E-infrastructure shared between Europe and Latin America
glite-rgma-common.cfg.xml
<rgma.server.hostname description="Host name of the R-GMA server.[Example: lxb1420.cern.ch] [Type: 'string']“value=“eelatutXX.eela.if.ufrj.br">
<rgma.schema.hostname description="Host name of the R-GMA schema service.(See also configuration parameter 'rgma.server.run_schema_service' in the R-GMA server configuration file in case you install a server).[Example: lxb1420.cern.ch] [Type: 'string']“value="eelatutXX.eela.if.ufrj.br">
<rgma.registry.hostname description="Host name of the R-GMA registry service.You must specify at least one hostname and you can specify several if you want to use several registries.(See also configuration parameter 'rgma.server.run_registry_service' in the R-GMA server configuration file in ase you install a server).[Example: lxb2029.cern.ch] [Type: 'string']"><value>eelatutXX.eela.if.ufrj.br</value>
</rgma.registry.hostname>
Third EELA Tutorial, Rio de Janeiro, 26-30 June 2006 12
FP6−2004−Infrastructures−6-SSA-026409
E-infrastructure shared between Europe and Latin America
glite-rgma-server.cfg.xml
<rgma.server.run_schema_service description="Run a schema service for the R-GMA server on your machine” value=“true"/>
<rgma.server.run_registry_service description="Run a registry service for the R-GMA server on your machine” value=“true"/>
<rgma.server.run_browser description="Run a browser” value=“true"/>
<rgma.server.run_archiver description="Run the R-GMA data archiver” value=“true"/>
<rgma.server.run_site-publisher description="Run the R-GMA site-publisher” value=“true"/>
<rgma.server.mysql_root_password description="MySQL root password” value=“verySecret“>
Third EELA Tutorial, Rio de Janeiro, 26-30 June 2006 13
FP6−2004−Infrastructures−6-SSA-026409
E-infrastructure shared between Europe and Latin America
glite-rgma-server.cfg.xml (II)
<rgma.site-publisher.contact.system_administrator description="Contact email address of the site system administrator” value="[email protected]"/>
<rgma.site-publisher.contact.user_support description="Contact email address of the user support” value="[email protected]"/>
<rgma.site-publisher.contact.site_security description="Contact email address of the site security responsible” value="[email protected]"/>
<rgma.site-publisher.location.latitude description="Latitude of your site” value="37.5345"/>
<rgma.site-publisher.location.longitude description="Longitude of your site” value="15.0671"
Third EELA Tutorial, Rio de Janeiro, 26-30 June 2006 14
FP6−2004−Infrastructures−6-SSA-026409
E-infrastructure shared between Europe and Latin America
glite-rgma-servicetool.cfg.xml
<rgma.servicetool.siteId description="Unique Id of the site your service is running in. This parameter must have the same value as the rgma.site-publisher.siteId parameter in the R-GMA Server configuration. It has to be a DNS entry owned by the site and does not have to be shared with another site” value=“eelatutXX.eela.if.ufrj.br”/>
Third EELA Tutorial, Rio de Janeiro, 26-30 June 2006 15
FP6−2004−Infrastructures−6-SSA-026409
E-infrastructure shared between Europe and Latin America
glite-security-utils.cfg.xml
<cron.mailto
description="E-mail address for sending cron job notifications"
value="root@localhost"/>
Third EELA Tutorial, Rio de Janeiro, 26-30 June 2006 16
FP6−2004−Infrastructures−6-SSA-026409
E-infrastructure shared between Europe and Latin America
Firewall configuration
• Be sure that your firewall is open for R-GMA listening port (8443).
• By instance on /etc/sysconfig/iptables add:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp
-p tcp --dport 8443 -j ACCEPT
• service iptables restart
Third EELA Tutorial, Rio de Janeiro, 26-30 June 2006 17
FP6−2004−Infrastructures−6-SSA-026409
E-infrastructure shared between Europe and Latin America
Starting the R-GMA Server
• Change to the scripts directory:– > cd /opt/glite/etc/config/scripts
• Configure the R-GMA server by executing the R-GMA Server configuration script:– >./glite-rgma-server-config.py --configure
• If no error message is reported by the previous step, start the R-GMA server by running– >./glite-rgma-server-config.py --start
Third EELA Tutorial, Rio de Janeiro, 26-30 June 2006 18
FP6−2004−Infrastructures−6-SSA-026409
E-infrastructure shared between Europe and Latin America
R-GMA Server Testing
Third EELA Tutorial, Rio de Janeiro, 26-30 June 2006 19
FP6−2004−Infrastructures−6-SSA-026409
E-infrastructure shared between Europe and Latin America
R-GMA testing
• Check that all the R-GMA services are running properly by running:– >./glite-rgma-server-config.py --status
• or by connecting to the R-GMA Browser with your Internet Browser at the following address:– https://eelatut16.eela.if.ufrj.br:8443/R-GMA/
• If you want to stop the R-GMA Server, you can do it by issuing:– >./glite-rgma-server-config.py --stop
Third EELA Tutorial, Rio de Janeiro, 26-30 June 2006 20
FP6−2004−Infrastructures−6-SSA-026409
E-infrastructure shared between Europe and Latin America
R-GMA Browser
Third EELA Tutorial, Rio de Janeiro, 26-30 June 2006 21
FP6−2004−Infrastructures−6-SSA-026409
E-infrastructure shared between Europe and Latin America
R-GMA references
• R-GMA overview page.– http://www.r-gma.org/
• gLite v3.0 Advanced Installation and Configuration Guide– http://glite.web.cern.ch/glite/packages/R3.0/R20060502/doc/inst
allation_guide_3.0-2.html