Bug 1208979 - LUKSError: luks device not configured
Summary: LUKSError: luks device not configured
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vratislav Podzimek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3d5041887963a6c622e7f8ad488...
: 1204546 1214415 (view as bug list)
Depends On:
Blocks: F22BetaFreezeException F22FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2015-04-04 19:10 UTC by Chris Murphy
Modified: 2015-08-11 11:32 UTC (History)
22 users (show)

Fixed In Version: libblockdev-0.11-1.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-29 12:57:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (640.80 KB, text/plain)
2015-04-04 19:10 UTC, Chris Murphy
no flags Details
File: anaconda.log (26.88 KB, text/plain)
2015-04-04 19:10 UTC, Chris Murphy
no flags Details
File: environ (590 bytes, text/plain)
2015-04-04 19:10 UTC, Chris Murphy
no flags Details
File: journalctl (352.91 KB, text/plain)
2015-04-04 19:10 UTC, Chris Murphy
no flags Details
File: lsblk_output (2.29 KB, text/plain)
2015-04-04 19:10 UTC, Chris Murphy
no flags Details
File: nmcli_dev_list (1.92 KB, text/plain)
2015-04-04 19:10 UTC, Chris Murphy
no flags Details
File: os_info (463 bytes, text/plain)
2015-04-04 19:10 UTC, Chris Murphy
no flags Details
File: program.log (40.23 KB, text/plain)
2015-04-04 19:10 UTC, Chris Murphy
no flags Details
File: storage.log (161.80 KB, text/plain)
2015-04-04 19:10 UTC, Chris Murphy
no flags Details
File: ifcfg.log (4.08 KB, text/plain)
2015-04-04 19:10 UTC, Chris Murphy
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1210254 0 unspecified CLOSED re-using partitions inside LUKS automatically checked for encryption 2021-02-22 00:41:40 UTC

Internal Links: 1210254

Description Chris Murphy 2015-04-04 19:10:20 UTC
Description of problem:
Fedora 22 Beta TC7, reused existing LUKS standard partition for root.

Version-Release number of selected component:
anaconda-core-22.20.8-1.fc22.x86_64

The following was filed automatically by anaconda:
anaconda 22.20.8-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/formats/luks.py", line 179, in setup
    raise LUKSError("luks device not configured")
  File "/usr/lib/python2.7/site-packages/blivet/devices/storage.py", line 557, in setupParents
    _format.setup()
  File "/usr/lib/python2.7/site-packages/blivet/devices/storage.py", line 414, in _preSetup
    self.setupParents(orig=orig)
  File "/usr/lib/python2.7/site-packages/blivet/devices/storage.py", line 425, in setup
    if not self._preSetup(orig=orig):
  File "/usr/lib/python2.7/site-packages/blivet/deviceaction.py", line 661, in execute
    self.device.setup(orig=True)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 361, in processActions
    action.execute(callbacks)
  File "/usr/lib/python2.7/site-packages/blivet/blivet.py", line 162, in doIt
    self.devicetree.processActions(callbacks)
  File "/usr/lib/python2.7/site-packages/blivet/osinstall.py", line 1058, in turnOnFilesystems
    storage.doIt(callbacks)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 196, in doInstall
    turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall, callbacks=callbacks_reg)
  File "/usr/lib64/python2.7/threading.py", line 766, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 244, in run
    threading.Thread.run(self, *args, **kwargs)
LUKSError: luks device not configured

Additional info:
cmdline:        /usr/bin/python2  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=vmlinuz0 initrd=initrd0.img root=live:CDLABEL=Fedora-Live-WS-x86_64-22_B-T7 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0 elevator=deadline
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.0.0-0.rc5.git4.1.fc22.x86_64
other involved packages: python-blivet-1.0.6-1.fc22.noarch, python-libs-2.7.9-5.fc22.x86_64
product:        Fedora
release:        Fedora release 22 (Twenty Two)
type:           anaconda
version:        22

Comment 1 Chris Murphy 2015-04-04 19:10:23 UTC
Created attachment 1010927 [details]
File: anaconda-tb

Comment 2 Chris Murphy 2015-04-04 19:10:24 UTC
Created attachment 1010928 [details]
File: anaconda.log

Comment 3 Chris Murphy 2015-04-04 19:10:25 UTC
Created attachment 1010929 [details]
File: environ

Comment 4 Chris Murphy 2015-04-04 19:10:27 UTC
Created attachment 1010930 [details]
File: journalctl

Comment 5 Chris Murphy 2015-04-04 19:10:27 UTC
Created attachment 1010931 [details]
File: lsblk_output

Comment 6 Chris Murphy 2015-04-04 19:10:28 UTC
Created attachment 1010932 [details]
File: nmcli_dev_list

Comment 7 Chris Murphy 2015-04-04 19:10:29 UTC
Created attachment 1010933 [details]
File: os_info

Comment 8 Chris Murphy 2015-04-04 19:10:30 UTC
Created attachment 1010934 [details]
File: program.log

Comment 9 Chris Murphy 2015-04-04 19:10:32 UTC
Created attachment 1010935 [details]
File: storage.log

Comment 10 Chris Murphy 2015-04-04 19:10:32 UTC
Created attachment 1010936 [details]
File: ifcfg.log

Comment 11 Fedora Blocker Bugs Application 2015-04-04 19:20:12 UTC
Proposed as a Blocker for 22-beta by Fedora user chrismurphy using the blocker tracking app because:

 "When using the custom partitioning flow, the installer must be able to:Encrypt newly-created storage volumes"

1. Installed TC6 with standard partitions, one XFS /boot, one LUKS encrypted /.
2. Boot TC7, used existing /boot checking reformat, used existing / checking reformat. So it's a new fs volume, but the installer used the existing LUKS volume (UUID remains the same).

Open question per criterion whether "reuse existing LUKS with new volume" applies to beta or final, but the installer shouldn't crash.

Comment 12 Chris Murphy 2015-04-04 19:32:47 UTC
Bug 1200749 sounds identical, but involves LVM.

Comment 13 Adam Williamson 2015-04-06 16:41:00 UTC
Discussed at 2015-04-06 blocker review meeting: https://meetbot.fedoraproject.org/fedora-blocker-review/2015-04-06/f22-blocker-review.2015-04-06-16.00.log.txt . Accepted as a Final blocker and Beta freeze exception: we decided this is a conditional violation of Beta criterion "When using the custom partitioning flow, the installer must be able to: ...  Assign mount points to existing storage volumes" in the case the existing volume is encrypted, but that it was most suitable as a Final blocker.

We'll take a fix for Beta if anaconda team is happy it's safe.

Comment 14 Vratislav Podzimek 2015-04-13 06:14:21 UTC
A fix for this is being tracked as part of the fixes for the bug #1210254.

Comment 15 madstitz 2015-04-22 09:19:21 UTC
Another user experienced a similar problem:

tried to use existing LUKS encrypted / and /home partitions for installation,
didn't change passphrase

cmdline:        /usr/bin/python2  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=/isolinux/vmlinuz0 root=live:LABEL=Fedora-Live-WS-x86_64-22_B-3 ro rd.live.image quiet rhgb
hashmarkername: anaconda
kernel:         4.0.0-0.rc5.git4.1.fc22.x86_64
other involved packages: python-blivet-1.0.7-1.fc22.noarch, python-libs-2.7.9-5.fc22.x86_64
package:        anaconda-core-22.20.9-1.fc22.x86_64
packaging.log:  
product:        Fedora
reason:         LUKSError: luks device not configured
release:        Fedora release 22 (Twenty Two)
version:        22

Comment 16 David Shea 2015-04-22 19:02:37 UTC
*** Bug 1214415 has been marked as a duplicate of this bug. ***

Comment 17 Fedora Update System 2015-04-24 02:15:32 UTC
anaconda-22.20.10-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/anaconda-22.20.10-1.fc22

Comment 18 sudeesh john 2015-04-26 03:42:52 UTC
Another user experienced a similar problem:

Use the existing luks encrypted partitions as root/swap.

cmdline:        /usr/bin/python2  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=/isolinux/vmlinuz0 initrd=/isolinux/initrd0.img root=live:UUID=701A-C410 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0
hashmarkername: anaconda
kernel:         4.0.0-0.rc5.git4.1.fc22.x86_64
other involved packages: python-blivet-1.0.7-1.fc22.noarch, python-libs-2.7.9-5.fc22.x86_64
package:        anaconda-core-22.20.9-1.fc22.x86_64
packaging.log:  
product:        Fedora
reason:         LUKSError: luks device not configured
release:        Fedora release 22 (Twenty Two)
version:        22

Comment 19 Fedora Update System 2015-04-26 12:46:56 UTC
Package libblockdev-0.11-1.fc22, python-blivet-1.0.8-1.fc22, anaconda-22.20.10-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libblockdev-0.11-1.fc22 python-blivet-1.0.8-1.fc22 anaconda-22.20.10-1.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-6866/libblockdev-0.11-1.fc22,python-blivet-1.0.8-1.fc22,anaconda-22.20.10-1.fc22
then log in and leave karma (feedback).

Comment 20 Fedora Update System 2015-04-29 12:57:17 UTC
libblockdev-0.11-1.fc22, python-blivet-1.0.8-1.fc22, anaconda-22.20.10-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 21 Timothy M. Butterworth 2015-04-29 17:17:37 UTC
Another user experienced a similar problem:

Attempted to Install Fedora 22 Beat on an Existing Fedora 21 Installation. LUKS is giving an error during the installation start.

Partitioning Scheme:

To be reformated (No Encryption Applied)
UEFI -> /boot/efi VFAT
Boot -> /boot EXT4

LUKS to be reformated
Root -> / EXT4 with LUKS
Home -> /home with LUKS

Existing LUKS to be mounted
Local File Storage -> /opt/lfsvr EXT4 

cmdline:        /usr/bin/python2  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=/isolinux/vmlinuz0 root=live:LABEL=Fedora-Live-WS-x86_64-22_B-3 ro rd.live.image quiet rhgb
hashmarkername: anaconda
kernel:         4.0.0-0.rc5.git4.1.fc22.x86_64
other involved packages: python-blivet-1.0.7-1.fc22.noarch, python-libs-2.7.9-5.fc22.x86_64
package:        anaconda-core-22.20.9-1.fc22.x86_64
packaging.log:  
product:        Fedora
reason:         LUKSError: luks device not configured
release:        Fedora release 22 (Twenty Two)
version:        22

Comment 22 Faith Ekstrand 2015-05-07 15:08:29 UTC
Another user experienced a similar problem:

I'm tryiing to install fedora 22 into an existing btrfs volume that is already luks encrypted.  I can get through the disk setup just fine and the installer decrypts the drive.  However, it crashes when I click "begin installation"

cmdline:        /usr/bin/python2  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=/isolinux/vmlinuz0 root=live:LABEL=Fedora-Live-WS-x86_64-22_B-3 ro rd.live.image quiet rhgb rd.live.check
hashmarkername: anaconda
kernel:         4.0.0-0.rc5.git4.1.fc22.x86_64
other involved packages: python-blivet-1.0.7-1.fc22.noarch, python-libs-2.7.9-5.fc22.x86_64
package:        anaconda-core-22.20.9-1.fc22.x86_64
packaging.log:  
product:        Fedora
reason:         LUKSError: luks device not configured
release:        Fedora release 22 (Twenty Two)
version:        22

Comment 23 Adam Williamson 2015-05-07 16:31:31 UTC
Jason: as you can see, it should be fixed in the Final TCs - you can try Final TC2: https://dl.fedoraproject.org/pub/alt/stage/22_TC2/

Comment 24 Vratislav Podzimek 2015-05-19 12:14:38 UTC
*** Bug 1204546 has been marked as a duplicate of this bug. ***

Comment 25 Šimon Lukašík 2015-05-19 13:24:38 UTC
Tested in TC4. Works well.

Encrypted lvm scenario is much more smoother now (from UX pov.).

Excellent work. Thank You!

Comment 26 Vratislav Podzimek 2015-05-19 15:26:15 UTC
(In reply to Šimon Lukašík from comment #25)
> Tested in TC4. Works well.
> 
> Encrypted lvm scenario is much more smoother now (from UX pov.).
> 
> Excellent work. Thank You!
Nice! Thanks for the confirmation.

Comment 27 Jakub Dorňák 2015-05-20 22:30:16 UTC
Another user experienced a similar problem:

installing f22 beta from USB stick as a replacement of f21
i have 2 disks with four partitions > four RAID1 volumes / (encrypted, reformating), /boot (not encrypted, reformating), swap (encrypted, reformating), /home (encrypted, keeping data)

cmdline:        /usr/bin/python2  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=vmlinuz0 initrd=initrd0.img root=live:CDLABEL=Fedora-Live-WS-x86_64-22_B-3 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0 
hashmarkername: anaconda
kernel:         4.0.0-0.rc5.git4.1.fc22.x86_64
other involved packages: python-blivet-1.0.7-1.fc22.noarch, python-libs-2.7.9-5.fc22.x86_64
package:        anaconda-core-22.20.9-1.fc22.x86_64
packaging.log:  
product:        Fedora
reason:         LUKSError: luks device not configured
release:        Fedora release 22 (Twenty Two)
version:        22

Comment 28 Zsolt Harsing 2015-05-23 15:43:54 UTC
Another user experienced a similar problem:

Hello,

I'm attepting to install Fedora 22 beta, but it fails.

I want to install the new Fedora replacing the old (F20), but I want to keep my home folder as it is.

I have dropedd and recreated the root, swap and boot partiotions one by one and then assigned the original home partion to the /home mount point.

I've had my disk already encrypted and I was going to do again. The installer was able to unlock it, but it seems it droped the setting or just the next phase didn't have this setup - not sure how it's organized.

Also, tried to unlock in file manager and then just after that perform the installation. I still had to unlock separately and it end up having the sme exception.

The error comes when I start the actual installation, I guess when it tries to unlock the disk prior to alter the file system.

Thanks for your help.

Hope this won't be the same on the next Tuesday :)

Regards,
Zsolt Harsing

cmdline:        /usr/bin/python2  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=vmlinuz0 initrd=initrd0.img root=live:CDLABEL=Fedora-Live-WS-x86_64-22_B-3 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0 
hashmarkername: anaconda
kernel:         4.0.0-0.rc5.git4.1.fc22.x86_64
other involved packages: python-blivet-1.0.7-1.fc22.noarch, python-libs-2.7.9-5.fc22.x86_64
package:        anaconda-core-22.20.9-1.fc22.x86_64
packaging.log:  
product:        Fedora
reason:         LUKSError: luks device not configured
release:        Fedora release 22 (Twenty Two)
version:        22

Comment 29 Zsolt Harsing 2015-05-23 16:09:45 UTC
Follow-up: It actually deleted the partitions I meant to re-create.

Comment 30 Zachary Williams 2015-06-13 05:16:42 UTC
Another user experienced a similar problem:

After selecting to wipe my entire drive Anaconda proceeds to the next step where I can create a user and set the root password. It freezes on setting up installtion environment and then tells me a problem occured and closes.

cmdline:        /usr/bin/python2  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=vmlinuz0 initrd=initrd0.img root=live:CDLABEL=Fedora-Live-WS-x86_64-22-3 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0 
hashmarkername: anaconda
kernel:         4.0.4-301.fc22.x86_64
other involved packages: python-libs-2.7.9-6.fc22.x86_64, python-blivet-1.0.9-1.fc22.noarch
package:        anaconda-core-22.20.13-1.fc22.x86_64
packaging.log:  
product:        Fedora
reason:         LUKSError: luks device not configured
release:        Fedora release 22 (Twenty Two)
version:        22

Comment 31 Tim Miller 2015-07-28 16:40:18 UTC
Another user experienced a similar problem:

I am trying to do an install (not an upgrade) of a Fedora 20 laptop to Fedora 22 Workstation.

I have an ext4 /boot partition (sda1) and an LUKS encrypted partition (sda2) in which all the logical volumes (LVs) for my F20 install reside.  I would like to reuse this partition scheme (including the LVs) especially since /home is one of the LVs within the LUKS-encrypted sda2.

Unfortunately, the installer has issues with this installation setup.

Installation attempt number 1:
 - select the correct drive, check 'manual partition', DID NOT check the 'encrypt partition'

When presented with partition screen, only sda1 and sda2 partitions were shown.  The LUKS encrypted sda2 was not unlocked and the existing LVs were not presented.  (Expected behavior, BTW).  I clicked on sda2, was given a passphrase dialog, and entered the correct passphrase.  The LVs **STILL** did not show up.  I had to "rescan disks" in order for the unlocked LVs to appear.  [Bug #1 IMHO]

I walk through all the LVs to map them to the correct mount points, all except /home were set to be formatted to ext4.  I set up sda1 to /boot, formatted to ext4 and not encrypted.

I accept ack all the warnings and changes.  I proceed with the installation.  Installation fails with the information hopefully reported in this submission.

PLEASE NOTE:  I did attempt a second installation method where on the "install destination" screen I checked the "encrypt system" box.  I was prompted for a passphrase (entered the original passphrase).  However, the behavior was exactly as described above.  The python exception output was slightly different at the beginning (paraphrased "luks encryption already present").  

So, the installer clearly does not work with encrypted partition schemes created by the installer from previous Fedora releases.  The F20 install was conducted in similar fashion as above but did not have any issue with prior encrypted partitions.

cmdline:        /usr/bin/python2  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   initrd=initrd0.img root=live:CDLABEL=LIVE rootfstype=vfat rw rd.live.image rd.live.overlay=LABEL=LIVE quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0  BOOT_IMAGE=vmlinuz0 
hashmarkername: anaconda
kernel:         4.0.4-301.fc22.x86_64
other involved packages: python-libs-2.7.9-6.fc22.x86_64, python-blivet-1.0.9-1.fc22.noarch
package:        anaconda-core-22.20.13-1.fc22.x86_64
packaging.log:  
product:        Fedora
reason:         LUKSError: luks device not configured
release:        Fedora release 22 (Twenty Two)
version:        22

Comment 32 Tim Miller 2015-07-28 16:45:58 UTC
(In reply to Tim Miller from comment #31)
> Another user experienced a similar problem:
> 
> I am trying to do an install (not an upgrade) of a Fedora 20 laptop to
> Fedora 22 Workstation.

Please note:  I am not using a Beta version of Fedora 22.  I just downloaded the ISO last night and this problem seems to still exist.

Comment 33 Seb L. 2015-08-11 09:33:59 UTC
Another user experienced a similar problem:

Fedora 22 netinstall does not support full disk (LVM PV level) encryption.

As a result, when trying to install it over a functional full-disk encrypted Fedora 21, it destroys /boot then crashes, rendering the system unusable.

Apparently the luks tools are missing in this version of the installer.

Everything worked fine with Fedora 20 and Fedora 21 installers in the exact same situation, this is a regression introduced in Fedora 22.

addons:         com_redhat_kdump
cmdline:        /usr/bin/python2  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=linux_install/f22.x86_64/vmlinuz initrd=linux_install/f22.x86_64/initrd.img inst.stage2=http://download.fedoraproject.org/pub/fedora/linux/releases/22/Server/x86_64/os/ ip=dhcp
dnf.rpm.log:    Aug 11 09:03:40 INFO --- logging initialized ---
hashmarkername: anaconda
kernel:         4.0.4-301.fc22.x86_64
package:        anaconda-22.20.13-1
product:        Fedora
reason:         LUKSError: luks device not configured
release:        Cannot get release name.
version:        22

Comment 34 Seb L. 2015-08-11 11:32:36 UTC
Another user experienced a similar problem:

The latest respins (F22-20150806) are also affected by this defect.

cmdline:        /usr/bin/python2  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=vmlinuz0 initrd=initrd0.img root=live:CDLABEL=LIVE rootfstype=vfat ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0 
hashmarkername: anaconda
kernel:         4.1.3-201.fc22.x86_64
other involved packages: python-libs-2.7.10-4.fc22.x86_64, python-blivet-1.0.10-1.fc22.noarch
package:        anaconda-core-22.20.13-1.fc22.x86_64
packaging.log:  
product:        Fedora
reason:         LUKSError: luks device not configured
release:        Fedora release 22 (Twenty Two)
version:        22


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