Bug 350491

Summary: Anaconda crashes when using kickstart post script
Product: [Fedora] Fedora Reporter: Paul Sorensen <bugs>
Component: anacondaAssignee: Chris Lumens <clumens>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 7CC: vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-04 15:17:51 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 Paul Sorensen 2007-10-24 14:10:02 UTC
When using a ks.cfg file with a %post section, anaconda crashes with the message
saying that global STATE_PRE is not defined in /usr/lib/anaconda/kickstart.py at
line 738.

I was using revisor and system-config-kickstart to create the DVD.

In looking at the code for anaconda, I traced the bug to kickstart/parser.py.
Seems that in the latest version 1.13-2.fc7 version of pykickstart this symbol
was changed from STATE_PRE to STATE_SCRIPT. Or rather the symbols STATE_PRE,
STATE_POST and STATE_TRACEBACK where removed and STATE_SCRIPT was added.

So my conclusion is anaconda is out of sync with pykickstart development.

Comment 1 Chris Lumens 2007-10-25 15:43:40 UTC
Please try pykickstart-1.13.1-1 in f7-updates-testing to see if this corrects
the issue for you.  Thanks.

Comment 2 Fedora Update System 2007-11-09 23:51:58 UTC
pykickstart-1.13.1-1.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update pykickstart'

Comment 3 Jeroen van Meeuwen 2008-02-03 20:21:06 UTC
Seems not to have been fixed, anaconda is still addressing STATE_PRE which
doesn't exist. Rebuilding anaconda from GIT...

Comment 4 Jeroen van Meeuwen 2008-02-04 01:46:46 UTC
Fixed with commit 33091805cebbeaf09d276d0fbb7cea4574aeec8a in the f8-branch of
anaconda. Packaged versions at http://www.kanarip.com/f8/

Comment 5 Jeroen van Meeuwen 2008-02-04 01:47:26 UTC
Hmmm, that should be http://www.kanarip.com/anaconda/f7/ (3AM here ;p)