Red Hat Bugzilla – Bug 58409
RFE: improve kickstart error handling for nonexistent packages
Last modified: 2007-04-18 12:39:02 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7+) Gecko/20020111
Description of problem:
Kickstart aborts with a backtrace if a non existant package is listed in ks.cfg.
Anaconda will die with a "uncaught exception" with a "key error". Anaconda
should have diagnosed the error better and given a more helpful error message, a
perfect solution would be for anaconda to give you the option to skip and ignore
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create a ks.cfg file
2. add packages to the file, but typo at least one of them
3. Try and use the kickstart configuration
4. watcha anaconda crash and burn.
Actual Results: Anaconda provides a very unhelpful traceback claiming key error
on line 64.
Expected Results: Anaconda should have provided a more helpful error message
("Unknown package 'gf' listed in ks.cfg"). To be perfect, anaconda should have
given the user the option of ignoring that package and continuing the install.
The bug appears to be in kickstart.py in the procedure setPackageSelection, it
should catch the "Key Error" exception, pop up a dialog box explaining the
situation and if the user chooses to abort fail, or continue, it should remove
the package from hdlist.
Deferring to future release.
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.