What were you trying to do that didn't work?
When /usr is full, dnf-automatic does not run properly (as dnf exits prematurely), and no email is sent notifying the user about what happened.
What is the impact of this issue to you?
The user has no notification about what why dnf-automatic did not run.
Please provide the package NVR for which the bug is seen:
dnf-automatic-4.14.0-9.el9.noarch (the component list in Jira does not list a "dnf-automatic" component).
How reproducible is this bug?:
Every time
Steps to reproduce
- Set up a RHEL system where /usr is a separate partition
- Ensure there is something for dnf to upgrade
- Ensure dnf-automatic is configured to send email, e.g.:
# cat /etc/dnf/automatic.conf [commands] upgrade_type = default random_sleep = 0 network_online_timeout = 60 download_updates = yes apply_updates = yes [emitters] emit_via = stdio [email] email_from = root@localhost email_to = root@localhost email_host = localhost [command] [command_email] command_format = "mail -Ssendwait -s {subject} -r {email_from} {email_to}" stdin_format = "{body}"email_from = root@localhost email_to = root@localhost [base] debuglevel = 1
- Fill up /usr, e.g.:
dd if=/dev/random of=/usr/filler
systemctl start dnf-automatic
Expected results
An email (or the configured notification method) should be sent, detailing why dnf did not run.
Actual results
No notification about the problem is sent. The only relevant system logs in the journal are:
Oct 09 10:13:04 r94-dnfauto systemd[1]: Starting dnf automatic... Oct 09 10:13:05 r94-dnfauto dnf-automatic[3762]: Updating Subscription Management repositories. Oct 09 10:13:09 r94-dnfauto dnf-automatic[3762]: Last metadata expiration check: 0:16:02 ago on Wed 09 Oct 2024 09:57:07 AM CEST. Oct 09 10:13:10 r94-dnfauto dnf-automatic[3762]: Running transaction check Oct 09 10:13:10 r94-dnfauto dnf-automatic[3762]: Transaction check succeeded. Oct 09 10:13:10 r94-dnfauto dnf-automatic[3762]: Running transaction test Oct 09 10:13:11 r94-dnfauto dnf-automatic[3762]: The downloaded packages were saved in cache until the next successful transaction. Oct 09 10:13:11 r94-dnfauto dnf-automatic[3762]: You can remove cached packages by executing 'dnf clean packages'. Oct 09 10:13:11 r94-dnfauto dnf-automatic[3762]: Error: Transaction test error: Oct 09 10:13:11 r94-dnfauto dnf-automatic[3762]: installing package bash-5.1.8-9.el9.x86_64 needs 6MB more space on the /usr filesystem Oct 09 10:13:11 r94-dnfauto dnf-automatic[3762]: Error Summary Oct 09 10:13:11 r94-dnfauto dnf-automatic[3762]: ------------- Oct 09 10:13:11 r94-dnfauto dnf-automatic[3762]: Disk Requirements: Oct 09 10:13:11 r94-dnfauto dnf-automatic[3762]: At least 6MB more space needed on the /usr filesystem. Oct 09 10:13:11 r94-dnfauto systemd[1]: dnf-automatic.service: Main process exited, code=exited, status=1/FAILURE Oct 09 10:13:11 r94-dnfauto systemd[1]: dnf-automatic.service: Failed with result 'exit-code'. Oct 09 10:13:11 r94-dnfauto systemd[1]: Failed to start dnf automatic.