Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 592916

Summary: IOException: Input/output error during write on /dev/sda
Product: Red Hat Enterprise Linux 6 Reporter: Qian Cai <qcai>
Component: qemu-kvmAssignee: Kevin Wolf <kwolf>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: alex.williamson, hdegoede, virt-maint
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: anaconda_trace_hash:f4dd014daaabf7eeb5876cd9cc6a55676927016238b966654555cb7ae2e5a685
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-05-20 14:42:03 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:    
Bug Blocks: 575298    
Attachments:
Description Flags
Attached traceback automatically from anaconda.
none
guest XML none

Description Qian Cai 2010-05-17 10:54:23 UTC
The following was filed automatically by anaconda:
anaconda 13.21.39 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.6/site-packages/parted/disk.py", line 213, in commit
    return self.__disk.commit()
  File "/usr/lib64/python2.6/site-packages/parted/decorators.py", line 31, in localeC
    ret = fn(*args, **kwds)
  File "<string>", line 2, in commit
  File "/usr/lib/anaconda/storage/formats/disklabel.py", line 244, in commit
    self.partedDisk.commit()
  File "/usr/lib/anaconda/storage/devices.py", line 1270, in create
    self.disk.format.commit()
  File "/usr/lib/anaconda/storage/deviceaction.py", line 203, in execute
    self.device.create(intf=intf)
  File "/usr/lib/anaconda/storage/devicetree.py", line 693, in processActions
    action.execute(intf=self.intf)
  File "/usr/lib/anaconda/storage/__init__.py", line 292, in doIt
    self.devicetree.processActions()
  File "/usr/lib/anaconda/packages.py", line 109, in turnOnFilesystems
    anaconda.id.storage.doIt()
  File "/usr/lib/anaconda/dispatch.py", line 205, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib/anaconda/dispatch.py", line 126, in gotoNext
    self.moveStep()
  File "/usr/lib/anaconda/gui.py", line 1260, in nextClicked
    self.anaconda.dispatch.gotoNext()
IOException: Input/output error during write on /dev/sda

Comment 1 Qian Cai 2010-05-17 10:54:29 UTC
Created attachment 414518 [details]
Attached traceback automatically from anaconda.

Comment 2 Qian Cai 2010-05-17 10:57:27 UTC
Can Reproduce it every time by using the attached guest XML and partitioned rootfs for the USB device.

Comment 3 Qian Cai 2010-05-17 10:59:05 UTC
Created attachment 414519 [details]
guest XML

Comment 4 Hans de Goede 2010-05-17 11:00:47 UTC
From syslog (from the attached logs):

<6>usb 1-1: reset full speed USB device using uhci_hcd and address 2
<6>usb 1-1: reset full speed USB device using uhci_hcd and address 2
<6>usb 1-1: reset full speed USB device using uhci_hcd and address 2
<6>usb 1-1: reset full speed USB device using uhci_hcd and address 2
<6>usb 1-1: reset full speed USB device using uhci_hcd and address 2
<6>usb 1-1: reset full speed USB device using uhci_hcd and address 2
<6>sd 0:0:0:0: [sda] Unhandled error code
<6>sd 0:0:0:0: [sda] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
<6>sd 0:0:0:0: [sda] CDB: Write(10): 2a 00 00 00 00 00 00 00 08 00
<3>end_request: I/O error, dev sda, sector 0
<3>Buffer I/O error on device sda, logical block 0
<4>lost page write due to I/O error on sda

So this is a problem with your hardware or the virtual machine, not with anaconda.

Comment 5 Qian Cai 2010-05-17 11:02:46 UTC
All software were from RHEL6.0-20100512.0 tree.

Comment 6 Qian Cai 2010-05-17 11:03:57 UTC
OK, assigned to the virtual component.

Comment 7 RHEL Program Management 2010-05-17 11:04:54 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 8 Kevin Wolf 2010-05-20 14:42:03 UTC

*** This bug has been marked as a duplicate of bug 561414 ***