Top-level BDII configuration file generator service

The tool is available as an RPM in the SAM repository and downloadable from CVS as well.


Insatllation, layout

The software is located in /opt/lcg/bdiiconf-gen/ by default. The directory structure is explained below:

main executables $ /conf:
  • bdii-additional.conf: This file contains a static list of URLs that should be added to the list further than the URLs coming from GOCDB
  • bdii-exclude.conf: This file contains a static list of URLs that should be added to the list further than the URLs coming from GOCDB
  • dbaccess.conf: definitions for DB connnection in the following format
                $ENV{'ORACLE_HOME'} = "";
                $ENV{'TNS_ADMIN'} = "";
Wrapper script to be invoked by cron job
log file
directory for the HTTP accessible BDII config file(s)

How does it work

It's basically a perl script that connects to GOCBD, and collects the LDAB URLs of site BDIIs that belong to the categories specified in the command-line parameters. There is a wrapper script that makes it easier to invoke the main executeable. This script should be invoked by cron, as below:

  • 3,13,23,33,43,53 * * * * root /opt/lcg/bdiiconf-gen/cron/ 2>> /opt/lcg/bdiiconf-gen/log/bdiiconf-gen-cron.log 2>&1

The list of OSG sites is provied both for production and PPS on the web instead of coming from GOCDB.

There is a script in the /bin directory to collect OSG information. If preferred, these URLs can be concatenated to the list coming from GOCDB. In order to keep the OSG list that's cached on the server up-to-date, a wrapper script is provided as in the previous case, so it could be invoked by a cron job as below:

  • 0,10,20,30,40,50 * * * * root /opt/lcg/bdiiconf-gen/cron/ 2>> /opt/lcg/bdiiconf-gen/log/get-osgsites-cron.log 2>&1

HTTP access to the output

The output of the script have to be available for all top-level BDIIs to download. Therefore additional httpd configuration is necessary. Something like below (an example httpd config file is available in the /conf directory)



            Alias /bdii-conf /opt/lcg/bdiiconf-gen/www


            <Directory "/opt/lcg/bdiiconf-gen/www">
                Allow from all

                Order allow,deny


-- JuditNovak - 24 Sep 2007

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2007-12-12 - AntonioRetico
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LCG 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