Bug 1215340

Summary: [Build 525.1] system-group-hardware-20170617-150400.22.33.noarch: install failed
Product: [openSUSE] PUBLIC SUSE Linux Enterprise Server 15 SP6 Reporter: Lubos Kocman <lubos.kocman>
Component: Media ContentAssignee: Eugenio Paolantonio <eugenio.paolantonio>
Status: VERIFIED FIXED QA Contact: Radoslav Tzvetkov <rtsvetkov>
Severity: Normal    
Priority: P3 - Medium CC: mlin, riccardo.ceragioli, wchen
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://openqa.opensuse.org/tests/3573863/modules/networkd_init/steps/37
Whiteboard:
Found By: openQA Services Priority:
Business Priority: Blocker: Yes
Marketing QA Status: --- IT Deployment: ---

Description Lubos Kocman 2023-09-14 11:40:42 UTC
# Test died: 'zypper -n --root /var/lib/machines/node1 install --no-recommends -ly systemd systemd-network shadow zypper openSUSE-release vim iproute2 iputils grep' failed with code 8

This seems to be the reason

error: %prein(system-group-hardware-20170617-150400.22.33.noarch) scriptlet failed, exit status 1
2023-09-13 21:43:27 <5> susetest(14141) [zypp-core] Exception.cc(log):186    error: system-group-hardware-20170617-150400.22.33.noarch: install failed

/var/tmp/rpm-tmp.zmdsQU: line 1: /usr/sbin/sysusers2shadow: No such file or directory


Seems like 
## Observation

openQA test in scenario opensuse-15.6-DVD-x86_64-systemd-networkd@64bit fails in
[networkd_init](https://openqa.opensuse.org/tests/3573863/modules/networkd_init/steps/37)

## Test suite description
Maintainer: dheidler@suse.de
Test for systemd-networkd. These tests run on a single testmachine and spawn systemd-nspawn containers.


## Reproducible

Fails since (at least) Build [521.1](https://openqa.opensuse.org/tests/3553439)


## Expected result

Last good: [518.1](https://openqa.opensuse.org/tests/3534834) (or more recent)


## Further details

Always latest result in this scenario: [latest](https://openqa.opensuse.org/tests/latest?arch=x86_64&distri=opensuse&flavor=DVD&machine=64bit&test=systemd-networkd&version=15.6)
Comment 1 Lubos Kocman 2023-09-14 11:43:11 UTC
File is provided by sysuser-shadow

lkocman@osc:/run/host/etc/openvpn> rpm -qf /usr/sbin/sysusers2shadow
sysuser-shadow-3.2-1.3.noarch
Comment 2 Lubos Kocman 2023-09-14 11:46:27 UTC
%package -n system-group-hardware
Summary:        Hardware related system groups
Group:          System/Fhs
%{sysusers_requires}

sysuser-shadow seems to be only build requries.
lkocman@osc:~/Workspace/obs/home:lkocman:branches:SUSE:SLE-15-SP4:GA/system-users> grep shadow system-users.spec 
BuildRequires:  sysuser-shadow


Package seems to be inherited from SLES 15 SP4.
Comment 3 Lubos Kocman 2023-09-14 12:24:19 UTC
temp. workaround for Leap 15.6 https://build.opensuse.org/request/show/1105042
SLES 15 SP4 maintenance request https://build.suse.de/request/show/307534

--- system-users.spec   (revision 1)
+++ system-users.spec   (working copy)
@@ -118,6 +118,7 @@
 %package -n system-group-hardware
 Summary:        Hardware related system groups
 Group:          System/Fhs
+Requires(pre):  sysuser-shadow
 %{sysusers_requires}
 
 %description -n system-group-hardware
Comment 4 Chenzi Cao 2023-09-25 10:55:29 UTC
*** Bug 1215648 has been marked as a duplicate of this bug. ***
Comment 5 Chenzi Cao 2023-09-25 10:56:12 UTC
Same issue reported on sles15sp4 and got resolved, I suppose may need to add the fixing to 15sp6.

https://bugzilla.suse.com/show_bug.cgi?id=1214140
Comment 6 Wayne Chen 2023-11-13 06:06:55 UTC
I think this can be closed as resolved/fixed ?
Comment 7 Radoslav Tzvetkov 2024-02-14 10:20:29 UTC
Then next time -- please set it yourself directly if you see it resolved :)
Comment 8 Wayne Chen 2024-03-20 02:14:19 UTC
(In reply to Radoslav Tzvetkov from comment #7)
> Then next time -- please set it yourself directly if you see it resolved :)

Verified/Fixed with Build64.2