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 2138698

Summary: [libblockdev] swap_test.SwapTestCase.test_swapon_pagesize get SwapPagesizeError
Product: Red Hat Enterprise Linux 8 Reporter: guazhang <guazhang>
Component: libblockdevAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED ERRATA QA Contact: guazhang <guazhang>
Severity: low Docs Contact:
Priority: low    
Version: 8.8Keywords: Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: aarch64   
OS: Unspecified   
Whiteboard:
Fixed In Version: libblockdev-2.28-3.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2168220 (view as bug list) Environment:
Last Closed: 2023-11-14 15:26:09 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:
Deadline: 2023-05-22   

Description guazhang@redhat.com 2022-10-31 03:59:48 UTC
Description of problem:
libblockdev regression found the case error, don't reproduce the issue with x86_64 arch, please have a look, 

Version-Release number of selected component (if applicable):
libblockdev-2.28-1.el8.aarch64 
RHEL-8.8.0-20221028.1 BaseOS aarch64

How reproducible:

======================================================================
FAIL: test_swapon_pagesize (swap_test.SwapTestCase)
Verify that activating swap with different pagesize fails
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/libblockdev-2.28/tests/swap_test.py", line 112, in test_swapon_pagesize
    BlockDev.swap.swapon(self.loop_dev)
AssertionError: SwapPagesizeError not raised

----------------------------------------------------------------------
Ran 241 tests in 685.239s


https://beaker.engineering.redhat.com/recipes/12863898#task152148549

https://beaker.engineering.redhat.com/recipes/12863899#task152148560

Comment 1 Vojtech Trefny 2022-10-31 11:47:12 UTC
upstream PR: https://github.com/storaged-project/libblockdev/pull/809

Comment 2 Vojtech Trefny 2023-02-08 13:14:01 UTC
*** Bug 2098325 has been marked as a duplicate of this bug. ***

Comment 3 Vojtech Trefny 2023-02-08 13:25:01 UTC
Because this is only a test issue (we have a test case to check that swapon works correctly with a wrong page size swap, the function works correctly, but the test assumes 64k is always a wrong page size) I'm moving this to 8.9.

Comment 7 guazhang@redhat.com 2023-04-08 03:53:42 UTC
Hi, 
Test pass with fixed package, move to verified.

Comment 9 errata-xmlrpc 2023-11-14 15:26:09 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-2023:6920