Bug 1439411 - AttributeError: 'LUKS' object has no attribute 'hasKey'
Summary: AttributeError: 'LUKS' object has no attribute 'hasKey'
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vendula Poncova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:7c73a64b4c205416ebf80b8a36d...
Depends On:
Blocks: F27BetaBlocker
TreeView+ depends on / blocked
 
Reported: 2017-04-06 00:04 UTC by Adam Williamson
Modified: 2017-08-21 16:18 UTC (History)
6 users (show)

Fixed In Version: anaconda-27.3-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-21 16:18:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (179.45 KB, text/plain)
2017-04-06 00:04 UTC, Adam Williamson
no flags Details
File: environ (529 bytes, text/plain)
2017-04-06 00:04 UTC, Adam Williamson
no flags Details
File: lsblk_output (1.63 KB, text/plain)
2017-04-06 00:04 UTC, Adam Williamson
no flags Details
File: nmcli_dev_list (1.26 KB, text/plain)
2017-04-06 00:04 UTC, Adam Williamson
no flags Details
File: os_info (451 bytes, text/plain)
2017-04-06 00:04 UTC, Adam Williamson
no flags Details

Description Adam Williamson 2017-04-06 00:04:40 UTC
Description of problem:
Happens reliably when trying to do an encrypted install with current Fedora Rawhide nightlies. Every openQA test that does an encrypted install is hitting this.

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

The following was filed automatically by anaconda:
anaconda 27.3-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python3.6/site-packages/pyanaconda/storage_utils.py", line 406, in <genexpr>
    and not d.format.hasKey)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/storage_utils.py", line 408, in verify_luks_devices_have_key
    for dev in devices:
  File "/usr/lib64/python3.6/site-packages/pyanaconda/storage_utils.py", line 598, in check
    check(storage, constraints, result.add_error, result.add_warning)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/kickstart.py", line 300, in execute
    report = storage_checker.check(storage)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/kickstart.py", line 2301, in doKickstartStorage
    ksdata.autopart.execute(storage, ksdata, instClass)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 432, in _doExecute
    doKickstartStorage(self.storage, self.data, self.instclass)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 455, in _doExecute
    raise e
  File "/usr/lib64/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/threads.py", line 251, in run
    threading.Thread.run(self, *args, **kwargs)
AttributeError: 'LUKS' object has no attribute 'hasKey'

Additional info:
addons:         com_redhat_docker, com_redhat_kdump
cmdline:        /usr/libexec/system-python  /sbin/anaconda
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.11.0-0.rc5.git1.1.fc27.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        rawhide

Comment 1 Adam Williamson 2017-04-06 00:04:46 UTC
Created attachment 1269099 [details]
File: anaconda-tb

Comment 2 Adam Williamson 2017-04-06 00:04:47 UTC
Created attachment 1269100 [details]
File: environ

Comment 3 Adam Williamson 2017-04-06 00:04:48 UTC
Created attachment 1269101 [details]
File: lsblk_output

Comment 4 Adam Williamson 2017-04-06 00:04:49 UTC
Created attachment 1269102 [details]
File: nmcli_dev_list

Comment 5 Adam Williamson 2017-04-06 00:04:50 UTC
Created attachment 1269103 [details]
File: os_info

Comment 6 Adam Williamson 2017-04-06 00:05:48 UTC
Proposing as an F27 Beta blocker, violates: "When using the guided partitioning flow, the installer must be able to:  ...  Complete an installation using any combination of disk configuration options it allows the user to select"

Comment 7 Adam Williamson 2017-04-06 23:17:13 UTC
This bug seems to have been backported to F26 with anaconda-26.21.2-1.fc26 (currently in updates-testing).

Comment 8 Vendula Poncova 2017-04-07 13:52:17 UTC
Fixed in a pull request: https://github.com/rhinstaller/anaconda/pull/1018

Comment 9 Fedora Update System 2017-04-28 13:15:48 UTC
anaconda-26.21.4-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-f620d8c7c2

Comment 10 Jan Kurik 2017-08-15 06:35:26 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.

Comment 11 Adam Williamson 2017-08-21 16:18:47 UTC
This was fixed a while back (as confirmed by openQA test results).


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