Bug 2218209
| Summary: | useradd: invalid user ID '389:389': installing 389-ds-base in container fails to create the dirsrv user | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Jan Pazdziora <jpazdziora> |
| Component: | 389-ds-base | Assignee: | LDAP Maintainers <idm-ds-dev-bugs> |
| Status: | VERIFIED --- | QA Contact: | LDAP QA Team <idm-ds-qe-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | CentOS Stream | CC: | bsmejkal, bstinson, idm-ds-dev-bugs, jpazdziora, jwboyer, mreynolds, vashirov |
| Target Milestone: | rc | Keywords: | Regression, Triaged |
| Target Release: | 9.3 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | sync-to-jira | ||
| Fixed In Version: | 389-ds-base-2.3.6-2.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jan Pazdziora
2023-06-28 13:05:43 UTC
The %sysusers_create_compat in https://gitlab.com/redhat/centos-stream/rpms/389-ds-base/-/blob/c9s/389-ds-base.spec expands using /usr/lib/rpm/sysusers.generate-pre.sh from systemd-rpm-macros-252-15.el9.noarch. That code is different from the respective one in Fedora and does not understand the u dirsrv 389:389 entry. Note bug 2217149 which talks about sysusers.generate-pre.sh. It might make sense with the systemd maintainers about the correct approach / timing. This is fixed in systemd-252-16.el9, but we need to rebuild 389-ds-base against the new systemd package to generate new script snippet. Moving to POST to be picked up by the next build. $ podman run --rm quay.io/centos/centos:stream9 bash -c 'dnf install -y 389-ds-base && grep dirsrv /etc/passwd' ... Installed: 389-ds-base-2.3.4-3.el9.x86_64 389-ds-base-libs-2.3.4-3.el9.x86_64 ... systemd-252-16.el9.x86_64 systemd-libs-252-16.el9.x86_64 systemd-pam-252-16.el9.x86_64 systemd-rpm-macros-252-16.el9.noarch ... Complete! dirsrv:x:389:389:user for 389-ds-base:/usr/share/dirsrv/:/sbin/nologin Marking as Verified:Tested. As per comment #c5 marking as VERIFIED. |