Bug 1216730

Summary: avahi-autoipd install scriptlet is failing due to missing dependency on avahi
Product: [openSUSE] PUBLIC SUSE Linux Enterprise Server 15 SP4 Reporter: Jozef Pupava <jpupava>
Component: OtherAssignee: E-mail List <gnome-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: Normal    
Priority: P5 - None CC: dimstar
Version: SLES15SP4-MaintUpd   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://openqa.suse.de/tests/12725974/modules/update_install/steps/205
Whiteboard:
Found By: openQA Services Priority:
Business Priority: Blocker: No
Marketing QA Status: --- IT Deployment: ---
Attachments: install.log

Description Jozef Pupava 2023-10-31 08:39:26 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)
Comment 1 Marcus Meissner 2023-10-31 08:45:21 UTC
avahi-autopid probably needs a Requires(pre): avahi
Comment 2 Dominique Leuenberger 2023-11-13 10:08:31 UTC
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 …
Comment 3 Dominique Leuenberger 2023-11-13 10:16:47 UTC
Fix for Factory: created request id 1125434
Comment 4 OBSbugzilla Bot 2023-11-15 13:35:02 UTC
This is an autogenerated message for OBS integration:
This bug (1216730) was mentioned in
https://build.opensuse.org/request/show/1126603 Factory / avahi
Comment 7 Jozef Pupava 2024-01-03 08:50:43 UTC
Last avahi update passed.