Clone of https://bugzilla.redhat.com/show_bug.cgi?id=2379490
When building container images in the https://github.com/freeipa/freeipa-container/ project, we want the individual steps in the Dockerfile to pass to make sure there aren't any unexpected errors.
For quite some time, even as early as with Fedora 37, we had
Running scriptlet: freeipa-server-trust-ad-4.10.1-1.fc37.x86_64 338/343 System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down warning: %post(freeipa-server-trust-ad-4.10.1-1.fc37.x86_64) scriptlet failed, exit status 1
Error in POSTIN scriptlet in rpm package freeipa-server-trust-ad
when installing freeipa-server-trust-ad, but the whole rpm transaction passed and the dnf command returned with exit 0. So we did not care about that failure because, well, it did not get reported in any way it could be caught.
This has changed with recent registry.fedoraproject.org/fedora:rawhide image which seem so have rpm-5.99.91-1.fc43.x86_64. Now instead of exiting with 0 as with previous registry.fedoraproject.org/fedora:rawhide images, the dnf exits with 1, even if the version freeipa-server-trust-ad-4.12.2-14.fc43.x86_64 is the same in both cases.
Reproducible: Always
Steps to Reproduce: 1. podman run --rm registry.fedoraproject.org/fedora:rawhide dnf install -y --setopt=install_weak_deps=False freeipa-server-trust-ad 2. echo $? Actual Results:
[RPM] %post(freeipa-server-trust-ad-4.12.2-14.fc43.x86_64) scriptlet failed, [366/366] Installing rpm-plugin-selinux 100% | 1.8 KiB/s | 13.0 KiB | 00m07s Running %triggerin scriptlet: systemd-0:257.7-1.fc43.x86_64 Finished %triggerin scriptlet: systemd-0:257.7-1.fc43.x86_64 Scriptlet output: Failed to connect to audit log, ignoring: Invalid argument Transaction failed: Rpm transaction failed.
[RPM] %post(freeipa-server-trust-ad-4.12.2-14.fc43.x86_64) scriptlet failed, [366/366] Installing rpm-plugin-selinux 100% | 1.8 KiB/s | 13.0 KiB | 00m07s Running %triggerin scriptlet: systemd-0:257.7-1.fc43.x86_64 Finished %triggerin scriptlet: systemd-0:257.7-1.fc43.x86_64 Scriptlet output: Failed to connect to audit log, ignoring: Invalid argument
Transaction failed: Rpm transaction failed.
and exit status 1
Expected Results: No error.
master:
ipa-4-12:
Metadata Update from @sumenon: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)