-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
The podman stats command returns Error: Link not found #7883
Comments
Not crazy about supporting this on RHEL7, Could you try this on a RHEL8 box and see if you have similar issues? |
Not quite RHEL8, but I also tested it on Archlinux and got the same behavior. Later will try to reproduce on RHEL8
|
@AkihiroSuda @giuseppe Any idea what is going on here? |
Reproduced on CentOS 8 (both image and host)
System info:
|
A friendly reminder that this issue had no activity for 30 days. |
Is this still happening? @vrothberg This seems similar to the issue we have seen with podman stats in the CI/CD system? Do you think your PR would fix this? |
It looks like another issue. The one I caused (and fixed) recently related to parsing cgroups. This one here seems to relate to networking. |
Still able to reproduce with podman 2.2.0 |
Found it. Our check for |
Just checking for `rootless.IsRootless()` does not catch all the cases where slirp4netns is in use - we actually allow it to be used as root as well. Fortify the conditional here so we don't fail in the root + slirp case. Fixes containers#7883 Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Fix in #8648 |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
The
podman stats
command showsError: Link not found
for containers configured to use--network slirp4netns
when running podman as root.Steps to reproduce the issue:
Run podman container as root with
--network slirp4netns
option (E. g.podman run -d --network slirp4netns --name test --rm centos:7.5 /bin/sleep 600
)Ask podman to show stats via
podman stats
command for that container (E. g.podman stats test
)Describe the results you received:
The
podman stats
command returnsError: Link not found
Describe the results you expected:
The stats of the container to be shown in terminal as it happens when the stats command is run against the container without the
--network slirp4netns
option.Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Podman run in the qemu virtual machine
The text was updated successfully, but these errors were encountered: