Bug 1376078 - [RestAPI] Respnose not valid against schema.xsd
Summary: [RestAPI] Respnose not valid against schema.xsd
Keywords:
Status: CLOSED DUPLICATE of bug 1303346
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.6.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ovirt-4.1.0-alpha
: ---
Assignee: Juan Hernández
QA Contact: meital avital
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-14 15:30 UTC by Gonza
Modified: 2016-09-15 14:12 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-15 14:12:46 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Gonza 2016-09-14 15:30:51 UTC
Description of problem:
"datum" child node for "value" node appears to be missing in some responses from RestAPI while it is mandatory on schema.xsd

From: /api/hosts/3f978460-407a-48e9-ae9d-2ad40e3ce59e/nics/270ad0a2-2739-4ef2-90f3-d424e1cb3e07/statistics
...
    <statistic href="/api/hosts/3f978460-407a-48e9-ae9d-2ad40e3ce59e/nics/270ad0a2-2739-4ef2-90f3-d424e1cb3e07/statistics/0b9ddd6a-fc1b-398a-9f95-7a863c753017" id="0b9ddd6a-fc1b-398a-9f95-7a863c753017">
        <name>data.total.rx</name>
        <description>Total received data</description>
        <values type="INTEGER">
            <value/>
        </values>
        <type>COUNTER</type>
        <unit>BYTES</unit>
        <host_nic href="/api/hosts/3f978460-407a-48e9-ae9d-2ad40e3ce59e/nics/270ad0a2-2739-4ef2-90f3-d424e1cb3e07" id="270ad0a2-2739-4ef2-90f3-d424e1cb3e07"/>
    </statistic>
...

From ovirt-engine/api?schema
...
      <xs:element name="datum" type="xs:decimal" minOccurs="1" maxOccurs="1"/>
...


Version-Release number of selected component (if applicable):
rhevm-3.6.9.1-0.1.1.el6.noarch

How reproducible:
100%

Steps to Reproduce:
1. Query rest api for /api/vms/{id}/nics/{id} endpoint on a new VM
2. Check datum node is present under value node

Actual results:
datum field missing

Expected results:
datum field is returned and RestAPI response is validated against schema.xsd

Additional info:
Also found under:
/api/vms/{id}/nics/{id}

Comment 1 Juan Hernández 2016-09-15 14:12:46 UTC
This is the same problem described in bug 1303346. It was targeted for version 4 of the engine, and is now fixed. I am closing this bug as duplicate.

*** This bug has been marked as a duplicate of bug 1303346 ***


Note You need to log in before you can comment on or make changes to this bug.