Bug 1075102

Summary: Duplicated CD device when creating VMs from the blank template
Product: [Retired] oVirt Reporter: Vitor de Lima <vitor.lima>
Component: ovirt-engine-coreAssignee: Tomas Jelinek <tjelinek>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Stehlik <pstehlik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.4CC: gklein, gustavo.pedrosa, iheim, leonardo.bianconi, ofrenkel, rbalakri, vitor.lima, yeylon
Target Milestone: ---   
Target Release: 3.4.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-24 08:08:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1118689, 1154674    

Description Vitor de Lima 2014-03-11 13:55:47 UTC
Description of problem:
When creating a VM from the blank template, if there is more than one device attached to the blank template (in the vm_device table), the CD device is created multiple times.

Version-Release number of selected component (if applicable):
3.4rc2

How reproducible:
Sometimes

Steps to Reproduce:
1. Create a new VM from the blank template and attach an ISO to it
2. Run the VM

Actual results:
QEMU fails with a duplicated CD device in the same IDE address.

Expected results:
The VM should start.

Additional info:
I don't know how an extra device got into the blank template, please discuss in the attached gerrit change how to solve this issue.

Comment 1 Omer Frenkel 2014-03-12 09:20:19 UTC
i wonder how this happened, i could not reproduce this on master
what do you get if you run this in the db:
 select * from vm_device where vm_id = '00000000-0000-0000-0000-000000000000';

Comment 2 Vitor de Lima 2014-03-12 11:47:36 UTC
This query returns two devices: a cirrus video card and a sound card.

Comment 3 Sandro Bonazzola 2014-05-08 13:55:33 UTC
This is an automated message.

oVirt 3.4.1 has been released.
This issue has been retargeted to 3.5.0 since it has not been marked as high priority or severity issue, please retarget if needed.

Comment 4 Omer Frenkel 2014-09-15 11:02:55 UTC
moving back to post in order to get it to 3.4.4 as well

Comment 5 Sandro Bonazzola 2014-09-24 08:08:51 UTC
oVirt 3.4.4 has been released.