Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1836269

Summary: Traceback when installing a system with LUKS and a kickstart
Product: Red Hat Enterprise Linux 8 Reporter: Renaud Métrich <rmetrich>
Component: python-blivetAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.2CC: jkubin, jstodola, pzatko, vtrefny
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-blivet-3.2.2-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 03:22:25 UTC Type: Bug
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: 1515824    
Attachments:
Description Flags
Anaconda logs
none
Kickstart ported from RHEL7 (basically only repos changed)
none
Update image based on RHEL 8.2 DVD none

Description Renaud Métrich 2020-05-15 14:13:22 UTC
Description of problem:

Trying to install a system using a kickstart used for RHEL7 systems encrypting the root volume group into a luks partition, I get the following backtrace:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
anaconda 29.19.2.17 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/blivet/devices/storage.py", line 742, in _set_format
    self.size = fmt.min_size
  File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/blivet/devices/storage.py", line 785, in <lambda>
    lambda d, f: d._set_format(f),
  File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/blivet/devices/storage.py", line 145, in __init__
    self.format = fmt 
  File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/blivet/devices/dm.py", line 84, in __init__
    parents=parents, sysfs_path=sysfs_path)
  File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/blivet/devices/dm.py", line 253, in __init__
    exists=exists, target="crypt")
  File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/blivet/devices/luks.py", line 64, in __init__
    uuid=None, exists=exists)
  File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/kickstart.py", line 1719, in execute
    parents=request)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/kickstart.py", line 1421, in execute
    p.execute(storage, ksdata, instClass)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/kickstart.py", line 2857, in doKickstartStorage
    ksdata.partition.execute(storage, ksdata, instClass)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/ui/tui/spokes/storage.py", line 451, in execute
    doKickstartStorage(self.storage, self.data, self.instclass)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/ui/tui/hubs/summary.py", line 74, in setup 
    spoke.execute()
  File "/usr/lib64/python3.6/site-packages/pyanaconda/ui/tui/__init__.py", line 208, in setup 
    should_schedule = obj.setup(self.ENVIRONMENT)
  File "/sbin/anaconda", line 815, in <module>
    anaconda._intf.setup(ksdata)
AttributeError: can't set attribute
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

The kickstart was working fine on RHEL7, I don't understand what is going on here.

Kickstart and logs attached.


Version-Release number of selected component (if applicable):

anaconda-29.19.2.17 (RHEL 8.2)


How reproducible:

Always

Comment 1 Renaud Métrich 2020-05-15 14:14:26 UTC
Created attachment 1688939 [details]
Anaconda logs

Comment 2 Renaud Métrich 2020-05-15 14:15:43 UTC
Created attachment 1688940 [details]
Kickstart ported from RHEL7 (basically only repos changed)

Comment 3 Jan Stodola 2020-05-15 14:29:24 UTC
Switching to blivet based on the traceback.

Comment 5 Vojtech Trefny 2020-05-20 10:20:52 UTC
upstream PR: https://github.com/storaged-project/blivet/pull/848

Comment 9 Renaud Métrich 2020-09-10 07:43:43 UTC
Created attachment 1714389 [details]
Update image based on RHEL 8.2 DVD

Boot the system with this as a workaround:

inst.updates=http://[...]/rhel-8.2-bz1836269.img

Comment 11 Vojtech Trefny 2020-10-19 09:03:06 UTC
*** Bug 1888961 has been marked as a duplicate of this bug. ***

Comment 13 errata-xmlrpc 2020-11-04 03:22:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (python-blivet bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4728