fp6−2004−infrastructures−6-ssa-026634 user interface installation valeria ardizzone infn –...

29
FP6−2004−Infrastructures−6- SSA-026634 User Interface Installation Valeria Ardizzone INFN – Catania Grid tutorial for users and system administrators Beijing, 03-07 April 2006

Upload: rosa-melton

Post on 24-Dec-2015

213 views

Category:

Documents


0 download

TRANSCRIPT

FP6−2004−Infrastructures−6-SSA-026634

User Interface InstallationValeria Ardizzone

INFN – Catania

Grid tutorial for users and system administrators

Beijing, 03-07 April 2006

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

What is a User Interface (UI) ?

How to install a User Interface.

How to configure a User Interface.

Outline

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

What is a User Interface? The UI is a suite of clients and API that users and applications can use to access the gLite services.

The gLite UI includes the following components:

– VOMS command-line tools– Workload Management System clients and APIs– Logging and Bookkeeping clients and APIs

– Data Transfer command-line clients and APIs– Data Catalog command-line clients and APIs– gLite I/O client and APIs– R-GMA client and APIs

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

Installing User Interface (UI)

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

Node Syncronization with NTP Syncronization among all nodes is mandatory. It can be achieved by

the NTP protocol with a time server Install ntp if not already available for your system:

>apt-get install ntp Add your time server in /etc/ntp.conf

• restrict <time_server_IP_address> mask 255.255.255.255 nomodify notrap noquery

• server <time_server_name> • (you can use ntp-1.infn.it – IP 193.206.144.10)

Edit /etc/ntp/step-tickers adding your(s) time server(s) hostname If you are running a firewall, you will have to allow inbound

comminication on the NTP port:-A INPUT -s <NTP-serverIP-1> -p udp --dport 123 -j ACCEPT

Activate the ntpd service with the following commands:>ntpdate <your ntp server name> >service ntpd start>chkconfig ntpd on>ntpq –p

<your ntp server name> =

ntp-1.infn.it

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

Installation Pre-requisites Start from a fresh install of SLC 3.0.x and verify that apt is installed and properly

configured:>rpm -qa | grep aptInstall apt if necessary:>rpm -ivh

http://linuxsoft.cern.ch/cern/slc30X/i386/SL/RPMS/apt-0.5.15cnc6-8.SL.cern.i386.rpm

Java SDK is required to install almost any LCG/gLite grid service. Due to license issues, it is not found in the LCG repositories. So please download and install a release of Sun Java SDK >= 1.4.2_08 from http://java.sun.com/j2se/1.4.2/download.html

>chmod +x j2sdk-1_4_2_11-linux-i586-rpm.bin>./j2sdk-1_4_2_11-linux-i586-rpm.bin> rpm -ivh j2sdk-1_4_2_11-linux-i586.rpmPreparing... ###########################################

[100%] 1:j2sdk ###########################################

[100%]

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

Security pre-requisites

If you plan to use certificates released by unsupported

EGEE CA’s, be sure that their public key, signing policy

and CRLs (usually distributed with an rpm) are installed

in /etc/grid-security/certificates.

• For the VO GILDA, the RPM is available from

https://gilda.ct.infn.it/RPMS/ca_GILDA-0.28.1.i386.rpm

Install it with the command:

>rpm –ivh ca_GILDA-1.0-1.i386.rpm

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

Installing User Interface via apt

1. Create the file glite.list in the /etc/apt/sources.list.d directory and put this row on it:

rpm http://211.71.7.254 glite_1.4-i386 1_4 externals updates2. Digit the following commands:

>apt-get update>apt-get dist-upgrade

3. Install User Interface:>apt-get install glite-ui-config

See http://glite.web.cern.ch/glite/packages/APT.asp

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

Installing User Interface via apt

If the installation is performed successfully, the

following components are installed:

– gLite in /opt/glite

– Globus in /opt/globus

– GPT in /opt/gpt

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

Installation of VOMS Certificate Install the GILDA's VOMS server host certificates gilda-voms.ct.infn.it.pem, e voms.ct.infn.it.pem, in the

directory /etc/grid-security/vomsdir

Edit the /opt/glite/etc/vomses file as follow:

"gilda" "voms.ct.infn.it" "15001" "/C=IT/O=GILDA/OU=Host/L=INFN Catania/CN=voms.ct.infn.it/[email protected]" "gilda“

Or install the following rpm file:>rpm –ivh glite-voms-vo-gilda-1.0-0.noarch.rpm

(download from http://grid018.ct.infn.it/apt/gilda_app-i386/RPMS/glite-voms-vo-gilda-1.0-

0.noarch.rpm)

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

User Interface Configuration Configuration comes through the execution of pyhton

scripts, which takes as input XML files. So services have to be configured by editing these XML

files. Attributes in XML file are well commented and

selfexplaining. XML files are provided as templates, under

/opt/glite/etc/config/templates Copy templates file to /opt/glite/etc/config Edit each of them separately. Then we could launch the configurator scripts for the

User Interface.

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

User Interface Configuration (cont.)List of XML files to configure:

Glite-global.cfg.xml Glite-security-utils.cfg.xml Glite-rgma-common.cfg.xml Glite-rgma-client.cfg.xml Glite-io-client.cfg.xml Glite-file transfer-service-client-cfg.xml Glite-services-discovery.cfg.xml Glite-ui-cfg.xml Glite-service-discovery.file-based-example-cfg.xml

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

glite-global.cfg.xml

<JAVA_HOME description="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/j2sdk-1.4.2_11"/>

Check your java package installed.

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

glite-security-utils.cfg.xml

<cron.mailto description="E-mail address for sending cron job notifications“

value=“siteadmin@yourdomain"/>

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

glite-rgma-common.cfg.xml<rgma.server.hostname

value="rgmasrv.ct.infn.it"/>

<rgma.schema.hostname

value="rgmasrv.ct.infn.it"/>

<rgma.registry.hostname

<value>rgmasrv.ct.infn.it</value>

</rgma.registry.hostname>

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

glite-io-client.cfg.xml<instance name="IO-Server for gilda" service="service-discovery.file"> ….<service-discovery.file.service_name description="The globally unique

name of the service. The convention isserviceHostName_voName_serviceType (for serviceType see parameter servicediscovery.file.service_type).“value="IOServerGILDA"/>

<service-discovery.file.url_endpoint description="URLendpoint of the service. The host name is the name ofyour io server, the port depends on your vo.“value=“gliteio://egee015.cnaf.infn.it:9999"/>

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

glite-file-transfer-service-client.cfg.xml (1)<instance name="FileTransferService for gilda" service="service-

discovery.file">

<service-discovery.file.service_name value="gildaFTS"/>

<service-discovery.file.url_endpoint value="https://fts.ct.infn.it:8443/gildav/glite-data-transfer-fts/services/FileTransfer"/>

<service-discovery.file.service_version value="3.0.0"/>

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

glite-file-transfer-serviceclient.cfg.xml (2)

<instance name="ChannelManagement for gilda" service="service-discovery.file">

<service-discovery.file.service_name value="gildaChannel"/>

<service-discovery.file.url_endpoint value="https://fts.ct.infn.it:8443/gildav/glite-data-transfer-fts/services/ChannelManagement"/>

<service-discovery.file.service_version

value="3.0.0"/>

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

glite-service-discovery.cfg.xml (1)

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

glite-service-discovery.cfg.xml (2)<service-discovery.vo description="Default VO to be

used to find a friendly VO. Leave the parameter empty if

you don't want to specify a default VO. Example: EGEE

[Type: 'string']"

value="gilda"/>

<service-discovery.bdii.provider description="Host and

port of the BDII service for service discovery.Leave empty

or remove parameter if you do not use BDII as

information provider.Example: lxb1386.cern.ch:2170

[Type: 'string']“

value="grid004.ct.infn.it:2170"/>

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

glite-ui.cfg.xml (1)

<set description="Unique name of the set. It might be set

to the VO name. [Example: EGEE] [Type: 'string']“

name="gilda">

<ui.VirtualOrganisation description="Name of the VO

corresponding to this set. [Example: EGEE] [Type:

'string']" name="gilda">

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

glite-ui.cfg.xml (2)<ui.NSAddresses

description="List of NSserver:port pairs corresponding to the given VO"><item

description="Network Server address and port on which the networkserver is running separated by the ':' character. In case of multipleNetwork Servers this tag can be repeated. [Example:lxb1420.cern.ch:7772] [Type: 'string']" value="glite-rb.ct.infn.it:7772">

<ui.LBAddresses description="List of Logging and Bookkeeping server address:portpairs corresponding to the given Network Server. Example:lxb1419.cern.ch:9000] [Type: 'string]"><value>glite-rb.ct.infn.it:9000</value>

</ui.LBAddresses></item>

</ui.NSAddresses>

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

glite-ui.cfg.xml (3)<ui.voms.server value="voms.ct.infn.it"/>

<ui.voms.cert.url value="/etc/grid-security/vomsdir/gilda-voms.ct.infn.it.pem"/>

<ui.voms.cert.subject value="/C=IT/O=GILDA/OU=Host/L=INFN Catania/CN=voms.ct.infn.it/[email protected]"/>

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

glite-ui.cfg.xml (4)<ui.MyProxyServer value = "grid001.ct.infn.it"/>

<ui.HLRLocation value = "grid-demo1.ct.infn.it:56568:"/>

<py-ui.DefaultVo value="gilda"/>

<py-ui.requirements value=‘other.GlueCEStateStatus == "Production"'/>

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

glite-ui.cfg.xml (5)<instance name="FiremanCatalog for gilda" service="service-

discovery.file">

<service-discovery.file.service_name value="FiReManGILDA"/>

<service-discovery.file.url_endpoint value= "https://grid017.ct.infn.it:8443/gilda/glite-data-catalog-service-fr-mysql/services/FiremanCatalog"/>

<service-discovery.file.service_version value="1.7.0"/>

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

glite-ui.cfg.xml (6)

<instance name="SEIndex for gilda" service="service-discovery.file">

<service-discovery.file.service_name

value="SEIndexGILDA"/>

<service-discovery.file.url_endpoint

value="https://grid017.ct.infn.it:8443/gilda/glite-data-catalog-service-fr-mysql/services/SEIndex"/>

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

In order to obtain a correct files configuration, is important to delete from all .XML file the contained string “changeme” and replace it with empty string if necessary.

Configuration Note:

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

Post configurationIn order to commit configuration, execute the script in

/opt/glite/etc/config/scripts

./glite-uiconfig.py

To assure the correct functionality of the gLite UI it is necessary to add, as root, the following rows in /etc/profile

source /etc/glite/profile.d/glite_setenv.sh

PATH=$PATH:/opt/glite/externals/myproxy-1.14/bin:/opt/lcg/bin:/opt/lcg/sbin

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/glite/externals/myproxy-1.14/lib:/opt/lcg/lib

Valeria Ardizzone, INFN Catania Grid tutorial for users and system administrators Beijing, 03-07.04.2006

Good Lucky for your Installation!