Bug 752941

Summary: AttributeError: 'cryptsetup.CryptSetup' object has no attribute 'addPassphrase'
Product: [Fedora] Fedora Reporter: laolux
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: anaconda-maint-list, jonathan, laolux, mfranc, pschindl, ThomasMcA, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:2f4fcce1062bc8a96b421e410add5c97ccf370441f875832fe3fa9f851c63f60
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-30 03:42:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: anaconda-tb-RMeDSl
none
F17 crash dump none

Description laolux 2011-11-10 19:53:57 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: anaconda
kernel:         3.1.0-7.fc16.i686
product:        Fedora
reason:         AttributeError: 'cryptsetup.CryptSetup' object has no attribute 'addPassphrase'
time:           Thu Nov 10 22:51:42 2011
version:        16

anaconda-tb-RMeDSl: Binary file, 845576 bytes

description:
:The following was filed automatically by anaconda:
:anaconda 16.25 exception report
:Traceback (most recent call first):
:  File "/usr/lib/python2.7/site-packages/pyanaconda/storage/devicelibs/crypto.py", line 133, in luks_add_key
:    rc = cs.addPassphrase(passphrase = passphrase, newPassphrase = new_passphrase)
:  File "/usr/lib/python2.7/site-packages/pyanaconda/storage/formats/luks.py", line 261, in addPassphrase
:    new_passphrase=passphrase)
:  File "/usr/lib/python2.7/site-packages/pyanaconda/storage/__init__.py", line 1059, in doEncryptionPassphraseRetrofits
:    device.format.addPassphrase(self.encryptionPassphrase)
:  File "/usr/lib/python2.7/site-packages/pyanaconda/storage/__init__.py", line 386, in doIt
:    self.doEncryptionPassphraseRetrofits()
:  File "/usr/lib/python2.7/site-packages/pyanaconda/packages.py", line 122, in turnOnFilesystems
:    anaconda.storage.doIt()
:  File "/usr/lib/python2.7/site-packages/pyanaconda/dispatch.py", line 373, in dispatch
:    self.dir = self.steps[self.step].target(self.anaconda)
:  File "/usr/lib/python2.7/site-packages/pyanaconda/dispatch.py", line 241, in go_forward
:    self.dispatch()
:  File "/usr/lib/python2.7/site-packages/pyanaconda/gui.py", line 1201, in nextClicked
:    self.anaconda.dispatch.go_forward()
:AttributeError: 'cryptsetup.CryptSetup' object has no attribute 'addPassphrase'

Comment 1 laolux 2011-11-10 19:54:19 UTC
Created attachment 532912 [details]
File: anaconda-tb-RMeDSl

Comment 2 Jesse Keating 2012-07-20 19:56:16 UTC
Can you reproduce this on F17?  I've done a number of crypt installs without hitting this.

Comment 3 laolux 2012-08-24 23:10:25 UTC
I could not reproduce this error with F17, but that could be due to the fact that I could not install F17 on btrfs formatted partitions. The installer would crash without giving a reason even with empty preformatted luks encrypted btrfs partitions. Seems to work fine with ext4.

Comment 4 Chris Lumens 2012-11-30 03:42:06 UTC
Likewise, I've never been able to reproduce this despite lots of trying.

Comment 5 Tom 2013-01-28 02:32:56 UTC
I'm not sure if I should update this bug or open a new one. I get the same error on F17. It's happened multiple times. I've setup my partition layout on my new drive with gparted b4 running the F17 install from a LiveDVD, and it crashed. So then I deleted the partitions, and let the F17 installer create them, and it still crashed. The latest crash happened after selecting an encrypted home and swap partitions. I think previous crashes were with just an encrypted home (swap was a separate partition, but not encrypted, I think.) I'll attach my dump after I post this.

Comment 6 Tom 2013-01-28 02:34:46 UTC
Created attachment 688697 [details]
F17 crash dump