podman update
: limit device on remote system doesn't work
#24734
Labels
jira
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.
remote
Problem is in podman-remote
Issue Description
Device limiting does not work because Major and Minor numbers of devices that are on the client's machine are sent through the API. Therefore, if the device does not exist on the client, it is not possible to limit device the device. If the device exists on the client side, it is possible that there may be different Major and Minor numbers on the server side, so it could restrict a different device.
Steps to reproduce the issue
Steps to reproduce the issue
podman-remote run -dt --replace --name test quay.io/libpod/alpine:latest top
podman-remote update test --device-read-bps=/dev/usbmon4:10mb
Describe the results you received
On Linux Client: The last command gave an error message:
Error: could not parse throttle device at /dev/test_device: no such file or directory
On Mac OS client: No error happened. However, the
podman exec test cat /sys/fs/cgroup/io.max
command failed to verify the limitation. The file is empty.Describe the results you expected
The device will be restricted and the output of the
podman exec test cat /sys/fs/cgroup/io.max
command will contain this line:236:4 rbps=10485760 wbps=max riops=max wiops=max
podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: