Bug 1217438

Summary: CryptoError: Failed to activate device: Operation not permitted
Product: [Fedora] Fedora Reporter: Vratislav Podzimek <vpodzime>
Component: anacondaAssignee: Vratislav Podzimek <vpodzime>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: anaconda-maint-list, awilliam, danofsatx, g.kaviyarasu, jensting, jonathan, jskladan, robatino, vanmeeuwen+fedora, vpodzime
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: RejectedBlocker AcceptedFreezeException abrt_hash:3e2ddac1c5324ddfd09f4fdee539fbc8f167c9e6ae43aa8ff49903162eb5b223
Fixed In Version: python-blivet-1.0.9-1.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-13 01:17:09 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: 1043132    
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: dnf.log
none
File: environ
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: storage.log
none
File: syslog
none
File: ifcfg.log
none
File: packaging.log
none
File: program.log none

Description Vratislav Podzimek 2015-04-30 11:14:56 UTC
Description of problem:
Tried to unlock encrypted LUKS with a bad passphrase in Custom partitioning.

Version-Release number of selected component:
anaconda-22.20.8-1

The following was filed automatically by anaconda:
anaconda 22.20.8-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/gi/overrides/BlockDev.py", line 384, in wrapped
    raise transform[1](msg)
  File "/tmp/updates/blivet/formats/luks.py", line 187, in setup
    key_file=self._key_file)
  File "/tmp/updates/pyanaconda/ui/gui/spokes/custom.py", line 2655, in on_unlock_clicked
    device.format.setup()
  File "/tmp/updates/pyanaconda/ui/gui/utils.py", line 242, in _run_once_one_arg
    self._func(*args, **kwargs)
CryptoError: Failed to activate device: Operation not permitted

Additional info:
addons:         com_redhat_kdump
cmdline:        /usr/bin/python2  /sbin/anaconda
cmdline_file:   root=live:http://192.168.100.1/virtuals/squashfs_f22.img updates=http://192.168.100.1/virtuals/f22_updates.img inst.geoloc=0
dnf.rpm.log:    Apr 30 12:08:32 INFO --- logging initialized ---
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.0.0-0.rc5.git4.1.fc22.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        22

Comment 1 Vratislav Podzimek 2015-04-30 11:15:00 UTC
Created attachment 1020556 [details]
File: anaconda-tb

Comment 2 Vratislav Podzimek 2015-04-30 11:15:02 UTC
Created attachment 1020557 [details]
File: anaconda.log

Comment 3 Vratislav Podzimek 2015-04-30 11:15:03 UTC
Created attachment 1020558 [details]
File: dnf.log

Comment 4 Vratislav Podzimek 2015-04-30 11:15:04 UTC
Created attachment 1020559 [details]
File: environ

Comment 5 Vratislav Podzimek 2015-04-30 11:15:06 UTC
Created attachment 1020560 [details]
File: lsblk_output

Comment 6 Vratislav Podzimek 2015-04-30 11:15:07 UTC
Created attachment 1020561 [details]
File: nmcli_dev_list

Comment 7 Vratislav Podzimek 2015-04-30 11:15:08 UTC
Created attachment 1020562 [details]
File: os_info

Comment 8 Vratislav Podzimek 2015-04-30 11:15:10 UTC
Created attachment 1020563 [details]
File: storage.log

Comment 9 Vratislav Podzimek 2015-04-30 11:15:12 UTC
Created attachment 1020564 [details]
File: syslog

Comment 10 Vratislav Podzimek 2015-04-30 11:15:14 UTC
Created attachment 1020565 [details]
File: ifcfg.log

Comment 11 Vratislav Podzimek 2015-04-30 11:15:15 UTC
Created attachment 1020566 [details]
File: packaging.log

Comment 12 Vratislav Podzimek 2015-04-30 11:15:16 UTC
Created attachment 1020567 [details]
File: program.log

Comment 13 Fedora Blocker Bugs Application 2015-04-30 11:33:06 UTC
Proposed as a Blocker for 22-final by Fedora user vpodzime using the blocker tracking app because:

 Seems to be related to:
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.

After the traceback happens, the installer needs to be restarted with the correct passphrase entered, but that's really uncomfortable workaround.

Comment 14 Vratislav Podzimek 2015-04-30 11:34:31 UTC
Patch sent to anaconda-patches.

Comment 15 Vratislav Podzimek 2015-04-30 11:39:20 UTC
*** Bug 1214634 has been marked as a duplicate of this bug. ***

Comment 16 Adam Williamson 2015-05-01 00:19:18 UTC
I suspect if this were the last blocker we'd just say 'hey, type your passphrase right!' and handwave it, so I vote -1 blocker, +1 FE.

Comment 17 Dan Mossor [danofsatx] 2015-05-04 16:23:58 UTC
Discussed at the 2015-05-04 blocker review meeting.[0] Voted as AcceptedBlocker.

RejectedBlocker AcceptedFreezeException - we suspect this would get hand-waved if it was the last blocker on go/no-go day on the basis that you should just get it right, but we definitely would like to see it fixed.

[0] http://meetbot.fedoraproject.org/meetbot/fedora-blocker-review/2015-05-04/f22-blocker-review.2015-05-04-16.00.log.txt

Comment 18 Dan Mossor [danofsatx] 2015-05-04 16:44:16 UTC
Edit to previous comment:

Discussed at the 2015-05-04 blocker review meeting.[0] Voted as AcceptedFreezeException.

RejectedBlocker AcceptedFreezeException - we suspect this would get hand-waved if it was the last blocker on go/no-go day on the basis that you should just get it right, but we definitely would like to see it fixed.

[0] http://meetbot.fedoraproject.org/meetbot/fedora-blocker-review/2015-05-04/f22-blocker-review.2015-05-04-16.00.log.txt

Comment 19 Fedora Update System 2015-05-07 19:10:05 UTC
anaconda-22.20.12-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/anaconda-22.20.12-1.fc22

Comment 20 Fedora Update System 2015-05-11 00:00:58 UTC
Package python-blivet-1.0.9-1.fc22, anaconda-22.20.12-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 python-blivet-1.0.9-1.fc22 anaconda-22.20.12-1.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-7827/python-blivet-1.0.9-1.fc22,anaconda-22.20.12-1.fc22
then log in and leave karma (feedback).

Comment 21 Josef Skladanka 2015-05-12 10:27:32 UTC
Tried to unlock encrypted LUKS with a bad passphrase in Custom partitioning. No error was shown. Unlocking with correct pass-phrase afterwards worked fine.

Comment 22 Fedora Update System 2015-05-13 01:17:09 UTC
python-blivet-1.0.9-1.fc22, anaconda-22.20.12-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.