Bug 531407

Summary: --encrypted option does not work with pv in kickstart script
Product: [Fedora] Fedora Reporter: Huzaifa S. Sidhpurwala <huzaifas>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: anaconda-maint-list, awilliam, dlehman, mitr, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: NeedsRetesting
Fixed In Version: anaconda-12.40-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-07 01:42:25 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: 510545    
Bug Blocks: 473302    

Description Huzaifa S. Sidhpurwala 2009-10-28 04:59:46 UTC
I am using the following options 

--encrypted --passphrase=foo --escrowcert http://hostname/cert.crt --backuppassphrase

When i use this with autopart in the kickstart it works and the pv is encrypted.
But when i use this with 
part --grow --size=1 pv.20 as

"part --grow --size=1 pv.20 --encrypted --passphrase=foo --escrowcert http://hostname/cert.crt --backuppassphrase"

it freaks out, with the following back trace.

File "/usr/lib/anaconda/kickstart.py", Line 751 in parse
if pd.preexist:
    AttributeError: "F12_PartData" object has not attribute preexist


I am using F12-beta

Comment 1 Miloslav Trmač 2009-10-28 05:19:54 UTC
I have submitted something like the following:

@@ -749,7 +749,7 @@ class Partition(commands.partition.F12_Partition):
                storage.encryptionPassphrase = pd.passphrase
 
             cert = getEscrowCertificate(self.handler.anaconda, pd.escrowcert)
-            if pd.preexist:
+            if pd.onPart:
                 luksformat = format
                 device.format = getFormat("luks", passphrase=pd.passphrase, device=device.path,
                                           escrow_cert=cert,


as part of the escrow patches in #510545, but it was dropped - see comment #11 in that bug.

Comment 2 Adam Williamson 2009-10-28 21:08:52 UTC
A build of anaconda 12.40, which should address this issue, is currently in progress: http://koji.fedoraproject.org/koji/buildinfo?buildID=138787

-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 3 Adam Williamson 2009-10-29 17:50:06 UTC
anaconda 12.41 was tagged into Rawhide today. a net install from a Rawhide tree updated to today's packages, or a nightly build dated 20091029 or later, should have this fix (make sure the installer says anaconda version 12.41). if you could confirm the fix, that'd be great. thanks.

-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 4 Adam Williamson 2009-10-30 16:50:27 UTC
Discussed at the blocker bug meeting today. We agreed this isn't really a blocker, so dropping to target, but the fix stays in since it's in already. If it's not fully fixed, though, we won't block release.

-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers