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 1494475

Summary: Anaconda thinpool volume size not calculate correctly when using --grow
Product: Red Hat Enterprise Linux 7 Reporter: Paul Dwyer <pdwyer>
Component: python-blivetAssignee: David Lehman <dlehman>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: high Docs Contact:
Priority: high    
Version: 7.4CC: dlehman, jmontleo, jstodola, pdwyer, rhandlin, sauchter
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-blivet-0.61.15.69-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 18:23:13 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:

Description Paul Dwyer 2017-09-22 11:03:36 UTC
Description of problem:
Anaconda when using --grow option for thinpool volume on RHEL 7.4 does not make calculation correctly, whereas RHEL 7.3 did 
Anaconda fails with traceback below when trying to create volume

Version-Release number of selected component (if applicable):
RHEL7.4
anaconda 21.48.22.121-1

How reproducible:
every time using attached kickstart file

Steps to Reproduce:
1. Created small vm with 40Gb space
2. install using attached kickstart
3. anaconda errors out

Actual results:
traceback

anaconda 21.48.22.121-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/devices/storage.py", line 488, in create
    raise errors.DeviceCreateError(str(e), self.name)
  File "/usr/lib/python2.7/site-packages/blivet/deviceaction.py", line 293, in execute
    self.device.create()
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 373, in processActions
    action.execute(callbacks)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 380, in doIt
    self.devicetree.processActions(callbacks)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 230, in turnOnFilesystems
    storage.doIt(callbacks)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 204, in doInstall
    turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall, callbacks=callbacks_reg)
  File "/usr/lib64/python2.7/threading.py", line 765, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 227, in run
    threading.Thread.run(self, *args, **kwargs)
DeviceCreateError: ('lvcreate failed for vg_system/lv_system_thinpool: running /sbin/lvm lvcreate --thinpool vg_system/lv_system_thinpool --size 9244m --poolmetadatasize 16 --chunksize 64 --config  devices { preferred_names=["^/dev/mapper
/", "^/dev/md/", "^/dev/sd"] }  failed', 'vg_system-lv_system_thinpool')


Expected results:
Installation to succeed

Additional info:
This disk layout worked on RHEL7.3

Further testing shows that specifying exact size works but using --grow doesn't
e.g.
logvol none --fstype="None" --thinpool --name=lv_system_thinpool --vgname=vg_system --chunksize=64 --size=9212 --metadatasize=16

Comment 5 David Lehman 2017-12-20 19:15:47 UTC
Logs from the successful 7.3 installation would be useful. Is it possible to get them?

Comment 9 David Lehman 2018-02-02 19:37:48 UTC
I was able to reproduce the failure and the following patch solves the issue for me:

  https://github.com/storaged-project/blivet/pull/654

Comment 11 Jan Stodola 2018-02-22 13:03:23 UTC
Reproduced on RHEL-7.4 GA
Verified with python-blivet-0.61.15.69-1.el7, compose RHEL-7.5-20180221.0

Moving to VERIFIED.

Comment 14 errata-xmlrpc 2018-04-10 18:23:13 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, 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-2018:0982