Bug 850719

Summary: Internal error while running pool VM created from template that was created from a VM with native usb redirection: internal error PIIX3 USB controller must have PCI address 0:0:1.2.
Product: Red Hat Enterprise Virtualization Manager Reporter: Tomas Dosek <tdosek>
Component: ovirt-engineAssignee: Oved Ourfali <oourfali>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Svaty <lsvaty>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 3.1.0CC: dyasny, hateya, iheim, kvanbake, lpeer, maxim, michal.skrivanek, mkenneth, mkrcmari, oourfali, oramraz, Rhev-m-bugs, sputhenp, yeylon, ykaul
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: si17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
Attachments:
Description Flags
Logs none

Description Tomas Dosek 2012-08-22 08:44:58 UTC
Created attachment 606174 [details]
Logs

Description of problem:
When user tries to run a pool VM from a template, which was created from a VM with native USB redirection, this operation fails with internal error.

The error is: internal error PIIX3 USB controller must have PCI address 0:0:1.2.

I see two problems here:
1) USB redirection settings is not transfered to template settings (at least isn't displayed that way in webadmin)
2) In case that Pool's Console settings is set to disable USB redirection (default for pool creation) it shouldn't apply

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

How reproducible:
100 %

Steps to Reproduce:
1. Create a VM - have Native USB redirection set on it
2. Create a template from this VM (check the usb redirection - it's not in template as described in #1)
3. Create a pool from the template (with default settings to disable USB redirection)
4. Assign the pool to some user and try to run the pool VM.
  
Actual results:
Template doesn't copy USB redirection settings
While running the VM QEMU error pops up in event log - vm fails to run

Expected results:
Template should copy USB redirection settings of original VM.

VM should run with a) USB redirection disabled in case that it's disabled during pool's creation, b) with USB redirection enabled in native mode in case it wasn't and the template contains the settings

Additional info:
Attaching logs of the run failure.

Comment 2 Oved Ourfali 2012-08-28 15:33:04 UTC
Posted patch: http://gerrit.ovirt.org/#/c/7544

Comment 3 Oved Ourfali 2012-08-29 07:55:38 UTC
Commit: 95d556e0e8f036f34c066747576e529a5b2ff1e0

http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=commit;h=95d556e0e8f036f34c066747576e529a5b2ff1e0

Comment 6 Itamar Heim 2012-09-26 23:20:43 UTC
*** Bug 860689 has been marked as a duplicate of this bug. ***