--userns=keep-id storage-chown-by-maps kills machine on non-btrfs with large images #16830
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I am trying to build a bigger container image that contains all my usual desktop/applications, and use it with toolbox. With a "fairly large" image,
podman create
already takes some 30s, and once I add TeXlive to the image, it never finishes any more and eventually kills the machine.I stripped off the numerous toolbox options/layers and reduced that to a podman command. The crucial option is
--userns=keep-id
, which sets off somestorage-chown-by-maps
process.Steps to reproduce the issue:
Describe the results you received:
Step 1 takes 4 s on a Fedora 37 cloud VM (2 CPUs, 4 GiB RAM) with the default btrfs. On a standard RHEL 9.2 VM with XFS and on my laptop's Fedora 37 VM with /home being on ext4, it takes about 20 seconds. In
top
I see a process called "exe" which is taking 100% CPU:That is really this:
With the larger image in step 2, the Fedora 37 btrfs VM takes merely 6s. However, both on the RHEL 9.2 XFS VM as well as my ext4 real-iron Fedora 37 laptop, the
storage-chown-by-maps
process never ends. After maybe half a minute it kills the VM (ssh dead, cannot log into the virsh console either), and my laptop becomes really sluggish, I cannot even starttop
any more. Trying tokill -9
or evensudo kill -9
(!) thatstorage-chown-by-maps
does not work either, it's just unkillable.Describe the results you expected:
The
storage-chown-by-maps
process should finish eventually, but ideally reasonably fast. This is more or less a glorifiedchown -R
, no? that shouldn't take more than a few seconds.Additional information you deem important (e.g. issue happens only occasionally): 100% reproducible, also in a synthetic cloud instance.
Output of
podman version
:From Fedora 37:
current RHEL 9.2 also has podman 4.3.
Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
orbrew info podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes -- it's the latest version. The troubleshooting guide even recommends
--userns=keep-id
for some use cases, but that's what is broken.Additional environment details (AWS, VirtualBox, physical, etc.): physical and QEMU.
The text was updated successfully, but these errors were encountered: