Bug 561414

Summary: Writes to virtual usb-storage produce I/O errors
Product: Red Hat Enterprise Linux 6 Reporter: Kevin Wolf <kwolf>
Component: qemu-kvmAssignee: Gerd Hoffmann <kraxel>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: medium    
Version: 6.0CC: akong, armbru, bcao, borgan, chellwig, drjones, gcosta, jcpunk, juzhang, kcao, kwolf, qcai, qzhou, syeghiay, tburke, virt-maint, xfu
Target Milestone: beta   
Target Release: 6.2   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: qemu-kvm-0.12.1.2-2.169.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 15:42:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 711354    
Bug Blocks: 575298, 580953    
Attachments:
Description Flags
Guest kernel logs none

Description Kevin Wolf 2010-02-03 16:05:42 UTC
Created attachment 388558 [details]
Guest kernel logs

Description of problem:
When I write to a virtual USB disk, Linux outputs lots of I/O errors and resets in the kernel log. In the end, the transferred data seems to be fine, though. This was tested with a RHEL 5.3 and a Fedora 11 guest. It happens both with UHCI and OHCI emulation.

Steps to Reproduce:
1. Start a guest with a small scratch image (-device usb-storage,drive=usb -drive id=usb,if=none,file=/tmp/scratch.img)
2. In the guest, write to the disk: dd if=/dev/urandom of=/dev/sda
3. If the messages don't appear on the console, use dmesg
  
Actual results:
The data is correctly transferred (you can verify by writing into a temporary file first and md5sum this file and the scratch image on the host), but lots of error messages appear.

Expected results:
No error messages should appear.

Additional info:
Attaching the kernel logs of the guest.

Comment 2 RHEL Program Management 2010-02-03 16:37:21 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 3 Kevin Wolf 2010-05-20 14:42:03 UTC
*** Bug 592916 has been marked as a duplicate of this bug. ***

Comment 6 Bill Burns 2010-05-25 10:43:41 UTC
Kevin, Thanks for the info. It is strange in that you reported it and someone else elevated it as a test blocker. I moved the target to RC, but left as a blocker. Putting it in needinfo to get justification.

caiqian, when asserting blocker, please add a comment with some justification.
Is this a really a blocker? If not please drop the flag.

Comment 12 Amit Shah 2010-06-24 09:25:01 UTC
Which tests are blocked as a result of this bug? We think this is not a blocker and there's no requirement to support usb storage devices.

Comment 13 Qian Cai 2010-06-24 09:33:47 UTC
Driver update program tests that used a KVM-based automation to test if we can load the driver disks/ISOs in the installer from a USB device.

Comment 19 Gerd Hoffmann 2011-05-16 11:26:31 UTC
There used to be a few issues ...
upstream/master should be fine now in case anyone cares to try.

RHEL-6.2 needs tons of USB backports for EHCI anyway,
I'll go fix this along the way.

Comment 21 Gerd Hoffmann 2011-06-06 06:33:55 UTC
devel_acked (see Devel Whiteboard)

Comment 24 juzhang 2011-06-13 09:14:30 UTC
Tested with qemu-kvm-0.12.1.2-2.163.el6.x86_64,usb-storage is disabled.
fixed version should be enable

Comment 31 errata-xmlrpc 2011-12-06 15:42:12 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, and where to find the updated
files, follow the link below.

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

http://rhn.redhat.com/errata/RHSA-2011-1531.html