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 1737490 - volgroup --reserved-space results in a traceback during installation
Summary: volgroup --reserved-space results in a traceback during installation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: python-blivet
Version: 8.1
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: 8.0
Assignee: Vojtech Trefny
QA Contact: Release Test Team
URL:
Whiteboard:
: 1737588 1816050 (view as bug list)
Depends On:
Blocks: 1774477
TreeView+ depends on / blocked
 
Reported: 2019-08-05 13:57 UTC by jcastran
Modified: 2023-12-15 16:40 UTC (History)
20 users (show)

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


Attachments (Terms of Use)

Comment 1 Kyle Walker 2019-08-06 12:39:52 UTC
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:

Comment 2 Brian Lane 2019-11-18 20:16:38 UTC
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, ...

Comment 3 Vojtech Trefny 2019-11-20 11:47:17 UTC
upstream PR: https://github.com/storaged-project/blivet/pull/813

updates image: https://vtrefny.fedorapeople.org/img/rhbz1737490.img (contains also fix for rhbz#1774477).

Comment 4 Vojtech Trefny 2020-01-10 12:05:26 UTC
*** Bug 1737588 has been marked as a duplicate of this bug. ***

Comment 5 Vojtech Trefny 2020-04-15 08:04:12 UTC
*** Bug 1816050 has been marked as a duplicate of this bug. ***

Comment 8 Jakub Rusz 2020-06-16 13:20:13 UTC
Test for this is created and merged.

Comment 12 errata-xmlrpc 2020-11-04 03:22:23 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.