Bug 1971516

Summary: autopart --type thinp fails on system with more than ~16TB of disk space
Product: Red Hat Enterprise Linux 9 Reporter: Jan Stodola <jstodola>
Component: python-blivetAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: high Docs Contact:
Priority: high    
Version: 9.0CC: jkonecny, release-test-team-automation, vtrefny, zveleba
Target Milestone: betaKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-blivet-3.4.0-8.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1949953 Environment:
Last Closed: 2022-05-17 13:20:54 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:
Bug Depends On:    
Bug Blocks: 1942219    

Description Jan Stodola 2021-06-14 08:57:00 UTC
+++ This bug was initially created as a clone of Bug #1949953 +++

Description of problem:
Kickstart installation with 'autopart --type thinp' fails on system with more than ~16TB of disk space.

Version-Release number of selected component (if applicable):
anaconda-33.16.4.15-1.el8
python3-blivet-3.2.2-10.el8

Steps to Reproduce:
Start automated installation with kickstart containing 'autopart --type thinp' on system with large disk space.
(it happened on system with 12x 4TB drives)

Actual results:
Non interactive installation failed: Process reported exit code 5:   WARNING: Chunk size is smaller then suggested minimum size 256.00 KiB. 
  Selected chunk size 64.00 KiB cannot address more then <15.88 TiB of thin pool data space. 

Expected results:
anaconda or python-blivet should automatically select valid chunk size and the installation should not fail

Additional info:
The bug was found on ppc64le system but I'm expecting the issue to affect all architectures.


--- Additional comment from Jiri Konecny on 2021-04-16 10:14:26 CEST ---

Based on the traceback this seems to be an issue in the blivet. Switching component.


.Modules.Storage:  File "/usr/lib/python3.6/site-packages/blivet/actionlist.py", line 48, in wrapped_func
10:57:19,026 WARNING org.fedoraproject.Anaconda.Modules.Storage:    return func(obj, *args, **kwargs)
10:57:19,026 WARNING org.fedoraproject.Anaconda.Modules.Storage:  File "/usr/lib/python3.6/site-packages/blivet/actionlist.py", line 327, in process
10:57:19,026 WARNING org.fedoraproject.Anaconda.Modules.Storage:    action.execute(callbacks)
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:  File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:    return m(*args, **kwargs)
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:  File "/usr/lib/python3.6/site-packages/blivet/deviceaction.py", line 333, in execute
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:    self.device.create()
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:  File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:    return m(*args, **kwargs)
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:  File "/usr/lib/python3.6/site-packages/blivet/devices/storage.py", line 468, in create
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:    self._create()
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:  File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:    return m(*args, **kwargs)
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:  File "/usr/lib/python3.6/site-packages/blivet/devices/lvm.py", line 2190, in decorated
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:    found, ret = self._try_specific_call(meth.__name__, *args, **kwargs)  # pylint: disable=no-member
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:  File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:    return m(*args, **kwargs)
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:  File "/usr/lib/python3.6/site-packages/blivet/devices/lvm.py", line 2175, in _try_specific_call
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:    ret = getattr(cls, name)(self, *args, **kwargs)
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:  File "/usr/lib/python3.6/site-packages/blivet/devices/lvm.py", line 1675, in _create
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:    profile=profile_name)
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:  File "/usr/lib64/python3.6/site-packages/gi/overrides/BlockDev.py", line 1062, in wrapped
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:    raise transform[1](msg)
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:gi.overrides.BlockDev.LVMError: Process reported exit code 5:   WARNING: Chunk size is smaller then suggested minimum size 256.00 KiB.
10:57:19,027 WARNING org.fedoraproject.Anaconda.Modules.Storage:  Selected chunk size 64.00 KiB cannot address more then <15.88 TiB of thin pool data space.

Comment 4 Jan Stodola 2021-11-30 12:50:10 UTC
Reproduced in a VM with 20 TB disk.
Verified with python3-blivet-3.4.0-8.el9, the installation finished successfully with the following partitioning created:

[root@localhost ~]# lsblk 
NAME                    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
vda                     252:0    0   20T  0 disk 
├─vda1                  252:1    0    1M  0 part 
├─vda2                  252:2    0    1G  0 part /boot
└─vda3                  252:3    0   20T  0 part 
  ├─rhel-pool00_tmeta   253:0    0  9.9G  0 lvm  
  │ └─rhel-pool00-tpool 253:2    0 19.9T  0 lvm  
  │   ├─rhel-root       253:3    0   70G  0 lvm  /
  │   ├─rhel-pool00     253:5    0 19.9T  1 lvm  
  │   └─rhel-home       253:6    0 19.8T  0 lvm  /home
  ├─rhel-pool00_tdata   253:1    0 19.9T  0 lvm  
  │ └─rhel-pool00-tpool 253:2    0 19.9T  0 lvm  
  │   ├─rhel-root       253:3    0   70G  0 lvm  /
  │   ├─rhel-pool00     253:5    0 19.9T  1 lvm  
  │   └─rhel-home       253:6    0 19.8T  0 lvm  /home
  └─rhel-swap           253:4    0  3.4G  0 lvm  [SWAP]
[root@localhost ~]# lvs
  LV     VG   Attr       LSize   Pool   Origin Data%  Meta%  Move Log Cpy%Sync Convert
  home   rhel Vwi-aotz--  19.80t pool00        0.01                                   
  pool00 rhel twi-aotz-- <19.87t               0.02   0.56                            
  root   rhel Vwi-aotz--  70.00g pool00        1.48                                   
  swap   rhel -wi-ao----   3.41g                                                      
[root@localhost ~]#

Comment 7 Jan Stodola 2021-12-06 11:48:15 UTC
python3-blivet-3.4.0-9.el9 is present in RHEL-9.0.0-20211205.3, moving to VERIFIED.

Comment 9 errata-xmlrpc 2022-05-17 13:20:54 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 (new packages: python-blivet), 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-2022:2494