Bug 1847340

Summary: RPM scriptlet output is not logged to /var/log/dnf.rpm.log when installed via DNF Python api
Product: Red Hat Enterprise Linux 8 Reporter: rw.rwlodarczyk
Component: dnfAssignee: Marek Blaha <mblaha>
Status: CLOSED ERRATA QA Contact: Jan Blazek <jblazek>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 8.2CC: admiller, amatej, james.antill, jberan, jblazek, mblaha, nsella, orion, pkratoch, rbiba, shobbs
Target Milestone: rcKeywords: AutoVerified, Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-4.4.2-3.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1788212 Environment:
Last Closed: 2021-05-18 15:00: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 rw.rwlodarczyk 2020-06-16 09:07:03 UTC
+++ This bug was initially created as a clone of Bug #1788212 +++

Description of problem:

When installing a rpm package via the DNF Python API, the preinstall/postinstall script outputs are not logged to /var/log/dnf.rpm.log as they are via the command line.


Version-Release number of selected component (if applicable):
dnf-4.2.17-6.el8

How reproducible:
Always

Comment 3 Marek Blaha 2020-12-02 15:52:13 UTC
PR https://github.com/rpm-software-management/dnf/pull/1698 unifies scriptlet output logging for both command line and API.

Comment 11 errata-xmlrpc 2021-05-18 15:00: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 (dnf 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-2021:1657