perfsonar-dev - RE: [pS-dev] Problem in adding New Metric!!
Subject: perfsonar development work
List archive
- From: "Asif, Mohammad" <>
- To: <>, "Roman Lapacz" <>
- Cc: <>
- Subject: RE: [pS-dev] Problem in adding New Metric!!
- Date: Fri, 12 Jan 2007 14:08:22 -0800
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.
<?xml version="1.0" encoding="UTF-8"?> <nmwg:store xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/" xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/" xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/" xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/" xmlns:traceroute="http://ggf.org/ns/nmwg/tools/traceroute/2.0/" xmlns:nmwgtopo="http://ggf.org/ns/nmwg/topology/2.0/" xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/" xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/" xmlns="http://ggf.org/ns/nmwg/base/2.0/"> <!-- Traceroute metadata section --> <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:parameters id="param1"> <nmwg:parameter name="supportedEventType">traceroute </nmwg:parameter> </nmwg:parameters> </nmwg:metadata> <nmwg:data id="data1-traceroute" metadataIdRef="traceroute-meta1"> <nmwg:key> <nmwg:parameters> <nmwg:parameter name="metadataId">traceroute-meta1</nmwg:parameter> <nmwg:parameter name="ibatisConfig">ibatis-SqlMapConfig-traceroute.xml</nmwg:parameter> </nmwg:parameters> </nmwg:key> </nmwg:data> <!-- utilization metadata section --> <nmwg:metadata id="meta1-test"> <netutil:subject id="subj1"> <nmwgt:interface> <nmwgt:hostName>test-hostName</nmwgt:hostName> <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress> <nmwgt:ifName>test-0</nmwgt:ifName> <nmwgt:ifDescription>test description</nmwgt:ifDescription> <nmwgt:direction>in</nmwgt:direction> <nmwgt:authRealm>TestRealm</nmwgt:authRealm> <nmwgt:capacity>1000BaseT</nmwgt:capacity> </nmwgt:interface> </netutil:subject> <nmwg:parameters> <nmwg:parameter name="supportedEventType">utilization</nmwg:parameter> </nmwg:parameters> </nmwg:metadata> <nmwg:data id="data1-test" metadataIdRef="meta1-test"> <nmwg:key> <nmwg:parameters> <nmwg:parameter name="metadataId">meta1-test</nmwg:parameter> <nmwg:parameter name="ibatisConfig">ibatis-SqlMapConfig-utilization.xml</nmwg:parameter> </nmwg:parameters> </nmwg:key> </nmwg:data> <!-- L2 status section --> <nmwg:metadata id="md1"> <nmwg:subject id="sub-DFN-LRZ"> <nmwgtopo3:node id="DFN-LRZ"> <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type> <nmwgtopo3:name type="logical">DFN-LRZ</nmwgtopo3:name> <nmwgtopo3:country>Germany</nmwgtopo3:country> <nmwgtopo3:city>Munich</nmwgtopo3:city> <nmwgtopo3:institution>Leibniz Rechenzentrum</nmwgtopo3:institution> <nmwgtopo3:latitude>X</nmwgtopo3:latitude> <nmwgtopo3:longitude>Y</nmwgtopo3:longitude> </nmwgtopo3:node> </nmwg:subject> </nmwg:metadata> <nmwg:metadata id="md2"> <nmwg:subject id="sub-DFN-MUE"> <nmwgtopo3:node id="DFN-MUE"> <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type> <nmwgtopo3:name type="logical">DFN-MUE</nmwgtopo3:name> <nmwgtopo3:country>Germany</nmwgtopo3:country> <nmwgtopo3:city>Muenster</nmwgtopo3:city> <nmwgtopo3:institution>DFN-Verein</nmwgtopo3:institution> <nmwgtopo3:latitude>X</nmwgtopo3:latitude> <nmwgtopo3:longitude>Y</nmwgtopo3:longitude> </nmwgtopo3:node> </nmwg:subject> </nmwg:metadata> <nmwg:metadata id="md3"> <nmwg:subject id="sub-SURFnet-MUE"> <nmwgtopo3:node id="SURFnet-MUE"> <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type> <nmwgtopo3:name type="logical">SURFnet-MUE</nmwgtopo3:name> <nmwgtopo3:country>Netherlands</nmwgtopo3:country> <nmwgtopo3:city>Amsterdam</nmwgtopo3:city> <nmwgtopo3:institution>Surfnet</nmwgtopo3:institution> <nmwgtopo3:latitude>X</nmwgtopo3:latitude> <nmwgtopo3:longitude>Y</nmwgtopo3:longitude> </nmwgtopo3:node> </nmwg:subject> </nmwg:metadata> <nmwg:metadata id="md4"> <nmwg:subject id="sub-PSNC-PL"> <nmwgtopo3:node id="PSNC-PL"> <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type> <nmwgtopo3:name type="logical">PSNC-PL</nmwgtopo3:name> <nmwgtopo3:country>Poland</nmwgtopo3:country> <nmwgtopo3:city>Poznan</nmwgtopo3:city> <nmwgtopo3:institution>PSNC</nmwgtopo3:institution> <nmwgtopo3:latitude>X</nmwgtopo3:latitude> <nmwgtopo3:longitude>Y</nmwgtopo3:longitude> </nmwgtopo3:node> </nmwg:subject> </nmwg:metadata> <nmwg:metadata id="md5"> <nmwg:subject id="sub-PSNC-PL-2"> <nmwgtopo3:node id="PSNC-PL-2"> <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type> <nmwgtopo3:name type="logical">PSNC-PL-2</nmwgtopo3:name> <nmwgtopo3:country>Poland</nmwgtopo3:country> <nmwgtopo3:city>Poznan</nmwgtopo3:city> <nmwgtopo3:institution>PSNC</nmwgtopo3:institution> <nmwgtopo3:latitude>X-2</nmwgtopo3:latitude> <nmwgtopo3:longitude>Y-2</nmwgtopo3:longitude> </nmwgtopo3:node> </nmwg:subject> </nmwg:metadata> <nmwg:metadata id="md-link-LRZ-SARA-DEISA-001"> <nmwg:subject id="sub1"> <nmtl2:link> <nmtl2:name type="logical">DFN-link-1234</nmtl2:name> <nmtl2:globalName type="logical">LRZ-SARA-DEISA-001</nmtl2:globalName> <nmtl2:type>NREN_Link</nmtl2:type> <nmwgtopo3:node nodeIdRef="DFN-LRZ"> <nmwgtopo3:role>EndPoint</nmwgtopo3:role> </nmwgtopo3:node> <nmwgtopo3:node nodeIdRef="DFN-MUE"> <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role> </nmwgtopo3:node> </nmtl2:link> </nmwg:subject> <nmwg:parameters> <nmwg:parameter name="supportedEventType">Path.Status</nmwg:parameter> </nmwg:parameters> </nmwg:metadata> <nmwg:metadata id="md-link-LRZ-SARA-DEISA-002"> <nmwg:subject id="sub1"> <nmtl2:link> <nmtl2:name type="logical">DFN-Surfnet-Link-5678</nmtl2:name> <nmtl2:globalName type="logical">LRZ-SARA-DEISA-002</nmtl2:globalName> <nmtl2:type>ID_Link</nmtl2:type> <nmwgtopo3:node nodeIdRef="DFN-MUE"> <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role> </nmwgtopo3:node> <nmwgtopo3:node nodeIdRef="SURFnet-MUE"> <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role> </nmwgtopo3:node> </nmtl2:link> </nmwg:subject> <nmwg:parameters> <nmwg:parameter name="supportedEventType">Path.Status</nmwg:parameter> </nmwg:parameters> </nmwg:metadata> <nmwg:metadata id="md-link-PSNC-DFN-MUE-003"> <nmwg:subject id="sub1"> <nmtl2:link> <nmtl2:name type="logical">PSNC-DFN-MUE-Link-1001</nmtl2:name> <nmtl2:globalName type="logical">PSNC-DFN-MUE-003</nmtl2:globalName> <nmtl2:type>ID_Link</nmtl2:type> <nmwgtopo3:node nodeIdRef="PSNC-PL"> <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role> </nmwgtopo3:node> <nmwgtopo3:node nodeIdRef="DFN-MUE"> <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role> </nmwgtopo3:node> </nmtl2:link> </nmwg:subject> <nmwg:parameters> <nmwg:parameter name="supportedEventType">Path.Status</nmwg:parameter> </nmwg:parameters> </nmwg:metadata> <nmwg:metadata id="md-link-PSNC-2-DFN-MUE-004"> <nmwg:subject id="sub1"> <nmtl2:link> <nmtl2:name type="logical">PSNC-2-DFN-MUE-Link-1002</nmtl2:name> <nmtl2:globalName type="logical">PSNC-2-DFN-MUE-004</nmtl2:globalName> <nmtl2:type>ID_Link</nmtl2:type> <nmwgtopo3:node nodeIdRef="PSNC-PL-2"> <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role> </nmwgtopo3:node> <nmwgtopo3:node nodeIdRef="DFN-MUE"> <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role> </nmwgtopo3:node> </nmtl2:link> </nmwg:subject> <nmwg:parameters> <nmwg:parameter name="supportedEventType">Path.Status</nmwg:parameter> </nmwg:parameters> </nmwg:metadata> <nmwg:data id="d1" metadataIdRef="md-link-LRZ-SARA-DEISA-001"> <nmwg:key> <nmwg:parameters> <nmwg:parameter name="pathId">DFN-link-1234</nmwg:parameter> <nmwg:parameter name="ibatisConfig">ibatis-SqlMapConfig-L2-status-domain.xml</nmwg:parameter> </nmwg:parameters> </nmwg:key> </nmwg:data> <nmwg:data id="d2" metadataIdRef="md-link-LRZ-SARA-DEISA-002"> <nmwg:key> <nmwg:parameters> <nmwg:parameter name="pathId">DFN-Surfnet-Link-5678</nmwg:parameter> <nmwg:parameter name="ibatisConfig">ibatis-SqlMapConfig-L2-status-domain.xml</nmwg:parameter> </nmwg:parameters> </nmwg:key> </nmwg:data> <nmwg:data id="d3" metadataIdRef="md-link-PSNC-DFN-MUE-003"> <nmwg:key> <nmwg:parameters> <nmwg:parameter name="pathId">PSNC-DFN-MUE-Link-1001</nmwg:parameter> <nmwg:parameter name="ibatisConfig">ibatis-SqlMapConfig-L2-status-domain.xml</nmwg:parameter> </nmwg:parameters> </nmwg:key> </nmwg:data> <nmwg:data id="d4" metadataIdRef="md-link-PSNC-2-DFN-MUE-004"> <nmwg:key> <nmwg:parameters> <nmwg:parameter name="pathId">PSNC-2-DFN-MUE-Link-1002</nmwg:parameter> <nmwg:parameter name="ibatisConfig">ibatis-SqlMapConfig-L2-status-interdomain.xml</nmwg:parameter> </nmwg:parameters> </nmwg:key> </nmwg:data> </nmwg:store>
<?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>
- 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.