Bug 190487

Summary: Kickstart fails to run if root password not selected as encrypted
Product: [Fedora] Fedora Reporter: Philip Prindeville <philipp>
Component: system-config-kickstartAssignee: Chris Lumens <clumens>
Status: CLOSED RAWHIDE QA Contact:
Severity: urgent Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-05-05 19:26:29 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:
Attachments:
Description Flags
Proposed fix. none

Description Philip Prindeville 2006-05-02 20:42:37 UTC
Description of problem:

When one unchecks the "Encrypt root password" box, the "Save" and "Preview" File
menu options become unresponsive.

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

2.6.6.4

How reproducible:

This only happens when the password isn't to be saved encrypted.

Steps to Reproduce:
1. Enter config, including root password.
2. Uncheck "encrypt root password".
3. Attempt to Save or Preview the config.
  
Actual results:

No pop-up with the config and/or no config saved.

On the controlling terminal, however, one sees:

Traceback (most recent call last):
 File "/usr/share/system-config-kickstart/kickstartGui.py", line 293, in
on_activate_preview_options
   if self.getAllData() != None:
 File "/usr/share/system-config-kickstart/kickstartGui.py", line 237, in getAllData
   if self.basic_class.formToKsdata(doInstall) is None:
 File "/usr/share/system-config-kickstart/basic.py", line 202, in formToKsdata
   self.ksdata.rootpw["password"] = pure
UnboundLocalError: local variable 'pure' referenced before assignment 


Expected results:

Pop-up dialog with config or file chooser asking where to save config.

Additional info:

See proposed fix.

Comment 1 Philip Prindeville 2006-05-02 20:42:37 UTC
Created attachment 128518 [details]
Proposed fix.

Comment 2 Chris Lumens 2006-05-03 13:40:26 UTC
Thanks for the patch.  Will be fixed in 2.6.10-1.