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 2149191 - [RFE][guest-agent] - USB bus type support
Summary: [RFE][guest-agent] - USB bus type support
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: qemu-kvm
Version: 9.2
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Kostiantyn Kostiuk
QA Contact: dehanmeng
URL:
Whiteboard:
: 2149194 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-29 06:38 UTC by dehanmeng
Modified: 2023-05-09 07:47 UTC (History)
7 users (show)

Fixed In Version: qemu-kvm-7.2.0-6.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-09 07:20:55 UTC
Type: Feature Request
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gitlab redhat/centos-stream/src qemu-kvm merge_requests 140 0 None opened qga/linux: add usb support to guest-get-fsinfo 2023-01-23 12:40:10 UTC
Red Hat Issue Tracker RHELPLAN-140741 0 None None None 2022-11-29 06:57:45 UTC
Red Hat Product Errata RHSA-2023:2162 0 None None None 2023-05-09 07:21:42 UTC

Description dehanmeng 2022-11-29 06:38:26 UTC
Description of problem:
For qga command "guest-get-disks" will add USB but-type support.

Comment 2 dehanmeng 2022-12-01 05:36:19 UTC
*** Bug 2149194 has been marked as a duplicate of this bug. ***

Comment 4 John Ferlan 2023-01-18 13:06:39 UTC
Is there an upstream patch that we can attribute to resolving this bug that was already included in the qemu-7.2 rebase?

If not and there's not already patches, then we should move this to a future release.

Comment 5 Kostiantyn Kostiuk 2023-01-19 09:10:36 UTC
Move ITM and DTM. 
We don't have upstream patches yet. It will be prepared in several days and sent to upstream.

Comment 7 Yanan Fu 2023-01-31 03:07:40 UTC
QE bot(pre verify): Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass.

Comment 10 dehanmeng 2023-02-06 07:57:33 UTC
Reproduce issue with previous version of qemu-guest-agent-7.2.0-5
Steps:
1. boot up guest with usb-storage:
     -device '{"id": "pcie-root-port-5", "port": 5, "driver": "pcie-root-port", "addr": "0x1.0x5", "bus": "pcie.0", "chassis": 6}' \
     -device '{"driver":"qemu-xhci","id":"xhci","bus":"pcie-root-port-5"}' \
     -device '{"driver":"usb-storage","drive":"drive-usb-2","id":"usb-2","removable":true,"bus":"xhci.0","port":"1"}' \
     -blockdev '{"driver":"file","cache":{"direct":true,"no-flush":false},"filename":"/root/m.qcow2","node-name":"drive_sys11"}' \
     -blockdev '{"driver":"qcow2","node-name":"drive-usb-2","file":"drive_sys11"}' \

2. install qga inside vm and start qemu-guest-agent.service.
3. connect with guest via qga and send command '{"execute":"guest-get-fsinfo"}'

[root@dell-per7425-01 test-results]# nc -U /var/tmp/avocado_7hafq_uh/serial-org.qemu.guest_agent.0-20230202-005046-atb79fhw


Actual result:
[root@dell-per7425-01 test-results]# nc -U /var/tmp/avocado_7hafq_uh/serial-org.qemu.guest_agent.0-20230202-005046-atb79fhw
{"execute":"guest-get-fsinfo"}
{"return": [{"name": "sdc1", "total-bytes": 2142228480, "mountpoint": "/root/sdc1", "disk": [{"serial": "QEMU_QEMU_HARDDISK_1-0000:00:01.5:00.0-1-0:0", "bus-type": "unknown", "bus": 0, "unit": 0, "pci-control.......

Expected result:
bus-type should be "usb".


Verify issue with fixed version 7.2.0-6
steps as above

Actual result:
{"execute":"guest-get-fsinfo"}
{"return": [{"name": "sdc1", "total-bytes": 2142228480, "mountpoint": "/root/sdc1", "disk": [{"serial": "QEMU_QEMU_HARDDISK_1-0000:00:01.5:00.0-1-0:0", "bus-type": "usb", "bus": 0, "unit": 0, "pci-contro....

Comment 12 errata-xmlrpc 2023-05-09 07:20:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: qemu-kvm security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:2162


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