Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1141837

Summary: Fall back to winusb/usbclerk when usbdk driver is not available
Product: Red Hat Enterprise Linux 8 Reporter: David Jaša <djasa>
Component: spice-usbdk-winAssignee: Dmitry Fleytman <dfleytma>
Status: CLOSED CURRENTRELEASE QA Contact: SPICE QE bug list <spice-qe-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: ---CC: dblechte, dfleytma, djasa, gklein, rbalakri, uril, ykaul
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: v0.04-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-24 17:58:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Spice RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
virt-viewer log none

Description David Jaša 2014-09-15 14:47:59 UTC
Description of problem:
Currently, usbdk-enabled virt-viewer can't leverage usbclerk/winusb code path for usb redirection when usbdk driver is not available. It may or may not be worthwhile to fall back to the old code path when that happens.

It may be also worthwhile to CLOSE/WONTFIX this as winusb solution has inferior features to usbdk so it might lead to support cases along the lines of "webcam not redirecting with RHEV $target_release" because people'd be accessing their setup with non-updated virt-viewer and usbdk... This either/or approach would however need usbdk to supersede usbclerk somehow (RPM's "Obsoletes:" equivalent) so it doesn't interfere or event take system resources...

What do you think?


Version-Release number of selected component (if applicable):
usbdk v0.02-1

Comment 1 Dmitry Fleytman 2014-09-16 11:23:41 UTC
Actually current version of usbdk-enabled virt-viewer does fall back to winusb in case UsbDk is not installed - this is what we call dynamic backend selection.

This approach is temporary solution in order to have the same binaries for testing and for production. As soon as UsbDk becomes stable enough for production this logic will be dropped altogether with winusb-related code path.

Comment 2 David Jaša 2014-09-16 13:38:54 UTC
(In reply to Dmitry Fleytman from comment #1)
> Actually current version of usbdk-enabled virt-viewer does fall back to
> winusb in case UsbDk is not installed - this is what we call dynamic backend
> selection.
> 

Then this bug means that the fallback doesn't work. :)

> This approach is temporary solution in order to have the same binaries for
> testing and for production. As soon as UsbDk becomes stable enough for
> production this logic will be dropped altogether with winusb-related code
> path.

OK

Comment 3 Dmitry Fleytman 2014-09-24 11:03:02 UTC
David,

Please retest with v0.03 and provide logs. We cannot reproduce this problem on our systems.

Comment 4 David Jaša 2014-09-30 12:29:02 UTC
Created attachment 942687 [details]
virt-viewer log

Still doesn't work for me. The machine is recycled 32b win 7:
1. uninstall usbclerk & virt-viewer
2. install usbdk-enabled virt-viewer, restart
3. make sure that usbclerk is up & running
4. connect to a VM, plug some devices

the result is in the log (errors -1 and -12)

Comment 5 David Jaša 2014-10-01 14:41:53 UTC
Actually, the problem may be in the legacy usb itself. I've seen today some issues with legacy USB in virt-viewer 0.6.0 on a system that has never seen usbdk or related patches to remote-viewer.

Comment 6 pgurvich@redhat.com 2014-10-05 09:35:02 UTC
For dynamic choosing of windows backend spice-gtk module should be compiled with enable-winusb=yes

(mingw32-configure --with-gtk=2.0 --enable-vala --enable-winusb=yes)

Comment 7 Dmitry Fleytman 2014-10-05 14:14:59 UTC
Properly compiled library will be included into the next version.

Comment 8 David Jaša 2016-02-24 17:58:18 UTC
Works in tools 3.6-6 (UsbDk_1.0.10)