perfsonar-dev - RE: [pS-dev] Problem in adding New Metric!!
Subject: perfsonar development work
List archive
- From:
- To: "Asif, Mohammad" <>
- Cc: Roman Lapacz <>,
- Subject: RE: [pS-dev] Problem in adding New Metric!!
- Date: Sat, 13 Jan 2007 02:04:25 -0200
Hi Asif,
It seems right... The only thing I'm not sure is if the xquery will match the src and dst endPointPair without the 'type' attribute. As Roman said, try installing the eXist client and doing that query from there (the one that appears in the perfsonar.log), probably it won't give you any results and you can test different querys to see whats wrong...
Guilherme
Quoting "Asif, Mohammad"
<>:
I have checked the exist and the metadata configuration file with Traceroute metadata is registered under sqlmaconfig resource.
and the steps I have taken are mentioned here:
https://confluence.slac.stanford.edu/display/IEPM/Adding+new+Metric+to+SQLMA
Infact, the metadata configuration file registered in exist plus Traceroute request both are attached in this mail. This request is not of production quality but just to check the functionality.
best regards..
Asif
-----Original Message-----
From:
[mailto:]
Sent: Fri 1/12/2007 5:46 AM
To: Roman Lapacz
Cc: Asif, Mohammad;
Subject: Re: [pS-dev] Problem in adding New Metric!!
I think this error happens only when the metadata requested isn't
registered in the SQL MA eXist database. I have added OWAMP and BWCTL
metric to SQL MA before so I have gone through probably all of the
problems related. Could you send us which steps you took to add the
Traceroute metric?
Guilherme
Quoting Roman Lapacz
<>:
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
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
- Problem in adding New Metric!!, Asif, Mohammad, 01/11/2007
- Re: [pS-dev] Problem in adding New Metric!!, Roman Lapacz, 01/12/2007
- Re: [pS-dev] Problem in adding New Metric!!, Roman Lapacz, 01/12/2007
- Re: [pS-dev] Problem in adding New Metric!!, fernandes, 01/12/2007
- RE: [pS-dev] Problem in adding New Metric!!, Asif, Mohammad, 01/12/2007
- RE: [pS-dev] Problem in adding New Metric!!, fernandes, 01/12/2007
- RE: [pS-dev] Problem in adding New Metric!!, Asif, Mohammad, 01/12/2007
- Re: [pS-dev] Problem in adding New Metric!!, fernandes, 01/12/2007
Archive powered by MHonArc 2.6.16.