Bug 2331691
| Summary: | dnf5 repeatedly prints the output of long-running postinstall scripts during upgrades | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Chris Siebenmann <cks-rhbugzilla> | ||||
| Component: | dnf5 | Assignee: | rpm-software-management | ||||
| Status: | NEW --- | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | rawhide | CC: | amatej, jkolarik, mblaha, mhofmann, nsella, pkratoch, rpm-software-management | ||||
| Target Milestone: | --- | Keywords: | Reopened, Triaged | ||||
| Target Release: | --- | Flags: | fedora-admin-xmlrpc:
mirror+
|
||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2025-12-16 18:03:36 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: | |||||||
| Attachments: |
|
||||||
|
Description
Chris Siebenmann
2024-12-11 16:43:39 UTC
I tried to reproduce the issue with this made-up package:
```
Name: test-scriptlet-output
Epoch: 0
Version: 2.0
Release: 1
License: Public Domain
URL: None
Summary: The made up package for scriptlets testing.
%description
Successfully runs post scriptlet
%post
for i in {1..15}; do
echo "Number: $i"
sleep 2
done
%files
%changelog
```
The post-install scriptlet output was printed only once after the scriptlet finished.
I must have missed something important to reproduce the issue. Can you share a print screen to illustrate the wrong behavior?
You can also try to reproduce it with the latest nightly dnf5 build from copr repository https://copr.fedorainfracloud.org/coprs/rpmsoftwaremanagement/dnf5-testing-nightly/ (there are some enhancement to progress bars behavior that are still not released).
I think I wasn't clear in my initial description; this requires other packages being upgraded at the same time, so that the script output from one package is intermixed with dnf's progress reporting of updating and removing other packages. As far as I know and have seen, if you update a single package with this sort of long-running script output, everything works fine. I have a test Fedora 41 VM with a DKMS kernel module, but my attempt to reproduce the problem under 'script' failed with a different problem, where DKMS didn't rebuild the module at all for some reason, so I'm going to have to do more work before I can provide a demonstration (which will be very noisy when I manage it). I have a typescript now, from 'script' capturing a kernel upgrade with a DKMS module rebuild (OpenZFS), which I'll attach. When looking at the typescript, watch how the DKMS output is repeatedly shown in full each time DNF does a progress report about the package removal that happens concurrently with it. Created attachment 2065312 [details]
typescript of 'dnf upgrade' for a kernel upgrade with a DKMS package rebuild
Thanks for clarifying - I really appreciate the script recording! Now I can see what you mean and confirm the bug. It looks like the reproducer would require several post-transaction and file-triggered scripts to be present in the transaction. This message is a reminder that Fedora Linux 41 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 41 on 2025-12-15. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '41'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 41 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed. Fedora Linux 41 entered end-of-life (EOL) status on 2025-12-15. Fedora Linux 41 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora Linux please feel free to reopen this bug against that version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see the version field. If you are unable to reopen this bug, please file a new report against an active release. Thank you for reporting this bug and we are sorry it could not be fixed. |