Skip to Content.
Sympa Menu

perfsonar-user - Re: [I2G2-Proto] [perfsonar-user] Python RRD MA returns empty response

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [I2G2-Proto] [perfsonar-user] Python RRD MA returns empty response


Chronological Thread 
  • From: Nicolas Simar <>
  • To: Roman Lapacz <>
  • Cc: Sven Ubik <>, ,
  • Subject: Re: [I2G2-Proto] [perfsonar-user] Python RRD MA returns empty response
  • Date: Tue, 21 Mar 2006 10:20:54 +0000

Hi Roman,

Roman Lapacz wrote:

Hi Sven

I've checked this. My rrd config file and request are similar to yours and ... I can get correct response.

Could you check 'service.ma.rrd.conf_file' property in perfSONAR-MA/service/etc/service.properties file to be sure that you are using the right rrd config file?

Besides, I remember that Vedrin and Nina deployed both versions of RRD MA and it was working fine for them.

Where could be the problem of sending empty messages? (based on your internal knowledge about the service?)
Would there be a way in the future to have additional messages which indicates if the MA hasn't been able to retrieve the data, if there was no data, etc?)

Would the problem most likely be with the data retrieval from the python MA to the RRD. Is this correct?
What could go wrong there? (rrd java class, the format of the MA).

Cheers,

Nicolas


Roman



Sven Ubik wrote:

Hi all,

my Python RRD MA version 0.1-20 returns empty response while Java RRD MA
returns correct response for the same request. I tried to connect Python
client to Java RRD MA server and it works as well. No errors are logged
by Python RRD MA server at -l DEBUG level.

Attached files:

SetupDataRequest-FilterRRDSelect-Cesnet.xml - request
response-java.xml - response from Java RRD MA
response-python.xml - response from Python RRD MA
rrd-database_Cesnet.xml - RRD configuration of Python RRD MA

Any ideas where can be the problem?

Both servers are not open to public, but I can include your network
if you want to connect.

Regards,

Sven
------------------------------------------------------------------------

<?xml version='1.0' encoding='UTF-8'?>

<!-- Purpose: We send down metadata (no key) and some filter parameters, we hope to get back just data. -->
<!-- Version: $Id: SetupDataRequest-FilterRRDSelect-2.xml,v 1.8 2006/02/09 05:32:51 zurawski Exp $ -->

<nmwg:message id="msg4"
type="SetupDataRequest" xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"; xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"; xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";>

<!-- Optional message level parameters -->
<nmwg:parameters id="msgparam1">
<nmwg:parameter name="authToken">CESNET</nmwg:parameter>
<nmwg:parameter name="timeValue">1142337900</nmwg:parameter> <nmwg:parameter name="timeType">unix</nmwg:parameter> </nmwg:parameters> <nmwg:metadata id="meta1">
<netutil:subject id="iusub1">
<nmwgt:interface>

<nmwgt:ifAddress type="ipv4">195.113.156.4</nmwgt:ifAddress>
<nmwgt:direction>in</nmwgt:direction>

<!--
<nmwgt:ifAddress type="ipv4">198.32.8.34</nmwgt:ifAddress>
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
<nmwgt:ifName>unknown</nmwgt:ifName>
<nmwgt:ifDescription>atla->hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
<nmwgt:direction>in</nmwgt:direction>
<nmwgt:authRealm>Internet2</nmwgt:authRealm>
<nmwgt:capacity>1000BaseT</nmwgt:capacity>
-->
</nmwgt:interface>
</netutil:subject>
<nmwg:eventType>utilization</nmwg:eventType>
</nmwg:metadata>

<!-- The second metadata is used to filter the results of the first operation, this basically means our 'subject' is the first metadata block, then we
apply a parameter block to limit/transform the resulting data. -->
<nmwg:metadata id="meta2">
<select:subject id="iusub2" metadataIdRef="meta1"/>

<select:parameters id="param1">
<nmwg:parameter name="startTime">1142926720</nmwg:parameter>
<nmwg:parameter name="endTime">1142926740</nmwg:parameter>
<nmwg:parameter name="consolidationFunction">AVERAGE</nmwg:parameter>
<nmwg:parameter name="resolution">10</nmwg:parameter>
</select:parameters>

<nmwg:eventType>select</nmwg:eventType>
</nmwg:metadata>

<!-- This is the specific data we wish to see -->
<nmwg:data id="data1" metadataIdRef="meta2"/>

</nmwg:message> ------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>

<nmwg:message xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"; id="localhost.-669a278f:10a1bc39bfc:-7f4e">

<nmwg:metadata id="meta1">

<perfsonar:subject xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"; id="subj1">

<nmwgt:interface xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>

<nmwgt:hostName>r85.cesnet.cz</nmwgt:hostName>

<nmwgt:ifName>Te1/4</nmwgt:ifName>

<nmwgt:ifDescription> CESNET</nmwgt:ifDescription>

<nmwgt:ifAddress type="ipv4">195.113.156.4</nmwgt:ifAddress>

<nmwgt:direction>in</nmwgt:direction>

<nmwgt:authRealm>CESNET</nmwgt:authRealm>

</nmwgt:interface>

</perfsonar:subject>

<nmwg:eventType>utilization</nmwg:eventType>

</nmwg:metadata>

<nmwg:data id="localhost.-669a278f:10a1bc39bfc:-7f4f" metadataIdRef="meta1">

<nmwg:datum timeValue="1142926730" value="1.26785678E7" />

<nmwg:datum timeValue="1142926740" value="1.29994506E7" />

</nmwg:data>

</nmwg:message>


------------------------------------------------------------------------

Response received from the web service:
<nmwg:message xmlns="http://ggf.org/ns/nmwg/base/2.0/"; xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"; xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/"; xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"; xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/"; xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"; xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";><nmwg:metadata id="meta1"><perfsonar:subject><nmwgt:interface><nmwgt:ipAddress type="ipv4"/><nmwgt:hostName>r85.cesnet.cz</nmwgt:hostName><nmwgt:ifName>Te1/4</nmwgt:ifName><nmwgt:ifDescription>GN2 -&gt; CESNET</nmwgt:ifDescription><nmwgt:ifAddress type="ipv4">195.113.156.4</nmwgt:ifAddress><nmwgt:direction>in</nmwgt:direction><nmwgt:authRealm>CESNET</nmwgt:authRealm></nmwgt:interface></perfsonar:subject><nmwg:eventType>utilization</nmwg:eventType></nmwg:metadata><nmwg:data id="datadatameta1" metadataIdRef="meta1"><nmwg:datum/><nmwg:datum/></nmwg:data></nmwg:message>

------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>

<nmwg:store xmlns="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"; xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"; xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"; xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/"; xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>



<nmwg:metadata id="meta1">
<nmwg:subject id="subj1">
<nmwgt:interface>
<nmwgt:hostName>r85.cesnet.cz</nmwgt:hostName>
<nmwgt:ifAddress type="ipv4">195.113.156.4</nmwgt:ifAddress>
<nmwgt:ifName>Te1/4</nmwgt:ifName>
<nmwgt:ifDescription>GN2 -> CESNET</nmwgt:ifDescription>
<nmwgt:direction>in</nmwgt:direction>
<nmwgt:authRealm>CESNET</nmwgt:authRealm>
</nmwgt:interface>
</nmwg:subject>
<nmwg:eventType>utilization</nmwg:eventType>
</nmwg:metadata>

<nmwg:data id="data1" metadataIdRef="meta1">
<nmwg:key>
<nmwg:parameters>
<nmwg:parameter name="file">/usr/local/sonar/snmp_rrd/cesnet_gn2.rrd</nmwg:parameter>
<nmwg:parameter name="dataSource">bytes_in</nmwg:parameter>
</nmwg:parameters>
</nmwg:key>
</nmwg:data>

</nmwg:store>




--
Nicolas
______________________________________________________________________

Nicolas Simar
Network Engineer

DANTE - www.dante.net

Tel - BE: +32 (0) 4 366 93 49
Tel - UK: +44 (0)1223 371 300
Mobile: +44 (0) 7740 176 883

City House, 126-130 Hills Road
Cambridge CB2 1PQ
UK
_____________________________________________________________________







Archive powered by MHonArc 2.6.16.

Top of Page