Testing the Information System

This page provides information on how to run some GStat tests to check that a service is publishing correctly its information into the Information System (Resource BDII). Most of the gLite services activate a Resource BDII to publish their information into the Information System; during patch certification it is important to test the correctness of these information.

GStat is a set of Python scripts to visualise information about the grid services, the grid Information System itself and related errors. For our patch certification purposes only gstat-core and gstat-validation packages are required.

Currently, only the script gstat-validate-schema must be used to validate the LDIF information against the installed GLUE schema files.

Soon more specific test scripts will be added to GStat in order to perform specific tests on the contents of the Information System.

GStat installation

This procedure has been tested on a virtual machine (32 bits) with SLC 4.

  • install openldap-server and python-ldap packages:
yum install openldap-servers python-ldap
  • download and install the GStat packages and the glue schema:
wget http://eticssoft.web.cern.ch/eticssoft/repository/org.glite/gstat-core/2.0.0/noarch/gstat-core-2.0.0-1.noarch.rpm 
wget http://eticssoft.web.cern.ch/eticssoft/repository/org.glite/gstat-validation/2.0.0/noarch/gstat-validation-2.0.0-1.noarch.rpm 
wget http://eticssoft.web.cern.ch/eticssoft/repository/org.glite/glue-schema/1.3.0/noarch/glue-schema-1.3.0-4.noarch.rpm

rpm -ivh gstat-core-2.0.0-1.noarch.rpm gstat-validation-2.0.0-1.noarch.rpm glue-schema-1.3.0-4.noarch.rpm

Running the gstat-validate-schema script

The gstat-validate-schema script (usage) must be run against the resource BDII:

Example:

[root@vtb-generic-24 download]# /opt/gstat/bin/gstat-validate-schema -h lxbra2310.cern.ch -p 2170 -b o=grid
Result for server: lxbra2310.cern.ch:2170
Entries: 12
Errors: 0

In case of errors one can select the error messages with:

[root@vtb-generic-24 download]# /opt/gstat/bin/gstat-validate-schema -h lxb7605.cern.ch -p 2170 -b o=grid -v 2>&1 | grep Error
Error: Constraint violation; GlueSAPolicyFileLifeTime: multiple values provided
Error: Constraint violation; GlueSAPolicyFileLifeTime: multiple values provided
Error: Constraint violation; GlueSAPolicyFileLifeTime: multiple values provided
Error: Constraint violation; GlueSAPolicyFileLifeTime: multiple values provided
Error: Constraint violation; GlueSAPolicyFileLifeTime: multiple values provided
Error: Constraint violation; GlueSAPolicyFileLifeTime: multiple values provided
Error: Constraint violation; GlueSAPolicyFileLifeTime: multiple values provided
Error: Constraint violation; GlueServiceStatus: multiple values provided
Error: Constraint violation; GlueServiceStatus: multiple values provided
Error: Constraint violation; GlueSAPolicyFileLifeTime: multiple values provided
Errors: 10

Running the tests from the UI in the CTB

GStat has been installed on the UI lxbra2301.cern.ch. If you have an account on this machine you can run the test script that are installed under /opt/gstat/bin/. In order to run the script the directory /usr/sbin needs to be added to $PATH.

Example:

[pucciani@lxbra2301]~> export PATH=$PATH:/usr/sbin
[pucciani@lxbra2301]~> /opt/gstat/bin/gstat-validate-schema -h lxbra2310.cern.ch -p 2170 -b o=grid -v
Checking input parameters ...
Preparing LDIF pipe ...
Parsing LDIF ... 
Time taken: 0.01
Starting slapd server ...
Validating LDIF ...
Adding Entries ...
Stopping slapd server ...
Result for server: lxbra2310.cern.ch:2170
Entries: 12
Errors: 0

-- GianniPucciani - 12 Aug 2008

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2011-06-20 - AndresAeschlimann
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    EGEE All webs login

This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright & by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Ask a support question or Send feedback