Bug 1261075 - hostdev_passthrough: VM with attached host USB device failed to run.
Summary: hostdev_passthrough: VM with attached host USB device failed to run.
Keywords:
Status: CLOSED DUPLICATE of bug 1248105
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: ---
: 3.6.0
Assignee: Martin Polednik
QA Contact:
URL:
Whiteboard: virt
Depends On: 1248105
Blocks: 1003572
TreeView+ depends on / blocked
 
Reported: 2015-09-08 14:10 UTC by Nisim Simsolo
Modified: 2015-09-17 09:08 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-17 09:08:34 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
engine.log (7.38 MB, text/plain)
2015-09-08 14:11 UTC, Nisim Simsolo
no flags Details
amd host vdsm.log (16.74 MB, text/plain)
2015-09-08 14:15 UTC, Nisim Simsolo
no flags Details
intel vdsm.log (8.15 MB, text/plain)
2015-09-08 14:17 UTC, Nisim Simsolo
no flags Details

Description Nisim Simsolo 2015-09-08 14:10:06 UTC
Description of problem:
When attaching host USB device to VM, the VM failed to run.
Issue occurred on AMD and Intel hosts and, RHEL7 and windows 2012 VMs and different USB devices (DOK and Keyboard).
Same VMs run properly when detaching host USB device.

Observing engine.log shows the next ERROR:

2015-09-08 16:41:35,933 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ForkJoinPool-1-worker-5) [] Correlation ID: null, Call 
Stack: null, Custom Event ID: -1, Message: VM rhel7_amd is down with error. Exit message: local variable 'device' referenced before assignment.
2015-09-08 16:41:35,934 INFO  [org.ovirt.engine.core.vdsbroker.VmAnalyzer] (ForkJoinPool-1-worker-5) [] Running on vds during rerun failed vm: '4e47202c-f55a
-47c2-ae8f-2d0567c266b9'

Version-Release number of selected component (if applicable):
rhevm-3.6.0-0.13.master.el6
sanlock-3.2.4-1.el7.x86_64
qemu-kvm-rhev-2.3.0-22.el7.x86_64
vdsm-4.17.5-1.el7ev.noarch
libvirt-client-1.2.17-5.el7.x86_64

How reproducible:
Consistently

Steps to Reproduce:
1. Attach host USB device to VM.
2. Run VM.
3.

Actual results:
VM failed to run and return to "down" state.
Next audit log displayed at webadmin UI: 
VM win2012_intel is down with error. Exit message: local variable 'device' referenced before assignment.

Expected results:
VM should run wuth USB device attached.

Additional info:
engine and vdsm logs attached.
issues time:
AMD host with RHEL7 VM with USB DOK attached: 2015-09-08 16:41:32
Intel host with windows 2012 VM and USB keyboard attached: 2015-09-08 16:48:52

Comment 1 Nisim Simsolo 2015-09-08 14:11:15 UTC
Created attachment 1071376 [details]
engine.log

Comment 2 Nisim Simsolo 2015-09-08 14:15:56 UTC
Created attachment 1071377 [details]
amd host vdsm.log

Comment 3 Nisim Simsolo 2015-09-08 14:17:05 UTC
Created attachment 1071378 [details]
intel vdsm.log

Comment 4 Nisim Simsolo 2015-09-09 12:55:20 UTC
severity changed to urgent: since using GPU attached to VM without using USB mouse and keyboard is almost worthless. unless the user is using keyboard & mouse of an VM console.

Comment 5 Martin Polednik 2015-09-10 12:30:34 UTC
The fix will be included in fix for 1248105 as that is similar issue.

Comment 6 Michal Skrivanek 2015-09-17 09:08:34 UTC
(In reply to Martin Polednik from comment #5)
> The fix will be included in fix for 1248105 as that is similar issue.

this is not a similar issue, this is a _same_ issue

*** This bug has been marked as a duplicate of bug 1248105 ***


Note You need to log in before you can comment on or make changes to this bug.