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 2164044 - Empty stderr in GetError for failed lvmdbusd calls
Summary: Empty stderr in GetError for failed lvmdbusd calls
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: lvm2
Version: 9.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Tony Asleson
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On: 2145114
Blocks: 2207613
TreeView+ depends on / blocked
 
Reported: 2023-01-24 15:04 UTC by Marian Csontos
Modified: 2023-05-16 11:02 UTC (History)
11 users (show)

Fixed In Version: lvm2-2.03.17-5.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2145114
: 2207613 (view as bug list)
Environment:
Last Closed: 2023-05-09 08:23:51 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CLUSTERQE-6373 0 None None None 2023-01-25 18:07:48 UTC
Red Hat Issue Tracker RHELPLAN-146192 0 None None None 2023-01-24 15:04:55 UTC
Red Hat Product Errata RHBA-2023:2544 0 None None None 2023-05-09 08:24:05 UTC

Description Marian Csontos 2023-01-24 15:04:32 UTC
+++ This bug was initially created as a clone of Bug #2145114 +++

Description of problem:

stderr from lvcreate is not included in the error we get from the LVM DBus job with the latest LVM 2.03.17.

Version-Release number of selected component (if applicable):

$ lvm version
  LVM version:     2.03.17(2) (2022-11-10)
  Library version: 1.02.187 (2022-11-10)

Steps to Reproduce:

Try to create an LV that is too big for the VG, The call fails as expected but, stderr is empty.

# busctl call com.redhat.lvmdbus1 /com/redhat/lvmdbus1/Vg/0 com.redhat.lvmdbus1.Vg LvCreate "sta(ott)ia{sv}" test $((10*1024**3)) 0 0 0
(oo) "/" "/com/redhat/lvmdbus1/Job/0"

# busctl get-property com.redhat.lvmdbus1 /com/redhat/lvmdbus1/Job/0 com.redhat.lvmdbus1.Job GetError
(is) -1 "(\'com.redhat.lvmdbus1.Vg\', \'Exit code 5, stderr = \')"


Expected results:

With older LVM, the stderr is part of the error.
# busctl get-property com.redhat.lvmdbus1 /com/redhat/lvmdbus1/Job/0 com.redhat.lvmdbus1.Job GetError 
(is) -1 "(\'com.redhat.lvmdbus1.Vg\', \'Exit code 5, stderr =   Volume group \"testVG\" has insufficient free space (510 extents): 2560 required.\\n\')"

--- Additional comment from Tony Asleson on 2022-11-28 14:51:03 UTC ---

According to @vtrefny stderr is present when running lvm command separately.  Issue is with dbus daemon.

--- Additional comment from Tony Asleson on 2022-11-29 19:02:48 UTC ---

Correction posted upstream: https://sourceware.org/git/?p=lvm2.git;a=commit;h=e63b0c7262f50ab43fcde1c50b6d880acab68407

--- Additional comment from Vojtech Trefny on 2022-11-30 07:47:50 UTC ---

Thank you, I can confirm the fix works (8f60c494515ddccb20e4afb804edb6b9599e65c0 is also needed), libblockdev test suite (thanks to which I originally discovered the issue) is now passing. Can we get this to Fedora rawhide soon?

Comment 7 errata-xmlrpc 2023-05-09 08:23:51 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 (lvm2 bug fix and enhancement update), 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-2023:2544


Note You need to log in before you can comment on or make changes to this bug.