Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 431950 - s-c-kickstart crashes on non-existing KS file
s-c-kickstart crashes on non-existing KS file
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: system-config-kickstart (Show other bugs)
All Linux
low Severity high
: rc
: ---
Assigned To: Chris Lumens
: 434771 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2008-02-07 18:00 EST by Michal Nowak
Modified: 2013-03-07 21:03 EST (History)
3 users (show)

See Also:
Fixed In Version: system-config-kickstart-
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2011-07-21 03:58:46 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
catch errors opening files (5.56 KB, patch)
2011-01-03 13:48 EST, Chris Lumens
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1025 normal SHIPPED_LIVE system-config-kickstart bug fix update 2011-07-20 11:44:20 EDT

  None (edit)
Description Michal Nowak 2008-02-07 18:00:05 EST
Description of problem:

s-c-kickstart crashes on non-existing KS file

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


How reproducible:

Steps to Reproduce:
.qa.[root@i386-5s-1-m1 tps]# system-config-kickstart ks-blah.cfg
Traceback (most recent call last):
  File "/usr/bin/system-config-kickstart", line 82, in ?
  File "/usr/share/system-config-kickstart/kickstartGui.py", line 91, in __init__
  File "/usr/lib/python2.4/site-packages/pykickstart/parser.py", line 1071, in
    fh = open(file)
IOError: [Errno 2] No such file or directory: 'ks-blah.cfg'
Actual results:


Expected results:

nice window msg about non existing file and exit

Additional info:

Note: ks-blah.cfg does not exist
Comment 1 Chris Lumens 2008-02-25 10:11:44 EST
*** Bug 434771 has been marked as a duplicate of this bug. ***
Comment 2 Michal Nowak 2009-06-25 06:55:27 EDT
Still present in s-c-k-
Comment 4 Chris Lumens 2011-01-03 13:48:47 EST
Created attachment 471537 [details]
catch errors opening files

This patch should fix it up.  The slightly goofy error message is to make sure no additional translations need to be performed.
Comment 7 Alexander Todorov 2011-05-09 07:55:40 EDT
With system-config-kickstart- executed the following command in gnome-terminal:

# system-config-kickstart blah-ks.cfg

An error dialog was shown:

---- Error Parsing Kickstart Config ----

The file "balh-ks.cfg" cannot be accessed

---------------------------- OK --------

Moving to VERIFIED.
Comment 8 errata-xmlrpc 2011-07-21 03:58:46 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


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