podman pod stats fails in rootless mode #4634
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
On a current system with Fedora 31, when running in rootless mode,
podman pod stats <pod>
fails because it cannot read the current memory usage of the individual containers.Steps to reproduce the issue:
Run the following steps as a regular user:
podman pod create --name testpod
podman run -dit --pod testpod docker.io/library/fedora:31 /bin/bash
podman pod stats testpod
Describe the results you received:
The error message is (wrapped for readability):
The given path to the cgroup file does indeed not exist, the correct path is
The order of the path components seems mixed up:
user-1001.slice/[email protected]/user.slice/
appears after the pod slice, not before it.Describe the results you expected:
The normal output of
podman pod stats
.Additional information you deem important (e.g. issue happens only occasionally):
The error does not occur when the pod is completely empty (as there are no running containers, not even an infra container).
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: