Bug 641034

Summary: findLiveData doesn't return any Live Data
Product: [Other] RHQ Project Reporter: Isaac <isaac.christoffersen>
Component: Web ServicesAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED NOTABUG QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: low    
Version: 3.0.0CC: isaac.christoffersen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-09 16:04:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Isaac 2010-10-07 15:36:53 UTC
Description of problem:
findLiveData only returns the Measurement Names and Ids and does not return any live data values.

Version-Release number of selected component (if applicable):


How reproducible:
Consistent.

Steps to Reproduce:
1. Call login action to get sessionId
2. Call findLiveData action

Example request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.rhq-project.org/2.3/2009/9/Webservices.xsd">
   <soapenv:Header/>
   <soapenv:Body>
      <web:findLiveData>
         <!--Optional:-->
         <subject>
            <factive>true</factive>
            <fsystem>false</fsystem>
            <id>10001</id>
            <name>isaac</name>
            <sessionId>1825703509</sessionId>
         </subject>
         <resourceId>10001</resourceId>  <!-- Platform -->
         <!--Zero or more repetitions:-->
         <definitionIds>10025</definitionIds>  
         <definitionIds>10026</definitionIds>  
         <definitionIds>10027</definitionIds>
         <definitionIds>10029</definitionIds>
      </web:findLiveData>
   </soapenv:Body>
</soapenv:Envelope>
Actual results:

Example Response:

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
   <env:Header/>
   <env:Body>
      <ns2:findLiveDataResponse xmlns:ns2="http://www.rhq-project.org/2.3/2009/9/Webservices.xsd">
         <return>
            <id/>
            <name>Native.SwapInfo.used</name>
         </return>
         <return>
            <id/>
            <name>CpuPerc.idle</name>
         </return>
         <return>
            <id/>
            <name>Native.SwapInfo.total</name>
         </return>
         <return>
            <id/>
            <name>CpuPerc.user</name>
         </return>
      </ns2:findLiveDataResponse>
   </env:Body>
</env:Envelope>

Expected results:

Need the Measurement values for each definitionId

Additional info:

Problem seems to be that the org.rhq.core.domain.measurement.MeasurementData is an Abstract and there's no mapping of the implementations so that the WSDL can generate the response types.

Comment 1 Isaac 2010-10-07 23:43:02 UTC
Adding the following annotation to the org.rhq.core.domain.measurement.MeasurementData java class resolves the issue: 


@XmlSeeAlso( { MeasurementDataNumeric.class, 
	       MeasurementDataNumeric1D.class, 
  	       MeasurementDataNumeric1H.class, 
  	       MeasurementDataNumeric6H.class,
	       MeasurementDataTrait.class
             })

Comment 2 Jay Shaughnessy 2014-05-09 16:04:12 UTC
WebServices are no longer supported.