ETICS multinode testing exercises

This page collects some preliminary tests to use the ETICS multinode testing to certify Data Management services.

Sequence diagram for DPM test automation

The general idea is shown in the following sequence diagram: MultinodeDPM.png

Yaimgen and test scripts review

Mutlinode testing in ETICS will be used here as a driver and comunication infrastructure built on top of existing script for test automation ([][Yaimgen]].

Automatic deployment of services: - glite-SE_dpm_mysql:

./ -i sl5-64-dh -n glite-SE_dpm_mysql

- glite-UI

./ -i sl5-64-dh -n glite-UI

The script uses the Vnode CLI to create a virtual machine, and then Yaimgen to deploy the service.

The UI deployment also creates and prepare a testuser account generating a voms proxy, so that tests can be immediately run.

Launching DPM client tests using

 ./ -d ../tests/functional lcg
This command will launch the lcgutil functional test using the CTB resources specified in lcgutil-config.

ISSUE #1: How to override the default hostnames in order to use the one just deployed?

SOLUTION #1: The lcgutil-config has been modified in order not to override existing environment variables.

Therefore, before calling one has to set SE_HOST to point the tests to the DPM server just deployed:

export SE_HOST=""

ISSUE #2_ The just deployed DPM will not be published in the BDII, causing lcg-* command to fail:

[BDII][][] No entries for host:

SOLUTION #1_A: Do not use the BDII, run all the lcg-* command with the option '--nobdii' and specifying the endpoint type, e.g:

[testuser@vtb-generic-61 scripts]$ lcg-cr -v --nobdii --defaultsetype srmv2 -d file:/etc/hosts
Using grid catalog type: lfc
Using grid catalog :
Checksum type: None
[GFAL][gfal_init][EINVAL] Invalid request: When BDII checks are disabled, you must provide SURLs and endpoint type
lcg_cr: Invalid argument
Moreover we need to provide the SURL instead of the hostname, like this:
[testuser@vtb-generic-61 scripts]$ lcg-cr --nobdii --defaultsetype srmv2 -d srm:// file:/etc/hosts

In order to make this solution work we need to modify modify the script lcg-common in order to use the --nobdii option, which is not working because it relies on a BDII query

[testuser@vtb-generic-61 lcg]$ ./lcg-cr --nobdii --usefullsurl

    === lcg-cr, -del test ===    

 ===> --nobdii option will be passed to commands sensitive to it
 ===> Full SURLs will be used whenever possible
 ===> Full SURLs will be used whenever possible
 ===> SE host      :
 ===> second storage element (for lcg-rep): 
 ===> [for information]: LCG_GFAL_INFOSYS=
 ===> [for information]: LCG_GFAL_VO=
 ===> [for information]:
 ===> Trying to determine endpoint for
ldap_bind: Can't contact LDAP server (-1)
ldap_bind: Can't contact LDAP server (-1)
ldap_bind: Can't contact LDAP server (-1)
 ===> SE endpoint : 
 ===> SRM endpoint:   
 ===> Could not determine srm endpoint for

This solution also has the disadvantage of not testing the BDII interaction.

SOLUTION #2_B: Add a testing BDII that include CTB resources, and where we can publish unstable resources.

Possible interactions among unstable services? Should not be a problem.

The testing BDII is already available, but publishing information automatically (on demand) looks tricky.

SOLUTION #2_C: Create an additional node with an ad-hoc BDII

This way we have control over the machine and would be easier to publish information. However for every test there is going to be an additional node needed.

I will investigate this solution for now.

In order to update the BDII with the newly created DPM host we need to add to /opt/glite/etc/gip/site-urls.conf the string:

DPM  ldap://<dpm hostname>:2170/mds-vo-name=resource,o=grid
and restart the bdii daemon with:
/etc/rc.d/init.d/bdii restart

The new sequence diagram including the BDII node and additional communication messages is: MultinodeDPM3.png

Tests with vNode machines

BDII node commands


#Install BDII site
cd yaimgen
./ -n glite-BDII_site

# ETICS client installation (TO SKIP WHEN NOT NECESSARY)
wget ""
python -r 1.4.15-1 --volatile etics_2_5_0
export ETICS_HOME=/root/etics

DPM_HOST=`etics-get -b`

#Add DPM host to BDII
echo "DPM  ldap://$DPM_HOST:2170/mds-vo-name=resource,o=grid" >> /opt/glite/etc/gip/site-urls.conf
/etc/rc.d/init.d/bdii restart
etics-set `hostname`

#Wait for the end
etics-get -b TESTS.done

UI node commands


#Install glite-UI
cd yaimgen
./ -n glite-UI -testuserpass ****

# ETICS client installation
wget ""
python -r 1.4.15-1 --volatile etics_2_5_0
export ETICS_HOME=/root/etics
export ETICS_INFOSYS_UUID="giannitest6"
echo `etics-get -b` >> /home/testuser/
echo `etics-get -b` >> /home/testuser/

#prepare test driver script
cat << EOF > /tmp/
svn co tests
svn co scripts

export LCG_GFAL_INFOSYS="`cat`:2170"
export SE_HOST="`cat`"
cd scripts
./ -o output.xml -d ../tests/functional lcg

#MV report elsewhere

chmod a+x /tmp/

#Launch tests
su - testuser -c /tmp/

etics-set TESTS.done true

DPM node commands


#Install glite-SE_dpm_mysql
cd yaimgen
./ -n glite-SE_dpm_mysql

# ETICS client installation
wget ""
python -r 1.4.15-1 --volatile etics_2_5_0
export ETICS_HOME=/root/etics
export ETICS_INFOSYS_UUID="giannitest6"

etics-set `hostname`

etics-get -b TESTS.done

ETICS integration


-- GianniPucciani - 08-Dec-2010

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatdia MultinodeDPM.dia r1 manage 2.2 K 2010-12-08 - 14:32 GianniPucciani High level sequene diagram DIA
PNGpng MultinodeDPM.png r2 r1 manage 69.9 K 2010-12-13 - 17:04 GianniPucciani High level sequence diagram
Unknown file formatdia MultinodeDPM3.dia r1 manage 3.6 K 2010-12-14 - 11:15 GianniPucciani dia file
PNGpng MultinodeDPM3.png r1 manage 69.9 K 2010-12-13 - 17:15 GianniPucciani  
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r8 - 2010-12-20 - GianniPucciani
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main 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