Bug 2259291
Summary: | Updating to audit-4.0-1.fc40 failed to remove audit-3.1.2-5.fc40 due to error: %preun(audit-3.1.2-5.fc40.x86_64) scriptlet failed, exit status 2 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Matt Fagnani <matt.fagnani> |
Component: | audit | Assignee: | Steve Grubb <sgrubb> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | scorreia, sgrubb |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | audit-3.1.2-6.fc39 audit-3.1.2-6.fc38 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2024-01-23 00:58:35 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Matt Fagnani
2024-01-19 23:30:39 UTC
What a mess. My rawhide system upgraded fine. There really isn't much that can go wrong in the %preun scriptlet: %preun %systemd_preun auditd.service # Prefer script because it waits for auditd to terminate if [ -e /usr/libexec/initscripts/legacy-actions/auditd/stop ] ; then /usr/libexec/initscripts/legacy-actions/auditd/stop else auditctl --signal stop fi I suppose I can add " || true" to the two commands so that it won't fail. And then push a -6 update to f39/38. Oh, yes. The issue with audit.rules line 88 is a separate problem. Sounds like a watch on a file that doesn't exist or a typo in the path. FEDORA-2024-9a859c5037 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-9a859c5037 FEDORA-2024-37ffaf9fc0 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2024-37ffaf9fc0 Thanks. The journal at the time of the preun error had Auditd is not running. /usr/libexec/initscripts/legacy-actions/auditd/stop exists on my system. So I guess auditd wasn't running at the point of the offline upgrade then /usr/libexec/initscripts/legacy-actions/auditd/stop had the error. auditd.service failed with a dependency error because of the audit-rules.service failure to start on the boot after the update. Line 88 of /etc/audit/audit.rules was -a always,exit -F path=/usr/lib64/mariadb/plugin/auth_pam_tool_dir/auth_pam_tool -F perm=x -F auid>=1000 -F auid!=unset -k privileged I ran a SCAP Workbench remediation script in 2020 which created audit rules files /etc/audit/rules.d/*.rules. /usr/lib64/mariadb/plugin/auth_pam_tool_dir/auth_pam_tool doesn't exist on my system now. I commented out that rule in /etc/audit/audit.rules and /etc/audit/rules.d/privileged.rules. auditd.service and audit-rules.service started normally after that. sudo dnf remove audit-3.1.2-5.fc40.x86_64 removed it without the error after auditd was running again. Should I make another report that audit-rules.service failed in that way or is that expected? Regarding the line 88 rule, this is what's expected when there is problem with a rule. It's intent is to get your attention so it will be fixed. If you do not want it to fail in the future, you can copy /usr/share/audit-rules/12-ignore-error.rules to /etc/auditd/rules.d/ which will instruct auditctl to continue loading rules. FEDORA-2024-9a859c5037 has been pushed to the Fedora 39 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-9a859c5037` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-9a859c5037 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-37ffaf9fc0 has been pushed to the Fedora 38 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-37ffaf9fc0` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-37ffaf9fc0 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-9a859c5037 has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2024-37ffaf9fc0 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report. |