Hide Forgot
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:
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.