Bug 2030647

Summary: Gating: test_lvcreate_type from upstream test suite randomly fails in gating
Product: Red Hat Enterprise Linux 9 Reporter: Vojtech Trefny <vtrefny>
Component: libblockdevAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED ERRATA QA Contact: guazhang <guazhang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: guazhang
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libblockdev-2.25-11.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 13:24:34 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 2021-12-09 11:52:11 UTC
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 guazhang@redhat.com 2021-12-10 00:50:38 UTC
I have hit the error before

https://bugzilla.redhat.com/show_bug.cgi?id=2013090

Comment 2 Vojtech Trefny 2021-12-10 07:50:10 UTC
*** Bug 2013090 has been marked as a duplicate of this bug. ***

Comment 3 Vojtech Trefny 2021-12-16 15:04:56 UTC
upstream PR: https://github.com/storaged-project/libblockdev/pull/683

Comment 4 guazhang@redhat.com 2022-01-13 14:13:26 UTC
HI,

Don't reproduce the bug with fixed package.

Comment 8 errata-xmlrpc 2022-05-17 13:24:34 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 (new packages: libblockdev), 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:2503