Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] Problem in adding New Metric!!

Subject: perfsonar development work

List archive

Re: [pS-dev] Problem in adding New Metric!!


Chronological Thread 
  • From: Roman Lapacz <>
  • To: "Asif, Mohammad" <>
  • Cc:
  • Subject: Re: [pS-dev] Problem in adding New Metric!!
  • Date: Fri, 12 Jan 2007 11:12:10 +0100 (CET)


One comment more: could you execute xquery statement, that you have in the log, using eXist client and see the results?

Roman



On Thu, 11 Jan 2007, Asif, Mohammad wrote:


Hi,

I am trying to add Traceroute metric to my SQL-MA. I have one error but I
don't understand what I am missing. Any help will be highly appretiated.


Error Message as Response:
<?xml version="1.0" encoding="UTF-8"?>
<nmwg:message id="msg_resp" messageIdRef="msg" type="SetupDataResponse"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
<nmwg:metadata id="resultCodeMetadata">
<nmwg:eventType>warning.ma.metadata_configuration</nmwg:eventType>
</nmwg:metadata>
<nmwg:data id="resultDescriptionData_for_resultCodeMetadata"
metadataIdRef="resultCodeMetadata">
<nmwgr:datum
xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/";>MetadataConfigurationStorageManager.fetch:
No metadata in rrd metadata configuration file</nmwgr:datum>
</nmwg:data>
</nmwg:message>
__________________________________________________________

Request Message:

<?xml version="1.0" encoding="UTF-8"?>
<nmwg:message id="msg" type="SetupDataRequest"

xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:traceroute= "http://ggf.org/ns/nmwg/tools/traceroute/2.0/";
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>

<nmwg:metadata id="traceroute-meta1">
<traceroute:subject id="sub1">
<nmwgt:endPointPair>
<nmwgt:src type="hostname"
value="iepm-bw.slac.stanford.edu"/>
<nmwgt:dst type="hostname"
value="iepm-bw.niit.edu.pk"/>
</nmwgt:endPointPair>
</traceroute:subject>
<nmwg:eventType>traceroute</nmwg:eventType>
</nmwg:metadata>
<nmwg:data metadataIdRef="traceroute-meta1" id="data"/>
</nmwg:message>
____________________________________________________________________

The XQuery generated by TracerouteQueryGenerator.class and full logs from
perfsonar.log


2007-01-11 12:06:32,538 INFO - RequestHandler: Service received a request
2007-01-11 12:06:32,538 DEBUG - RequestHandler: Calling on parser to parse
the request
2007-01-11 12:06:32,554 DEBUG - RequestHandler: Message object constructed
from request. Request is of type: SetupDataRequest
2007-01-11 12:06:32,554 DEBUG - MessageHandlerFactory: classname asked for is
org.perfsonar.commons.messages.SetupDataRequest
2007-01-11 12:06:32,554 DEBUG - ExistDbFactory: Creating XML RPC Data
Repository: (xmldb:exist://localhost:8680/exist/xmlrpc/db/sqlmaconfig,
sqlmaservice, sqlmaservice)
2007-01-11 12:06:32,554 DEBUG - XmlDbDataRepository: created
2007-01-11 12:06:32,554 DEBUG - ExistDbFactory: Creating XML RPC Storage
Manager
2007-01-11 12:06:32,554 DEBUG - ExistDbXmlrpcXmlStorageManager: initStorage
with data repository
2007-01-11 12:06:32,554 DEBUG - ExistDbFactory: Creating XML RPC Data
Repository: (xmldb:exist://localhost:8680/exist/xmlrpc/db/sqlmaconfig,
sqlmaservice, sqlmaservice)
2007-01-11 12:06:32,554 DEBUG - XmlDbDataRepository: created
2007-01-11 12:06:32,554 DEBUG - ExistDbFactory: Creating XML RPC Storage
Manager
2007-01-11 12:06:32,555 DEBUG - ExistDbXmlrpcXmlStorageManager: initStorage
with data repository
2007-01-11 12:06:32,555 DEBUG - SetupDataRequest: MessageHandler created
2007-01-11 12:06:32,555 DEBUG - RequestHandler: Calling on MessageHandler
[class org.perfsonar.commons.messages.SetupDataRequest] to satisfy request
2007-01-11 12:06:32,555 DEBUG - Request: MessageHangler.execute()
2007-01-11 12:06:32,555 DEBUG - RRDTypeMAServiceEngine.takeAction: Received a
request of type - GET_DATA
2007-01-11 12:06:32,555 DEBUG - MetadataConfigurationStorageManager.fetch:
xquery to fetch metadata/data from the metadata configuration:

declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/'; declare namespace
traceroute='http://ggf.org/ns/nmwg/tools/traceroute/2.0/'; declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';

let $res :=
for $i in //nmwg:metadata
where 1
and $i/nmwg:parameters/nmwg:parameter[(text()='traceroute' and
@name='supportedEventType') or (@value='traceroute' and
@name='supportedEventType')]and
$i/traceroute:subject/nmwgt:endPointPair/nmwgt:src[@value='iepm-bw.slac.stanford.edu']and

$i/traceroute:subject/nmwgt:endPointPair/nmwgt:dst[@value='iepm-bw.niit.edu.pk']
return $i

let $metaids :=
for $j in $res
return fn:data($j/@id)

let $datas :=
for $k in $metaids
let $d :=
for $l in //nmwg:data
where $l/@metadataIdRef = $k
return $l
return $d

return ($res, $datas)

2007-01-11 12:06:32,555 DEBUG - ExistXMLDatabaseAccess: perform XQuery
2007-01-11 12:06:32,555 DEBUG - ExistDbXmlrpcXmlDataRepository: connect
2007-01-11 12:06:32,605 DEBUG - MetadataConfigurationStorageManager.fetch:
The number of elements returned as a result of xquery statement: 0
2007-01-11 12:06:32,608 INFO - RequestHandler: Service sent a successful
response




Archive powered by MHonArc 2.6.16.

Top of Page