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.
Description of problem:
When using the "--reserved-space" option in kickstart, the installation fails with a traceback
Version-Release number of selected component (if applicable):
anaconda-29.19.0.40-1.el8
RHEL 8.0
How reproducible:
Everytime
Steps to Reproduce:
1. Create a basic kickstart with volgroup and --reserved space
clearpart --all --initlabel
zerombr
part pv.01 --size=1 --grow --ondisk=sda
volgroup vg0 pv.01 --reserved-space=20
part /boot --size=500 --ondisk=sda --fstype=xfs
logvol / --name=root --vgname=vg0 --size=1 --grow
2. kickstart a RHEL 8 installation
Actual results:
13:51:17,001 CRT exception: Traceback (most recent call last):
File "/sbin/anaconda", line 798, in <module>
anaconda._intf.setup(ksdata)
File "/usr/lib64/python3.6/site-packages/pyanaconda/ui/tui/__init__.py", line 208, in setup
should_schedule = obj.setup(self.ENVIRONMENT)
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/spokes/storage.py", line 452, in execute
doKickstartStorage(self.storage, self.data, self.instclass)
File "/usr/lib64/python3.6/site-packages/pyanaconda/kickstart.py", line 2845, in doKickstartStorage
ksdata.volgroup.execute(storage, ksdata, instClass)
File "/usr/lib64/python3.6/site-packages/pyanaconda/kickstart.py", line 2192, in execute
v.execute(storage, ksdata, instClass)
File "/usr/lib64/python3.6/site-packages/pyanaconda/kickstart.py", line 2264, in execute
request.reserved_space = self.reserved_space
File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
return m(*args, **kwargs)
AttributeError: can't set attribute
Expected results:
Installation reserves the specified amount of MB on the Volume Group
Additional info:
This is a problem with blivet, not pykickstart.
File "/usr/lib64/python3.6/site-packages/pyanaconda/kickstart.py", line 2264, in execute
request.reserved_space = self.reserved_space
File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
return m(*args, **kwargs)
AttributeError: can't set attribute
Means that something went wrong with the blivet request object created with:
request = storage.new_vg(parents=pvs, ...
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
Description of problem: When using the "--reserved-space" option in kickstart, the installation fails with a traceback Version-Release number of selected component (if applicable): anaconda-29.19.0.40-1.el8 RHEL 8.0 How reproducible: Everytime Steps to Reproduce: 1. Create a basic kickstart with volgroup and --reserved space clearpart --all --initlabel zerombr part pv.01 --size=1 --grow --ondisk=sda volgroup vg0 pv.01 --reserved-space=20 part /boot --size=500 --ondisk=sda --fstype=xfs logvol / --name=root --vgname=vg0 --size=1 --grow 2. kickstart a RHEL 8 installation Actual results: 13:51:17,001 CRT exception: Traceback (most recent call last): File "/sbin/anaconda", line 798, in <module> anaconda._intf.setup(ksdata) File "/usr/lib64/python3.6/site-packages/pyanaconda/ui/tui/__init__.py", line 208, in setup should_schedule = obj.setup(self.ENVIRONMENT) 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/spokes/storage.py", line 452, in execute doKickstartStorage(self.storage, self.data, self.instclass) File "/usr/lib64/python3.6/site-packages/pyanaconda/kickstart.py", line 2845, in doKickstartStorage ksdata.volgroup.execute(storage, ksdata, instClass) File "/usr/lib64/python3.6/site-packages/pyanaconda/kickstart.py", line 2192, in execute v.execute(storage, ksdata, instClass) File "/usr/lib64/python3.6/site-packages/pyanaconda/kickstart.py", line 2264, in execute request.reserved_space = self.reserved_space File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock return m(*args, **kwargs) AttributeError: can't set attribute Expected results: Installation reserves the specified amount of MB on the Volume Group Additional info: