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 - Traceback when installing a system with LUKS and a kickstart
Summary: Traceback when installing a system with LUKS and a kickstart
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: python-blivet
Version: 8.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 8.0
Assignee: Vojtech Trefny
QA Contact: Release Test Team
URL:
Whiteboard:
: 1888961 (view as bug list)
Depends On:
Blocks: 1515824
TreeView+ depends on / blocked
 
Reported: 2020-05-15 14:13 UTC by Renaud Métrich
Modified: 2024-03-25 15:56 UTC (History)
4 users (show)

Fixed In Version: python-blivet-3.2.2-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 03:22:25 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Anaconda logs (2.87 MB, application/x-tar)
2020-05-15 14:14 UTC, Renaud Métrich
no flags Details
Kickstart ported from RHEL7 (basically only repos changed) (1.94 KB, text/plain)
2020-05-15 14:15 UTC, Renaud Métrich
no flags Details
Update image based on RHEL 8.2 DVD (2.37 KB, application/gzip)
2020-09-10 07:43 UTC, Renaud Métrich
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 5387391 0 None None None 2020-09-10 08:27:03 UTC

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


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