Bug 55310 - Problem with Kickstart and Software RAID?
Summary: Problem with Kickstart and Software RAID?
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: installer
Version: 7.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Brent Fox
QA Contact: Brock Organ
URL:
Whiteboard:
: 55949 56827 57964 58322 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-10-29 16:09 UTC by David Carter
Modified: 2007-04-18 16:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-11-09 20:31:56 UTC
Embargoed:


Attachments (Terms of Use)
Kickstart File (5.38 KB, text/plain)
2001-10-29 16:11 UTC, David Carter
no flags Details
Anaconda Crash Dump (deleted)
2001-10-29 16:19 UTC, David Carter
no flags Details
Anaconda Crash Dump (deleted)
2001-10-29 16:19 UTC, David Carter
no flags Details
Anaconda Crash Dump (deleted)
2001-10-29 16:21 UTC, David Carter
no flags Details
Anaconda Crash Dump (deleted)
2001-10-29 16:47 UTC, David Carter
no flags Details
Working ks.cfg, Broken ks.cfg plus anacdump.txt (10.33 KB, application/octet-stream)
2001-10-30 11:56 UTC, David Carter
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2002:016 0 normal SHIPPED_LIVE Various anaconda installer fixes 2002-01-17 05:00:00 UTC

Description David Carter 2001-10-29 16:09:28 UTC
Description of Problem:

Installer bails out with a "TypeError: number coercion failed" if
software RAID mirroring is configured

Version-Release number of selected component (if applicable):

Redhat 7.2 (similar ks.cfg file works just fine in Redhat 7.1)

How Reproducible:

Will attach ks.cfg file and anacdump.txt

Comment 1 David Carter 2001-10-29 16:11:28 UTC
Created attachment 35401 [details]
Kickstart File

Comment 2 Brent Fox 2001-10-29 16:13:49 UTC
Can you capture the entire debug message when the install crashes?  That would
be helpful.

Comment 3 David Carter 2001-10-30 11:56:08 UTC
Created attachment 35661 [details]
Working ks.cfg, Broken ks.cfg plus anacdump.txt

Comment 4 David Carter 2001-10-30 12:02:52 UTC
Added a .tar.gz file which contains working and broken Kickstart files plus
anacdump.txt archive. It looks like the problem is specific to mirrored swap
partitions. Difference between working and broken ks.cfg files:

magenta[7.2]$ diff -c test2.cfg  test3.cfg 
*** test2.cfg   Tue Oct 30 11:54:19 2001
--- test3.cfg   Tue Oct 30 11:54:19 2001
***************
*** 28,37 ****
  # Split the four disks in two parts: OS and spool space
  part raid.01 --size 2047 --ondisk sda
  part raid.02 --size 2047 --ondisk sdb
! part swap    --size 2047 --ondisk sdb
  
  # Create two mirrored pairs from this disk space
  raid /       --level 1 --device md0 raid.01 raid.02
  
  # Authentication mechanisms
  auth --enablemd5 --useshadow
--- 28,39 ----
  # Split the four disks in two parts: OS and spool space
  part raid.01 --size 2047 --ondisk sda
  part raid.02 --size 2047 --ondisk sdb
! part raid.03 --size 2047 --ondisk sda
! part raid.04 --size 2047 --ondisk sdb
  
  # Create two mirrored pairs from this disk space
  raid /       --level 1 --device md0 raid.01 raid.02
+ raid swap    --level 1 --device md2 raid.03 raid.04
  
  # Authentication mechanisms
  auth --enablemd5 --useshadow

anacdump.txt includes:

Traceback (innermost last):
  File "/usr/bin/anaconda", line 620, in ?
    intf.run(id, dispatch, configFileData)
  File "/usr/lib/anaconda/text.py", line 364, in run
    (step, args) = dispatch.currentStep()
  File "/usr/lib/anaconda/dispatch.py", line 243, in currentStep
    self.gotoNext()
  File "/usr/lib/anaconda/dispatch.py", line 143, in gotoNext
    self.moveStep()
  File "/usr/lib/anaconda/dispatch.py", line 208, in moveStep
    rc = apply(func, self.bindArgs(args))
  File "/usr/lib/anaconda/autopart.py", line 899, in doAutoPartition
    (errors, warnings) = sanityCheckAllRequests(partitions, diskset, 1)
  File "/usr/lib/anaconda/partitioning.py", line 595, in sanityCheckAllRequests
    swapSize = swapSize + requestSize(request, diskset)
TypeError: number coercion failed

This looks consistent with some problem involving mirrored swap, which worked
just fine in Redhat 7.1.

Hope this helps. Let me know if you need any further information.





Comment 5 Brent Fox 2001-10-31 04:12:51 UTC
I will try to duplicate this behavior when I get to work tomorrow.  Can you tell
me why you would want the RAID swap device to be md2 instead of md1?

You've got:
# Create two mirrored pairs from this disk space
raid /       --level 1 --device md0 raid.01 raid.02
raid swap    --level 1 --device md2 raid.03 raid.04

Why not:
# Create two mirrored pairs from this disk space
raid /       --level 1 --device md0 raid.01 raid.02
raid swap    --level 1 --device md1 raid.03 raid.04

instead?  Does that make any difference at all?

Comment 6 David Carter 2001-10-31 09:33:35 UTC
> I will try to duplicate this behavior when I get to work tomorrow.

Thanks.

> Can you tell me why you would want the RAID swap device to be md2 instead
> of md1?

I just cut the original ks.cfg that I sent on Monday (which had four
seperate md devices) down to a minimal test case. I can confirm that
I see the same behaviour using md0 and md1. Also if I generate two
mirrored pairs using four partitions on a single disk.


Comment 7 Brent Fox 2001-11-02 01:11:33 UTC
Ok, I've got a reproducible test case.  I'm investigating further.

Comment 8 Brent Fox 2001-11-02 06:06:34 UTC
I've committed a fix for this in CVS.

Comment 9 Brent Fox 2001-11-05 17:12:36 UTC
I have made an updates disk available at
ftp://people.redhat.com/bfox/7.2-raid-swap-update.img.

You need to dd this file to a floppy, then boot the 7.2 install with 'linux
updates ks=floppy'.  When prompted, insert the updates disk that you made.  This
works for me in my testing...does it work for you?

Comment 10 Brent Fox 2001-11-09 20:31:50 UTC
*** Bug 55949 has been marked as a duplicate of this bug. ***

Comment 11 Jeremy Katz 2001-11-28 20:47:33 UTC
*** Bug 56827 has been marked as a duplicate of this bug. ***

Comment 12 Jeremy Katz 2002-01-15 19:06:19 UTC
*** Bug 58322 has been marked as a duplicate of this bug. ***

Comment 13 Jeremy Katz 2002-03-14 23:10:46 UTC
*** Bug 57964 has been marked as a duplicate of this bug. ***


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