Bug 1121963

Summary: CryptoError: luks_format failed for '/dev/md0'
Product: Red Hat Enterprise Linux 6 Reporter: Alexander Todorov <atodorov>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED NOTABUG QA Contact: Release Test Team <release-test-team-automation>
Severity: high Docs Contact:
Priority: high    
Version: 6.6   
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:c2149a74ab37127368ce22290823ecbda043976f795cd2e40e5a542338b796e6
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-22 13:39:39 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: 1083985    
Attachments:
Description Flags
File: environ
none
File: type
none
File: exnFileName
none
File: anaconda-tb-8ArM4j
none
File: product
none
File: last_occurrence
none
File: hashmarkername
none
File: version
none
File: release none

Description Alexander Todorov 2014-07-22 08:58:55 UTC
Version-Release number of selected component:
anaconda-13.21.224

Additional info:
libreport version: 2.0.9
cmdline:        /usr/bin/python  /usr/bin/anaconda
kernel:         2.6.32-491.el6.x86_64

description:
:The following was filed automatically by anaconda:
:anaconda 13.21.224 exception report
:Traceback (most recent call first):
:  File "/usr/lib/anaconda/storage/devicelibs/crypto.py", line 97, in luks_format
:    raise CryptoError("luks_format failed for '%s'" % device)
:  File "/usr/lib/anaconda/storage/formats/luks.py", line 209, in create
:    key_size=self.key_size)
:  File "/usr/lib/anaconda/storage/deviceaction.py", line 290, in execute
:    options=self.device.formatArgs)
:  File "/usr/lib/anaconda/storage/devicetree.py", line 721, in processActions
:    action.execute(intf=self.intf)
:  File "/usr/lib/anaconda/storage/__init__.py", line 356, in doIt
:    self.devicetree.processActions()
:  File "/usr/lib/anaconda/packages.py", line 110, in turnOnFilesystems
:    anaconda.id.storage.doIt()
:  File "/usr/lib/anaconda/dispatch.py", line 210, in moveStep
:    rc = stepFunc(self.anaconda)
:  File "/usr/lib/anaconda/dispatch.py", line 126, in gotoNext
:    self.moveStep()
:  File "/usr/lib/anaconda/dispatch.py", line 233, in currentStep
:    self.gotoNext()
:  File "/usr/lib/anaconda/gui.py", line 1403, in setScreen
:    (step, anaconda) = self.anaconda.dispatch.currentStep()
:  File "/usr/lib/anaconda/gui.py", line 1596, in setup_window
:    self.setScreen()
:  File "/usr/lib/anaconda/gui.py", line 1609, in run
:    self.setup_window()
:  File "/usr/lib/anaconda/gui.py", line 1303, in run
:    self.icw.run ()
:  File "/usr/bin/anaconda", line 1131, in <module>
:    anaconda.intf.run(anaconda)
:CryptoError: luks_format failed for '/dev/md0'

Comment 1 Alexander Todorov 2014-07-22 08:58:56 UTC
Created attachment 919833 [details]
File: environ

Comment 2 Alexander Todorov 2014-07-22 08:58:57 UTC
Created attachment 919834 [details]
File: type

Comment 3 Alexander Todorov 2014-07-22 08:58:58 UTC
Created attachment 919835 [details]
File: exnFileName

Comment 4 Alexander Todorov 2014-07-22 08:59:00 UTC
Created attachment 919836 [details]
File: anaconda-tb-8ArM4j

Comment 5 Alexander Todorov 2014-07-22 08:59:01 UTC
Created attachment 919837 [details]
File: product

Comment 6 Alexander Todorov 2014-07-22 08:59:01 UTC
Created attachment 919838 [details]
File: last_occurrence

Comment 7 Alexander Todorov 2014-07-22 08:59:02 UTC
Created attachment 919839 [details]
File: hashmarkername

Comment 8 Alexander Todorov 2014-07-22 08:59:03 UTC
Created attachment 919840 [details]
File: version

Comment 9 Alexander Todorov 2014-07-22 08:59:03 UTC
Created attachment 919841 [details]
File: release

Comment 11 Alexander Todorov 2014-07-22 09:03:14 UTC
ks.cfg to reproduce:

bootloader --location=mbr
clearpart --all --initlabel 
part /boot --fstype="ext4" --size=200
part swap --size=1000
part raid.01 --grow --size=2048
part raid.02 --grow --size=2048
part raid.03 --grow --size=2048
raid / --device=0 --fstype="ext4" --level=RAID5 --encrypted  --cipher="aes-cbc-essiv:sa256" --passphrase="mypassword" raid.01 raid.02 raid.03