Bug 1949906

Summary: A unique present USB channel device, in state free, is reported as non-free
Product: [Fedora] Fedora Reporter: ricky.tigg
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED DEFERRED QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 34CC: berrange, crobinso, philip.wyett
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-21 14:26:14 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:
Attachments:
Description Flags
'virt-manager --debug' output
none
Incoherent message while assigning a USB device for redirection none

Description ricky.tigg 2021-04-15 11:30:31 UTC
Created attachment 1772129 [details]
'virt-manager --debug' output

Description of problem: While there is out of all one 'redirdev bus="usb" type="spicevmc"' and it is in state unused, selecting a USB device for redirection triggers that message: "(...). there are no free USB channels".

Version-Release number of component: virt-manager-3.2.0-3.fc34.noarch

Comment 1 Cole Robinson 2021-05-23 19:20:56 UTC
Can you see if this reproduces with virt-viewer too? If so it's probably a spice-gtk issue

Comment 2 ricky.tigg 2021-05-24 08:13:53 UTC
Same observation when viewed by virt-viewer. Note: no message related to redirection issue despite presence of option '-v'.

# virt-viewer -vc qemu:///system fedora34
Opening connection to libvirt with URI qemu:///system
Guest fedora34 is running, determining display
Guest fedora34 has a spice display
Opening direct TCP connection to display at 127.0.0.1:5900:-1

(virt-viewer:40974): GLib-GObject-WARNING **: 11:05:18.004: g_object_get_is_valid_property: object class 'GstAutoAudioSink' has no property named 'volume'

(virt-viewer:40974): GLib-GObject-WARNING **: 11:05:18.012: g_object_get_is_valid_property: object class 'GstAutoAudioSrc' has no property named 'volume'

(virt-viewer:40974): GSpice-WARNING **: 11:05:18.072: Warning no automount-inhibiting implementation available
Guest fedora34 display has disconnected, shutting down

Comment 3 Cole Robinson 2021-05-24 10:58:09 UTC
FWIW If the bug reproduces with both virt-manager and virt-viewer, it's usually spice-gtk or qemu or some other component.

I think I am reproducing what you say. My guest has one redirdev, I open the 'Redirect USB Device' dialog, select a device, then the error pops up. But the device _is_ attached to the VM. I think what the error is saying, is 'no additional devices can be redirected because there are no free slots'. But it _is_ kinda confusing the way it pops up, like it is suggesting the device you just clicked on failed to be redirected.

Is that the behavior you are seeing too? Check lsusb in the VM

If it's just about the confusing error message, we should close this and you can file a bug with upstream spice-gtk if you want to follow up: https://gitlab.freedesktop.org/spice/spice-gtk

Comment 4 ricky.tigg 2021-05-25 07:49:24 UTC
On guest's side 'lsusb' lists each redirected device, which suggests each of them has to be attached to guest. Nevertheless none of those devices get mounted; that is a known issue – Bug 1950258. No doubt, that confusing message sets a proper ground for new issue reports in this regard – not from me any more of course since I known now. Time to close.

Comment 5 ricky.tigg 2021-05-25 08:11:35 UTC
Created attachment 1786761 [details]
Incoherent message while assigning a USB device for redirection

Comment 6 Cole Robinson 2022-02-21 14:26:14 UTC
I think you'll want to file this as an upstream spice-gtk issue then, which is where the error comes from.

Comment 7 ricky.tigg 2022-04-12 17:27:18 UTC
Worth noting; device not redirected via virt-manager while redirected via virt-viewer.

Upstream report: https://gitlab.freedesktop.org/spice/spice-gtk/-/issues/156