Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1439411

Summary: AttributeError: 'LUKS' object has no attribute 'hasKey'
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: anacondaAssignee: Vendula Poncova <vponcova>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: anaconda-maint-list, g.kaviyarasu, jonathan, mkolman, vanmeeuwen+fedora, vponcova
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:7c73a64b4c205416ebf80b8a36d38a2fc0b04f19256673846067b637e0cecef7;
Fixed In Version: anaconda-27.3-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-21 16:18:47 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: 1396702    
Attachments:
Description Flags
File: anaconda-tb
none
File: environ
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info none

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).