-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NET IO BLOCK IO is Not Present via Running podman stats #11695
Comments
@giuseppe PTAL |
cgroupManager: systemd Are these controllers not enabled for rootless v2? |
@mheon can you please help me how to verify whether above controller is rootless ? |
The code currently disables the networks stats for rootless users. podman/libpod/networking_linux.go Lines 912 to 938 in 420ff1d
I don't think this can work 100% correctly for rootless, the port forwarder uses a bit of a hack to get the data into the container. It will not send the data through the actual eth0 or tap0 interface. Also when I look at this, it will not work for multiple interfaces at the moment. I think if we add the statistics of all interfaces together we could make it work. |
Rootless networking is probably a lost cause. Storage might work, if the appropriate cgroups are available, I think. |
I tried it rootless works fine, the problem is that in order to get the port forwarding traffic we have to read the loopback adapter statistics. The loopback adapter on the other hand will not show the outgoing traffic. Those can be get via the tap0 adapter. I think in order to make it work we should show the sum of all adapters. |
@Luap99 , Could you please help me how I can achieve this tasks ? |
A friendly reminder that this issue had no activity for 30 days. |
@Luap99 any progress on this? |
A friendly reminder that this issue had no activity for 30 days. |
@Luap99 friendly ping. |
A friendly reminder that this issue had no activity for 30 days. |
@giuseppe PTAL |
A friendly reminder that this issue had no activity for 30 days. |
opened a PR to add network stats from slirp4netns: #13101 block IO stats already work for rootless on cgroup v2 when the |
by default slirp4netns uses the tap0 device. When slirp4netns is used, use that device by default instead of eth0. Closes: containers#11695 Signed-off-by: Giuseppe Scrivano <[email protected]>
by default slirp4netns uses the tap0 device. When slirp4netns is used, use that device by default instead of eth0. Closes: containers#11695 Signed-off-by: Giuseppe Scrivano <[email protected]>
by default slirp4netns uses the tap0 device. When slirp4netns is used, use that device by default instead of eth0. Closes: containers#11695 Signed-off-by: Giuseppe Scrivano <[email protected]>
/kind bug
Description
Steps to reproduce the issue:
podman stats
Describe the results you received:
ID NAME CPU % MEM USAGE / LIMIT MEM % NET IO BLOCK IO PIDS
99129948242c testpodman 0.11% 119.7MB / 16.8GB 0.71% -- / -- -- / -- 24
NET IO and Block IO Values is not coming
Describe the results you expected:
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? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes/No
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Physical
The text was updated successfully, but these errors were encountered: