Bug 681608

Summary: KeyError: '/dev/md126'
Product: [Fedora] Fedora Reporter: Sandro Mathys <sandro>
Component: anacondaAssignee: David Lehman <dlehman>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 15CC: anaconda-maint-list, awilliam, jlaska, jonathan, sandro, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: hatanaconda_trace_hash:78511e29812af340aff78b6dd8559d986ded19067b441ea717d905b10964b027 AcceptedBlocker
Fixed In Version: anaconda-15.26-1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-05 21:39:22 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: 657618    
Attachments:
Description Flags
Attached traceback automatically from anaconda.
none
Patch to fix installation to firmware raid in f15
none
storage.log after applying patch (2011-03-02 17:04 EST, Dave Lehman)
none
program.log after applying patch (2011-03-02 17:04 EST, Dave Lehman)
none
anaconda.log after applying patch (2011-03-02 17:04 EST, Dave Lehman)
none
Patch to fix installation to firmware raid in f15
none
Attached traceback automatically from anaconda.
none
Patch to fix installation to firmware raid in f15 none

Description Sandro Mathys 2011-03-02 17:56:29 UTC
The following was filed automatically by anaconda:
anaconda 15.20.1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/partitioning.py", line 984, in allocatePartitions
    disklabel = disklabels[_disk.path]
  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/partitioning.py", line 857, in doPartitioning
    allocatePartitions(storage, disks, partitions, free)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/partitioning.py", line 222, in doAutoPartition
    doPartitioning(anaconda.storage)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/dispatch.py", line 211, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/dispatch.py", line 130, in gotoNext
    self.moveStep()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/gui.py", line 1257, in nextClicked
    self.anaconda.dispatch.gotoNext()
KeyError: '/dev/md126'

Comment 1 Sandro Mathys 2011-03-02 17:56:35 UTC
Created attachment 481918 [details]
Attached traceback automatically from anaconda.

Comment 2 Sandro Mathys 2011-03-02 17:59:52 UTC
So, I hit this issue after applying the patches from bug 678877, bug 680226 and bug 678689 (the third already being included in the second).

What I do to reproduce this is as follows.

Specialized Storage Devices:
- SATA disk
- BIOS RAID set (stripe)

<many rather unimportant steps>

Type of Installation:
- Use All Space
- Encrypt System
- Review and modify partitioning layout

Install Target Devices:
- SATA disk
- BIOS RAID set (stripe) <- Boot Loader

After I chose my targets, set the boot loader from SATA to RAID and clicked 'next' I hit the issue.

Comment 3 Adam Williamson 2011-03-02 20:02:19 UTC
this is another Beta blocker - they're all Beta blockers until we can actually install to the RAID array.

Comment 4 David Lehman 2011-03-02 22:04:59 UTC
Created attachment 481949 [details]
Patch to fix installation to firmware raid in f15

Try this patch. It combines all of the uncommitted firmware RAID fixes for F15, including an additional bit specifically for this bug.

Comment 5 Sandro Mathys 2011-03-02 22:28:11 UTC
Created attachment 481961 [details]
storage.log after applying patch (2011-03-02 17:04 EST, Dave Lehman)

Comment 6 Sandro Mathys 2011-03-02 22:28:51 UTC
Created attachment 481962 [details]
program.log after applying patch (2011-03-02 17:04 EST, Dave Lehman)

Comment 7 Sandro Mathys 2011-03-02 22:29:51 UTC
Created attachment 481963 [details]
anaconda.log after applying patch (2011-03-02 17:04 EST, Dave Lehman)

Comment 8 Sandro Mathys 2011-03-02 22:31:15 UTC
That patch actually made things worse again - throwing an exception at me again when/after first choosing specialized target devices:

DeviceTreeError: MD RAID device md126 not in devicetree after scanning all slaves

Comment 9 David Lehman 2011-03-03 01:24:47 UTC
Created attachment 481980 [details]
Patch to fix installation to firmware raid in f15

Try this patch, please -- it replaces the previous patch, so you'll want to revert the other one before applying this one.

Comment 10 Sandro Mathys 2011-03-03 06:56:56 UTC
Created attachment 482002 [details]
Attached traceback automatically from anaconda.

Comment 11 Sandro Mathys 2011-03-03 06:59:01 UTC
So I still hit this bug with the most recent patch.

Comment 12 David Lehman 2011-03-03 15:27:08 UTC
Created attachment 482104 [details]
Patch to fix installation to firmware raid in f15

New version, including another fix that should allow exclusiveDisks to work correctly.

Comment 13 David Lehman 2011-03-04 16:22:50 UTC
Last patch had a problem. It did not take into account the fact that mdadm will
append an underscore and some number of digits to the name of an array it
assembles if the system hostname at the time of assembly does not match the
hostname in the array metadata. Good stuff.

New patch:

  http://dlehman.fedorapeople.org/fwraid-f15.4.patch

New updates:

  http://dlehman.fedorapeople.org/updates-fwraid-f15.4.img


Please test and let me know the results.

Comment 14 Sandro Mathys 2011-03-04 17:06:46 UTC
Fix (for all 5? or so bugs) confirmed with Alpha RC2/Live/KDE/x86_64 :)

Great, thanks for the hard work!

Comment 15 David Lehman 2011-03-09 19:07:42 UTC
Fixed for Fedora 15 in anaconda-15.22-1.

Comment 16 James Laska 2011-03-11 19:40:51 UTC
Discussed at 2011-03-11 blocker review meeting.  This issue is fixed and available for testing in anaconda-15.22-1.  The issue has been accepted as a beta blocker.

Comment 17 Fedora Update System 2011-03-29 20:59:10 UTC
anaconda-15.26-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/anaconda-15.26-1.fc15

Comment 18 Fedora Update System 2011-03-30 02:26:03 UTC
Package anaconda-15.26-1.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing anaconda-15.26-1.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/anaconda-15.26-1.fc15
then log in and leave karma (feedback).

Comment 19 Fedora Update System 2011-04-05 21:37:58 UTC
anaconda-15.26-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.