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: