Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 565611

Summary: AttributeError: Users instance has no attribute 'cryptPassword'
Product: [Fedora] Fedora Reporter: James Laska <jlaska>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: anaconda-maint-list, jonathan, jturner, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: anaconda_trace_hash:646fa40154f2aa9ac9e560e7325fe1c1abf5d591a89ebd216002e56f0418ade4
Fixed In Version: anaconda-13.27-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-24 18:08:56 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:
Bug Depends On:    
Bug Blocks: 538273    
Attachments:
Description Flags
Attached traceback automatically from anaconda. none

Description James Laska 2010-02-15 18:26:43 UTC
The following was filed automatically by anaconda:
anaconda 13.26 exception report
Traceback (most recent call first):
  File "/tmp/updates/users.py", line 302, in writeKS
    args = " --iscrypted %s" % self.cryptPassword(self.rootPassword["password"], algo=self.getPassAlgo())
  File "/tmp/updates/anaconda", line 738, in writeKS
    self.users.writeKS(f)
  File "/usr/lib/anaconda/packages.py", line 66, in writeKSConfiguration
    anaconda.writeKS(fn)
  File "/usr/lib/anaconda/dispatch.py", line 205, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib/anaconda/dispatch.py", line 126, in gotoNext
    self.moveStep()
  File "/usr/lib/anaconda/gui.py", line 1311, in nextClicked
    self.anaconda.dispatch.gotoNext()
  File "/usr/lib/anaconda/iw/progress_gui.py", line 79, in renderCallback
    self.intf.icw.nextClicked()
  File "/usr/lib/anaconda/gui.py", line 1332, in handleRenderCallback
    self.currentWindow.renderCallback()
AttributeError: Users instance has no attribute 'cryptPassword'

Comment 1 James Laska 2010-02-15 18:26:46 UTC
Created attachment 394371 [details]
Attached traceback automatically from anaconda.

Comment 2 James Laska 2010-02-15 18:28:30 UTC
Discovered while testing a fix for bug#565599

Comment 3 James Laska 2010-02-15 19:04:59 UTC
The following patch appears to resolve the reported issue ...

--- users.py	2010-02-15 12:26:13.458766396 -0500
+++ /tmp/updates/users.py	2010-02-15 13:38:48.954516160 -0500
@@ -299,7 +299,7 @@
         if self.rootPassword["isCrypted"]:
             args = " --iscrypted %s" % self.rootPassword["password"]
         else:
-            args = " --iscrypted %s" % self.cryptPassword(self.rootPassword["password"], algo=self.getPassAlgo())
+            args = " --iscrypted %s" % cryptPassword(self.rootPassword["password"], algo=self.getPassAlgo())
 
         if self.rootPassword["lock"]:
             args += " --lock"

Updates.img available for testing at http://jlaska.fedorapeople.org/updates-565611.img

Comment 4 James Laska 2010-02-24 18:08:56 UTC
Fixed in anaconda-13.29