we are missing a way to invoke the GetVmsByDiskGuid query in the REST API. this query is being used in the GUI in the 'Disks -> VMs' sub-tab. [I assume that this query returns all of the VMs to which a specified Disk is attached]
Currently the representation of the /disks/{disk:id} resource already supports a "vm" element, intended to contain the reference to the virtual machine that the disk belongs to. In fact this "vm" element is part of the more general "device" entity. Unfortunately this reference is only populated for /vms/{vm:id}/disks collection, which is useless in this case. And even when it is populated it is populated automatically with only one reference, taken from the parent resource. For example, when requesting /vms/123/disks/456 the reference is automatically populated with this: <disk> <vm id="123"/> </disk> To fix this bug we need to do the following: 1. Change the XML schema so that instead of the "vm" element (or in addition to, in order to preserve backwards compatibility) we have a "vms" element containing potentially multiple "vm" elements. 2. Change the top level disk resource so that the "vms" element is populated invoking the GetVmsByDiskGuid query. 3. Remove the "vm" element, in 4.0.
verified on ovirt-master3.6
RHEV 3.6.0 has been released, setting status to CLOSED CURRENTRELEASE