Bug 2170093
Summary: | dnf-automatic returns "success" ( zero exit status return ) even if the called dnf command returns error | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Vaibhav Bhope <vbhope> | |
Component: | dnf | Assignee: | Jan Kolarik <jkolarik> | |
Status: | CLOSED ERRATA | QA Contact: | swm-qe | |
Severity: | medium | Docs Contact: | Mariya Pershina <mpershin> | |
Priority: | medium | |||
Version: | 8.7 | CC: | brian, james.antill, jkolarik, mbanas, mpershin, nsella, pkratoch | |
Target Milestone: | rc | Keywords: | Triaged | |
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | dnf-4.7.0-18.el8 | Doc Type: | Bug Fix | |
Doc Text: |
.The `dnf-automatic` command now correctly reports the exit status of transactions
Previously, the `dnf-automatic` command returned a successful exit code of a transaction even if some actions during this transaction were not successfully completed. This could cause a security risk on machines that use `dnf-automatic` for automatic deployment of errata. With this update, the issue has been fixed, and `dnf-automatic` now reports every problem with packages during the transaction.
|
Story Points: | --- | |
Clone Of: | ||||
: | 2212262 (view as bug list) | Environment: | ||
Last Closed: | 2023-11-14 15:49: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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 2212262 |
Description
Vaibhav Bhope
2023-02-15 15:59:01 UTC
Looks like a quite long-lasting bug there. Originally this issue was reported in DNF here: https://bugzilla.redhat.com/show_bug.cgi?id=1341086, but it was only fixed for the CLI usage. Looking into the latest DNF 4.15.0 release sources, this is the place where this failure is handled for CLI: https://github.com/rpm-software-management/dnf/blob/5306910d06631bc93fa3ece0e70ed27ee592b0aa/dnf/cli/cli.py#L264. I've created a PR to fix this: DNF PR: https://github.com/rpm-software-management/dnf/pull/1923 tests PR: https://github.com/rpm-software-management/ci-dnf-stack/pull/1250 Cloned into RHEL 9 bug: https://bugzilla.redhat.com/show_bug.cgi?id=2212262. 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-2023:7122 |