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 2098352

Summary: [RHEL9] libblockdev part plug-in testing failed
Product: Red Hat Enterprise Linux 9 Reporter: guazhang <guazhang>
Component: libblockdevAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED DUPLICATE QA Contact: guazhang <guazhang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.1Flags: pm-rhel: mirror+
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-02-08 13:09:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
6731156_12158426.tar none

Description guazhang@redhat.com 2022-06-18 11:10:15 UTC
Test job https://beaker.engineering.redhat.com/jobs/6731156  recipe 12158426 have hit error, please have a look if hit a bug 

 job J:6731156 R:12158426 info you can refer: whiteboard common server, x86_64, default kernel, group: integration, distro RHEL-9.1.0-20220615.2 
the test system is hp-dl380g10-06.rhts.eng.pek2.redhat.com 
 
libblockdev-2.25-12.el9.x86_64


Run testcase  T:146308843  /kernel/storage/storaged/test_libblockdev_package Case hit Error

Taskout link  https://beaker.engineering.redhat.com/recipes/12158426/tasks/146308843/logs/taskout.log 


======================================================================
FAIL: test_create_part_with_extended (part_test.PartCreatePartFullCase)
Verify that partition creation works as expected with primary and extended parts
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/libblockdev-2.25/tests/part_test.py", line 359, in test_create_part_with_extended
    self.assertEqual(ps4.flags, 0)  # no flags (combination of bit flags)
AssertionError: 128 != 0

======================================================================
FAIL: test_create_part_with_extended_logical (part_test.PartCreatePartFullCase)
Verify that partition creation works as expected with primary, extended and logical parts
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/libblockdev-2.25/tests/part_test.py", line 407, in test_create_part_with_extended_logical
    self.assertEqual(ps3.flags, 0)  # no flags (combination of bit flags)
AssertionError: 128 != 0

======================================================================
FAIL: test_get_part_by_pos (part_test.PartGetPartByPos)
Verify that getting partition by position works as expected
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/libblockdev-2.25/tests/part_test.py", line 874, in test_get_part_by_pos
    self.assertEqual(ps3.flags, 0)  # no flags (combination of bit flags)
AssertionError: 128 != 0

======================================================================
FAIL: test_set_part_flag (part_test.PartSetFlagCase)
Verify that it is possible to set a partition flag
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/libblockdev-2.25/tests/part_test.py", line 1122, in test_set_part_flag
    BlockDev.part_set_part_flag (self.loop_dev, ps.path, BlockDev.PartFlag.SWAP, True)
AssertionError: Error not raised

======================================================================
FAIL: test_set_part_flags (part_test.PartSetFlagsCase)
Verify that it is possible to set multiple partition flags at once
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/libblockdev-2.25/tests/part_test.py", line 1240, in test_set_part_flags
    BlockDev.part_set_part_flags (self.loop_dev, ps.path, BlockDev.PartFlag.SWAP)
AssertionError: Error not raised

Comment 1 guazhang@redhat.com 2022-06-18 11:10:20 UTC
Created attachment 1891027 [details]
6731156_12158426.tar

Comment 2 Vojtech Trefny 2022-06-20 06:35:18 UTC
fixed in the latest upstream release: https://github.com/storaged-project/libblockdev/pull/742

Comment 3 Vojtech Trefny 2023-02-08 13:09:32 UTC
The fix is included in the 2.28 release which we rebased to in 9.2 so I am marking this as a duplicate of the rebase bug.

*** This bug has been marked as a duplicate of bug 2123346 ***