| Summary: | [RestAPI] Respnose not valid against schema.xsd | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Gonza <grafuls> |
| Component: | ovirt-engine | Assignee: | Juan Hernández <juan.hernandez> |
| Status: | CLOSED DUPLICATE | QA Contact: | meital avital <mavital> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.6.9 | CC: | gklein, lsurette, oourfali, rbalakri, Rhev-m-bugs, srevivo, ykaul |
| Target Milestone: | ovirt-4.1.0-alpha | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-09-15 14:12:46 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
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 *** |
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}