Bug 1990653
Summary: | new shadow-utils 4.9 breaks rootless podman containers | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dusty Mabe <dustymabe> |
Component: | shadow-utils | Assignee: | Iker Pedrosa <ipedrosa> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 35 | CC: | atikhono, ipedrosa, mpitt, pvrabec, santiago, tm |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | sync-to-jira review | ||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-08-12 14:19:59 UTC | 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1989556 |
Description
Dusty Mabe
2021-08-05 20:41:16 UTC
FWIW I've just spun up a rawhide VM, installed podman (3.3.0-0.26.rc1.fc35), dnf-upgraded to shadow-utils-4.9-1.fc35, and: # loginctl enable-linger fedora # su - fedora $ podman info [works fine] $ podman run alpine date [also works fine] There is a long history of rootless podman problems that are caused by a broken shadow-utils install. Is it possible to respin the rpm-ostree? Uh, then again: # adduser testuser2 # loginctl enable-linger testuser2 # su - testuser2 $ podman info Error: cannot setup namespace using newuidmap: exit status 1 # cat /etc/subuid fedora:100000:65536 testuser2:0:0 This is also happening with Fedora rawhide so I think we can rule out rpm-ostree. Can you try removing "testuser2:0:0" or the equivalent from /etc/subuid? I don't know why this line is there and when I removed it "podman info" was working. For me (Fedora CoreOS) here are the contents of /etc/subuid: ``` [core@cosa-devsh ~]$ cat /etc/subuid core:0:0 ``` If I replace /etc/subuid and /etc/subgid with `core:100000:65536` instead of what is in there (`core:0:0`) then things start working. For context, `core` is the default username on Fedora CoreOS. (In reply to Iker Pedrosa from comment #3) > This is also happening with Fedora rawhide so I think we can rule out > rpm-ostree. > > Can you try removing "testuser2:0:0" or the equivalent from /etc/subuid? I > don't know why this line is there and when I removed it "podman info" was > working. `testuser2:0:0` in /etc/subuid was probably created when he called `adduser testuser2` (see comment#2). Maybe a bug in `adduser`? *** Bug 1990734 has been marked as a duplicate of this bug. *** I think I have the solution. Can you try it? https://copr.fedorainfracloud.org/coprs/ipedrosa/useradd_breaks_podman/ Seems to work for me: ``` [core@cosa-devsh ~]$ rpm -q shadow-utils shadow-utils-4.9-2debug.fc35.x86_64 [core@cosa-devsh ~]$ cat /etc/subuid core:100000:65536 ``` Upstream PR: https://github.com/shadow-maint/shadow/pull/399 This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle. Changing version to 35. |