Bug 1040691 - CryptoError: luks_format failed for '/dev/md/00'
Summary: CryptoError: luks_format failed for '/dev/md/00'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c545365de2887eb672e514c91e3...
Depends On:
Blocks: F20FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2013-12-11 22:17 UTC by Alexey Torkhov
Modified: 2013-12-12 15:23 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-12 15:23:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (1.93 MB, text/plain)
2013-12-11 22:17 UTC, Alexey Torkhov
no flags Details
File: anaconda.log (86.89 KB, text/plain)
2013-12-11 22:17 UTC, Alexey Torkhov
no flags Details
File: environ (525 bytes, text/plain)
2013-12-11 22:17 UTC, Alexey Torkhov
no flags Details
File: journalctl (711.33 KB, text/plain)
2013-12-11 22:17 UTC, Alexey Torkhov
no flags Details
File: lsblk_output (2.92 KB, text/plain)
2013-12-11 22:17 UTC, Alexey Torkhov
no flags Details
File: nmcli_dev_list (4.33 KB, text/plain)
2013-12-11 22:17 UTC, Alexey Torkhov
no flags Details
File: os_info (375 bytes, text/plain)
2013-12-11 22:17 UTC, Alexey Torkhov
no flags Details
File: program.log (131.78 KB, text/plain)
2013-12-11 22:17 UTC, Alexey Torkhov
no flags Details
File: storage.log (1009.57 KB, text/plain)
2013-12-11 22:17 UTC, Alexey Torkhov
no flags Details
File: ifcfg.log (6.58 KB, text/plain)
2013-12-11 22:17 UTC, Alexey Torkhov
no flags Details

Description Alexey Torkhov 2013-12-11 22:17:03 UTC
Description of problem:
Was trying to create encrypted LVM-on-RAID installation.

Version-Release number of selected component:
anaconda-20.25.14-1.fc20.x86_64

The following was filed automatically by anaconda:
anaconda 20.25.14-1 exception report
Traceback (most recent call first):
  File "/tmp/updates/blivet/devicelibs/crypto.py", line 98, in luks_format
    raise CryptoError("luks_format failed for '%s'" % device)
  File "/tmp/updates/blivet/formats/luks.py", line 196, in create
    key_size=self.key_size)
  File "/tmp/updates/blivet/deviceaction.py", line 473, in execute
    options=self.device.formatArgs)
  File "/tmp/updates/blivet/devicetree.py", line 239, in processActions
    action.execute()
  File "/tmp/updates/blivet/__init__.py", line 308, in doIt
    self.devicetree.processActions()
  File "/tmp/updates/blivet/__init__.py", line 167, in turnOnFilesystems
    storage.doIt()
  File "/tmp/updates/pyanaconda/install.py", line 142, in doInstall
    turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall)
  File "/usr/lib64/python2.7/threading.py", line 764, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/tmp/updates/pyanaconda/threads.py", line 192, in run
    threading.Thread.run(self, *args, **kwargs)
CryptoError: luks_format failed for '/dev/md/00'

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   initrd=initrd0.img root=live:CDLABEL=Fedora-Live-KDE-x86_64-20-TC5 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0  BOOT_IMAGE=vmlinuz0 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.11.10-300.fc20.x86_64
other involved packages: python-libs-2.7.5-9.fc20.x86_64
product:        Fedora
release:        Fedora release 20 (Heisenbug)
type:           anaconda
version:        20

Comment 1 Alexey Torkhov 2013-12-11 22:17:16 UTC
Created attachment 835489 [details]
File: anaconda-tb

Comment 2 Alexey Torkhov 2013-12-11 22:17:20 UTC
Created attachment 835490 [details]
File: anaconda.log

Comment 3 Alexey Torkhov 2013-12-11 22:17:22 UTC
Created attachment 835491 [details]
File: environ

Comment 4 Alexey Torkhov 2013-12-11 22:17:28 UTC
Created attachment 835492 [details]
File: journalctl

Comment 5 Alexey Torkhov 2013-12-11 22:17:30 UTC
Created attachment 835493 [details]
File: lsblk_output

Comment 6 Alexey Torkhov 2013-12-11 22:17:32 UTC
Created attachment 835494 [details]
File: nmcli_dev_list

Comment 7 Alexey Torkhov 2013-12-11 22:17:34 UTC
Created attachment 835495 [details]
File: os_info

Comment 8 Alexey Torkhov 2013-12-11 22:17:36 UTC
Created attachment 835496 [details]
File: program.log

Comment 9 Alexey Torkhov 2013-12-11 22:17:43 UTC
Created attachment 835497 [details]
File: storage.log

Comment 10 Alexey Torkhov 2013-12-11 22:17:46 UTC
Created attachment 835498 [details]
File: ifcfg.log

Comment 11 Fedora Blocker Bugs Application 2013-12-11 22:19:31 UTC
Proposed as a Blocker for 20-final by Fedora user atorkhov using the blocker tracking app because:

 The installer must be able to create and install to any workable partition layout using any file system and/or container format combination offered in a default installer configuration.

Comment 12 Adam Williamson 2013-12-11 22:31:42 UTC
Couldn't reproduce on a quick try. TC5 desktop live install in a VM, two 15GB disks. Installation Options, set LUKS and encryption, went to custom part. Wiped all existing partitions. Created 500MB /boot, 12GB / , set LVM container to RAID-1, created 2GB swap . completed configuration and started install, partitioning succeeded, no errors, no crash.

Comment 13 Alexey Torkhov 2013-12-11 22:55:19 UTC
Got this crash submitted in bug 1021507 comment 33 while trying to reproduce.

Comment 14 Adam Williamson 2013-12-11 23:27:42 UTC
I was able to make it crash if I checked and immediately unchecked the 'Encrypt' checkbox inside the VG's properties (when setting RAID-1). The LVs have their own Encrypt checkboxes, which are checked by default if you set 'Encrypt my data' on installation options prior to entering custom partitioning. Not sure if it was the same crash as Alexey's, I'll try and reproduce again later.

Comment 15 Adam Williamson 2013-12-12 00:44:51 UTC
Looks like I hit something different from Alexey's; it showed up as https://bugzilla.redhat.com/show_bug.cgi?id=1040716 . It seems reproducible with a precise set of steps, trying to pin it down now.

Comment 16 Adam Williamson 2013-12-12 01:31:40 UTC
so I don't know precisely what alexey did, but from what I've done with trying encrypted-LVM-on-RAID installs in various ways all afternoon, I'd say it's working well enough to ship; I hit a couple of issues, but it's certainly possible to get an encrypted-LVM-on-soft-RAID install that works. At the moment I'm -1 blocker. If alexey can provide specific reproduction steps for the crasher he hit, it'd help evaluate it.

Comment 17 Alexey Torkhov 2013-12-12 07:38:42 UTC
My steps as described in bug 1021507 comment 33 were like to:

1. Go to installation destination. Select default (LVM, no encryption).
2. Go to custom partitioning. Auto-create partitions
3. Select /, press modify on volume group, check encrypt there.

Seems like checking "encrypt" button on volume group is problematic somehow.

Comment 18 Adam Williamson 2013-12-12 07:54:37 UTC
Just tried that with RC1 desktop live, worked fine.

Comment 19 Alexey Torkhov 2013-12-12 13:07:28 UTC
Works fine with RC1 too.

Comment 20 Kamil Páral 2013-12-12 15:23:48 UTC
If this works with RC1, I'm closing this as fixed.


Note You need to log in before you can comment on or make changes to this bug.