Bug 2116706

Summary: Gating: test_lvcreate_type from upstream test suite randomly fails in gating
Product: Red Hat Enterprise Linux 8 Reporter: Vojtech Trefny <vtrefny>
Component: libblockdevAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED DUPLICATE QA Contact: guazhang <guazhang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.7CC: cwei
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:31:42 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 Vojtech Trefny 2022-08-09 08:12:08 UTC
This bug was initially created as a copy of Bug #2030647

I am copying this bug because: we now see the same issue on RHEL 8.7 too.



Test test case randomly fails for both LVM DBus and LVM CLI. The test fails when we try to remove a newly created striped LV, I assume the tests in gating run on a slow machine and the LV is not fully synced when we try to remove it. We don't see this type of failure in our CI.


======================================================================
ERROR: test_lvcreate_type (lvm_dbus_tests.LvmTestLVcreateType)
Verify it's possible to create LVs with various types
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/str/source/tests/lvm_dbus_tests.py", line 812, in test_lvcreate_type
    succ = BlockDev.lvm_lvremove("testVG", "testLV", True, None)
  File "/usr/lib64/python3.9/site-packages/gi/overrides/BlockDev.py", line 590, in lvm_lvremove
    return _lvm_lvremove(vg_name, lv_name, force, extra)
gi.repository.GLib.GError: g-bd-lvm-error-quark: Running 'Remove' method on the '/com/redhat/lvmdbus1/Lv/30' object failed: ('com.redhat.lvmdbus1.Lv', 'Exit code 5, stderr =   Logical volume testVG/testLV in use.\n') (7)

======================================================================
ERROR: test_lvcreate_type (lvm_test.LvmTestLVcreateType)
Verify it's possible to create LVs with various types
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/str/source/tests/lvm_test.py", line 748, in test_lvcreate_type
    succ = BlockDev.lvm_lvremove("testVG", "testLV", True, None)
  File "/usr/lib64/python3.9/site-packages/gi/overrides/BlockDev.py", line 590, in lvm_lvremove
    return _lvm_lvremove(vg_name, lv_name, force, extra)
gi.repository.GLib.GError: g-bd-utils-exec-error-quark: Process reported exit code 5:   Logical volume testVG/testLV in use.
 (0)

Comment 1 Vojtech Trefny 2023-02-08 13:31:42 UTC
The fix for this issue is included in the upstream release 2.28 we rebased to in 8.8 so I am closing this as a duplicate of the rebase bug.

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