Bug 2185192

Summary: [RHEL8] Get Insufficient free space error from test_lvcreate_lvremove
Product: Red Hat Enterprise Linux 8 Reporter: guazhang <guazhang>
Component: lvm2Assignee: LVM Team <lvm-team>
lvm2 sub component: lvmdbusd QA Contact: cluster-qe <cluster-qe>
Status: NEW --- Docs Contact:
Severity: unspecified    
Priority: unspecified CC: agk, heinzm, jbrassow, msnitzer, prajnoha, tasleson, zkabelac
Version: 8.9   
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: 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 guazhang@redhat.com 2023-04-07 11:43:34 UTC
Description of problem:
libblockdev regression found the error, please have a look.

Version-Release number of selected component (if applicable):
libblockdev-2.28-3.el8.x86_64 
RHEL-8.9.0-20230405.22
How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:


======================================================================
FAIL: test_lvcreate_lvremove (lvm_dbus_tests.LvmTestLVcreateRemove)
Verify that it's possible to create/destroy an LV
----------------------------------------------------------------------
GLib.GError: g-io-error-quark: Failed to call the 'LvCreate' method on the '/com/redhat/lvmdbus1/Vg/4' object: GDBus.Error:org.freedesktop.DBus.Python.dbus.exceptions.DBusException: ('com.redhat.lvmdbus1.Vg', 'Exit code 5, stderr = ') (36)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/libblockdev-2.28/tests/lvm_dbus_tests.py", line 654, in test_lvcreate_lvremove
    succ = BlockDev.lvm_lvcreate("testVG", "testLV", 1048 * 1024**2, None, [self.loop_dev], None)
AssertionError: "Insufficient free space" does not match "g-io-error-quark: Failed to call the 'LvCreate' method on the '/com/redhat/lvmdbus1/Vg/4' object: GDBus.Error:org.freedesktop.DBus.Python.dbus.exceptions.DBusException: ('com.redhat.lvmdbus1.Vg', 'Exit code 5, stderr = ') (36)"

----------------------------------------------------------------------

failed job
https://beaker.engineering.redhat.com/jobs/7714969

Comment 1 Vojtech Trefny 2023-04-17 12:37:50 UTC
The problem here is the missing stderr output in the lvmdbusd error message, fix for https://bugzilla.redhat.com/show_bug.cgi?id=2164044 needs to be backported to RHEL 8 too.