Bug 97731

Summary: unhandled exception if ks.cfg mentions nonexistent disk - should be handled gracefully
Product: [Retired] Red Hat Linux Reporter: Tom Jones <t.jones>
Component: anacondaAssignee: Michael Fulbright <msf>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: low Docs Contact:
Priority: medium    
Version: 9   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-07-24 22:47:23 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:

Description Tom Jones 2003-06-19 20:12:21 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826

Description of problem:
The ks config file contained lines like
  part /    --size 4000 --ondisk=sda

when it meant
  part /    --size 4000 --ondisk=hda

This provoked an unhandled exception in anaconda. Although
the dump gave enough info to deduce the problem (the last 
line was
  KeyError: sda
), I would have thought this error could be caught and handled
more elegantly.


Version-Release number of selected component (if applicable):
sorry don't know -- haven't installed yet. RH9 FCS version of anaconda.

How reproducible:
Always

Steps to Reproduce:
1.Get a machine with an IDE disk
2.Put a line such as "part /    --size 4000 --ondisk=sda" in the kickstart
config file.
3.Boot into the automatic installation procedure.
    

Actual Results:  Unhandled exception occurred, which nevertheless gave enough
info to fix the problem.

Expected Results:  A nice error message saying "you have given a directive
relating to /dev/sda but there are no scsi disks on this system".

Additional info:

Comment 1 Jeremy Katz 2003-07-24 22:47:23 UTC
This gives a better traceback now.  Making it even better is in the works for
when I completely revamp the kickstart parser.