| Summary: | VM doesn't show it's random generator in REST | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | jniederm | ||||
| Component: | RestAPI | Assignee: | Juan Hernández <juan.hernandez> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Pavel Stehlik <pstehlik> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 4.1.0 | CC: | bugs, jniederm | ||||
| Target Milestone: | --- | Flags: | rule-engine:
planning_ack?
rule-engine: devel_ack? rule-engine: testing_ack? |
||||
| 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-22 14:00:26 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | Virt | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
The "rng_source" attribute isn't populated unless you include the "All-Content: true" header, as described here: https://github.com/oVirt/ovirt-engine-api-model/blob/master/src/main/java/services/VmService.java#L190-L213 That was a design decision, as populating that attribute requires an additional query and thus impacts performance. Did you include that header in your request? No. Thanks for explanation. That solves the problem. |
Created attachment 1203685 [details] vm.xml Description of problem: Tag <rng_device> is not show when getting VM with random device assigned. Version-Release number of selected component (if applicable): 4.1 master, build 50b92e5 How reproducible: 100% Steps to Reproduce: 1. Make sure random devices are enabled in Cluster 2. Create a VM with random device ("Random Generator" side-tab) 3. GET api/vms/{vmId} Actual results: serialized VM not mentioning random device (see attachment) Expected results: Additional info: