How To Set Up a Domain Service Registry

These instructions explain how to setup a Domain Service Registry (DSR) for a site. As a prerequisite, any SL6 host, either real of virtual is required with a valid host certificate. Note that Mongo needs 2GB of space in the file system.

Installing the DSR

Install the EMI relese package.

yum install yum-priorities yum-protectbase 
rpm -Uvh

Install the EMI Registry package.

yum localinstall emi-emir-1.2.0-0.sl6.noarch.rpm

Install the trust anchors.

wget -O /etc/yum.repos.d/EGI-trustanchors.repo
yum install lcg-CA 

Configure the DSR

Edit the file /etc/emi/emir/emir.config and set the address for the DSR.


Set the registry parent attribute to be the following.


Enable the anonymous port for querying.


Configure the trust store*.pem

Configure host certificate location

Set the mongo DB name


Edit the DN of the host certificate to the file /etc/emi/emir/emir.acl,OU=computers,DC=example,DC=com :: serviceowner

Start the services

service mongod start
service emi-emir start

Test the DSR

Check that the DSR is running

Install the service publisher

Install the emir service publisher.

rpm -Uvh

Install the service translator.

rpm -Uvh 

Configure the service publisher

Edit the file /etc/emi/emir-serp/emir-serp.ini and set the url for yor DSR.

url =

Set the credential file locations

cert = /etc/grid-security/hostcert.pem
key = /etc/grid-security/hostkey.pem
cadir = /etc/grid-security/certificates

Uncomment advancedServiceWithWatchDir section and the set the json_dir_location.

json_dir_location = /var/cache/emir/services

Create the json directory.

mkdir -p /var/cache/emir/services

Create a hourly cron job to run the following command, where is the host name of a site BDII.

ginfo --host --emi > /var/cache/emir/services/example

Run the above command manually to avoid waiting for the cron job to run.

Start the service

service emir-serp start

Test the service publisher

Check the expected services are published


General Tips

Check the following log files.


emird crashes on starting

Check that the example file is valid.

Edit | Attach | Watch | Print version | History: r28 < r27 < r26 < r25 < r24 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r28 - 2012-12-05 - LaurenceField
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    EMI All webs login

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.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback