Bugzilla – Bug 1216730
avahi-autoipd install scriptlet is failing due to missing dependency on avahi
Last modified: 2024-01-03 08:50:43 UTC
Created attachment 870528 [details] install.log ## Observation avahi-autoipd is installed before avahi thus avahi user is missing. (289/437) Installing: avahi-autoipd-0.8-150400.7.3.1.x86_64 [.. /usr/sbin/useradd -r -c User for Avahi IPv4LL -d /var/lib/avahi-autoipd -U avahi-autoipd -s /usr/sbin/nologin Updating /etc/sysconfig/avahi ... find: 'avahi' is not the name of a known user warning: %post(avahi-autoipd-0.8-150400.7.3.1.x86_64) scriptlet failed, exit status 1 done] (290/437) Installing: avahi-0.8-150400.7.3.1.x86_64 [.. /usr/sbin/useradd -r -c User for Avahi -d /run/avahi-daemon -U avahi -s /usr/sbin/nologin Updating /etc/sysconfig/avahi ... Updating /etc/sysconfig/security ... Created symlink /etc/systemd/system/dbus-org.freedesktop.Avahi.service -> /usr/lib/systemd/system/avahi-daemon.service. Created symlink /etc/systemd/system/multi-user.target.wants/avahi-daemon.service -> /usr/lib/systemd/system/avahi-daemon.service. Created symlink /etc/systemd/system/sockets.target.wants/avahi-daemon.socket -> /usr/lib/systemd/system/avahi-daemon.socket. done] ## Reproducible Fails since (at least) Build [:31307:avahi](https://openqa.suse.de/tests/12725974) (current job) ## Expected result Last good: [:31339:scap-security-guide](https://openqa.suse.de/tests/12725806) (or more recent) ## Further details Always latest result in this scenario: [latest](https://openqa.suse.de/tests/latest?arch=x86_64&distri=sle&flavor=Server-DVD-Incidents-Install-TERADATA&machine=64bit&test=qam-incidentinstall&version=15-SP4)
avahi-autopid probably needs a Requires(pre): avahi
The command that returns this failure is: find /var/lib/avahi-autoipd -user avahi -exec chown avahi-autoipd:avahi-autoipd {} + i.e it's upgrade code changing from user avahi to avahi-autoipd I don't think requiring avahi is the right fix here - we should rather make find quiet if it could not find any file on that non-exissting user, as this also means, nothing needs to change ownership maybe something like getent passed avahi && find …
Fix for Factory: created request id 1125434
This is an autogenerated message for OBS integration: This bug (1216730) was mentioned in https://build.opensuse.org/request/show/1126603 Factory / avahi
Last avahi update passed.