Created attachment 927722 [details] vdsm and engine and server logs Description of problem: Created Pool of VM's from template. Each VM appears twice in the Template - VMs tab Version-Release number of selected component (if applicable): ovirt-engine-3.5.0-0.0.master.20140804172041.git23b558e.el6.noarch vdsm-4.16.1-6.gita4a4614.el6.x86_64 How reproducible: Every time Steps to Reproduce: Steps to Reproduce: 1. created a VM with 1 disk of 2 GB thinly provisioned on a iscsi block device 2. Created a template of the VM 3. Created a Pool of 3 VMs from the template 4. Brought up one of the VMs 5. Checked the Used and Available space on the Storage Domain 6. Created a snapshot of the VM that was brought up 7. Checked the Template Tab >>> Vritual Machine Sub Tab >>> List of VMs - >>>>ALL the VMs are displayed twice SEE THE ATTACHED SCREEN SHOT Actual results: All the VMs in the list are displayed twice Expected results: Each VM should only be displayed once Additional info:
the problem is that vm_templates_storage_domain db view returns duplicate templates, and the search is using it, so we get duplicate result. i saw the same with just creating a vm from template (thin provision) this also happens when searching by template name in the VMs main tab (Vms: Templates.name=*)
update, after investigation: this view returns duplicates, because it is doing a join with vm-device table, that is the link between template and its disks (to get the storage domain) which has multiple device per template, hence multiple results. the bigger problem is that we will always get multiple result for templates with multiple disks on multiple domains, seems the only way out is using distinct in the search queries
ok, looks good with rhevm-backend-3.5.0-0.13.beta.el6ev.noarch
oVirt 3.5 has been released and should include the fix for this issue.