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 2065943

Summary: [RHEL9] AssertionError: 90319 not greater than 92160.0 when run FS tests
Product: Red Hat Enterprise Linux 9 Reporter: guazhang <guazhang>
Component: libblockdevAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED ERRATA QA Contact: guazhang <guazhang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0Flags: pm-rhel: mirror+
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libblockdev-2.25-12.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 10:24:32 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 guazhang@redhat.com 2022-03-19 13:42:44 UTC
Description of problem:
libblockdev regression failed and hit the error, please check it hit a bug.

Version-Release number of selected component (if applicable):
libblockdev-2.25-11.el9.x86_64 
RHEL-9.0.0-20220307.0 BaseOS x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:



======================================================================
FAIL: test_ext2_get_info (fs_test.ExtGetInfo)
Verify that it is possible to get info about an ext2 file system
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/libblockdev-2.25/tests/fs_test.py", line 449, in test_ext2_get_info
    self._test_ext_get_info(mkfs_function=BlockDev.fs_ext2_mkfs,
  File "/root/rpmbuild/BUILD/libblockdev-2.25/tests/fs_test.py", line 429, in _test_ext_get_info
    self.assertGreater(fi.free_blocks, 0.90 * 100 * 1024**2 / 1024)
AssertionError: 90319 not greater than 92160.0

======================================================================
FAIL: test_ext3_get_info (fs_test.ExtGetInfo)
Verify that it is possible to get info about an ext3 file system
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/libblockdev-2.25/tests/fs_test.py", line 455, in test_ext3_get_info
    self._test_ext_get_info(mkfs_function=BlockDev.fs_ext3_mkfs,
  File "/root/rpmbuild/BUILD/libblockdev-2.25/tests/fs_test.py", line 429, in _test_ext_get_info
    self.assertGreater(fi.free_blocks, 0.90 * 100 * 1024**2 / 1024)
AssertionError: 90319 not greater than 92160.0

======================================================================
FAIL: test_ext4_get_info (fs_test.ExtGetInfo)
Verify that it is possible to get info about an ext4 file system
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/libblockdev-2.25/tests/fs_test.py", line 461, in test_ext4_get_info
    self._test_ext_get_info(mkfs_function=BlockDev.fs_ext4_mkfs,
  File "/root/rpmbuild/BUILD/libblockdev-2.25/tests/fs_test.py", line 429, in _test_ext_get_info
    self.assertGreater(fi.free_blocks, 0.90 * 100 * 1024**2 / 1024)
AssertionError: 90319 not greater than 92160.0

======================================================================
FAIL: test_ext3_resize (fs_test.ExtResize)
Verify that it is possible to resize an ext3 file system
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/libblockdev-2.25/tests/fs_test.py", line 564, in test_ext3_resize
    self._test_ext_resize(mkfs_function=BlockDev.fs_ext3_mkfs,
  File "/root/rpmbuild/BUILD/libblockdev-2.25/tests/fs_test.py", line 519, in _test_ext_resize
    self.assertGreater(fi.free_blocks, 0.90 * 100 * 1024**2 / 1024)
AssertionError: 90302 not greater than 92160.0

======================================================================
FAIL: test_ext4_resize (fs_test.ExtResize)
Verify that it is possible to resize an ext4 file system
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/libblockdev-2.25/tests/fs_test.py", line 570, in test_ext4_resize
    self._test_ext_resize(mkfs_function=BlockDev.fs_ext4_mkfs,
  File "/root/rpmbuild/BUILD/libblockdev-2.25/tests/fs_test.py", line 519, in _test_ext_resize
    self.assertGreater(fi.free_blocks, 0.90 * 100 * 1024**2 / 1024)
AssertionError: 90319 not greater than 92160.0


https://beaker.engineering.redhat.com/recipes/11593642#task140955062
https://beaker-archive.host.prod.eng.bos.redhat.com/beaker-logs/2022/03/63841/6384175/11593641/140955028/taskout.log

Comment 1 Vojtech Trefny 2022-03-24 13:29:38 UTC
upstream PR: https://github.com/storaged-project/libblockdev/pull/660

Comment 8 guazhang@redhat.com 2022-05-30 03:38:53 UTC
Move to verified since can not reproduce the bug with fixed package.

Comment 10 errata-xmlrpc 2022-11-15 10:24:32 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 (libblockdev 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-2022:8118