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 1164665 - hmp will print "usb-msd: Bad LUN 0" when add usb-bot bus without any device
Summary: hmp will print "usb-msd: Bad LUN 0" when add usb-bot bus without any device
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev
Version: 7.0
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-17 05:29 UTC by Jun Li
Modified: 2014-11-17 08:07 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-17 08:07:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jun Li 2014-11-17 05:29:06 UTC
Description of problem:
boot guest with usb-bot bus withou any device under this bus, qemu-kvm will print "usb-msd: Bad LUN 0". 

FYI, HMP won't print any warning or error message.

As above show, so set severity as low. 

Version-Release number of selected component (if applicable):
qemu-kvm-rhev-2.1.2-7.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.boot guest with usb-bot bus only.
# /usr/libexec/qemu-kvm -m 2G -smp 2 -boot menu=on -drive file=/root/RHEL-7.1-20141111.0.qcow2,if=none,id=img,snapshot=on, -device virtio-blk-pci,drive=img,id=sys-img -monitor stdio -qmp tcp::8888,server,nowait -spice port=5931,disable-ticketing -serial unix:/tmp/ttyS0,server,nowait -netdev tap,id=tap0,script=/etc/qemu-ifup,vhost=on -device virtio-net-pci,netdev=tap0,id=net0,mac=24:be:05:12:33:11,mq=on -device nec-usb-xhci,id=xhci0 -device usb-bot,bus=xhci0.0,id=bot0
2.
3.

Actual results:
(qemu) usb-msd: Bad LUN 0
usb-msd: Bad LUN 0
usb-msd: Bad LUN 0
usb-msd: Bad LUN 0
usb-msd: Bad LUN 0

Expected results:
No this hint message.

Additional info:

Comment 2 Gerd Hoffmann 2014-11-17 08:07:38 UTC
(In reply to Jun Li from comment #0)
> Description of problem:
> boot guest with usb-bot bus withou any device under this bus,

That isn't a valid configuration.

In theory we should throw an error when creating such a configuration,
in practice we can't easily do that as scsi devices are hooked up after
usb-bot initialization is complete, so we can't check that at initialization time.


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