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.1   
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 ***