Bug 1949906 - A unique present USB channel device, in state free, is reported as non-free
Summary: A unique present USB channel device, in state free, is reported as non-free
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-manager
Version: 34
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Cole Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-15 11:30 UTC by ricky.tigg
Modified: 2022-04-12 17:27 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-02-21 14:26:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
'virt-manager --debug' output (28.48 KB, text/plain)
2021-04-15 11:30 UTC, ricky.tigg
no flags Details
Incoherent message while assigning a USB device for redirection (402.64 KB, image/png)
2021-05-25 08:11 UTC, ricky.tigg
no flags Details

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


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