-
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
podman run --storage-opt size for container root filesystem quota is not honored in xfs based quota enabled backend #10264
Comments
A friendly reminder that this issue had no activity for 30 days. |
If the issue is just handling of the command line option, then probably yes. If the xfs quota handling is broken, then no. If you setup storage-opt size in storage.conf, does it work? |
When I set ‘size’ in ‘[storage.options]’ section (undocumented), then it works. |
Then yes #9911 should fix this. |
/reopen |
@vikas-goel: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Verified on the main branch build. There storage-opt size=5G is not honored. |
Is it failing or not? IE You are just able to build an image larger then 5G |
With The |
Try: podman --storage-opt size=5G run ... I tried both and only in the option before the run did the command work. |
That works when running manually using podman command. However, it doesn't work with docker-compose. |
Ok that is a separate issue. |
Open another Issue. Lets fix this issue first. |
@vikas-goel If you move the --storage-opt before the run, does your test work? |
Yes, it works when moved before. |
Ok, I am working on remote now. |
The global flag will work in either location, and this flag just breaks users expectations, and is basically a noop. Also fix global storage-opt so that podman-remote can use it. [NO TESTS NEEDED] Since it would be difficult to test in ci/cd. Fixes: containers#10264 Signed-off-by: Daniel J Walsh <[email protected]>
Thank you @rhatdan for making the change. I built the podman binary from main branch and verified that it works when the The docker-compose still doesn't work. Do I need to replace some other binary/library or does that require a separate fix? |
No I need to continue working on it. It is a complex fix. Will need to modify containers/storage as well. |
I've created #11016 to track the Docker Compose issue |
Has there been any progress on this? |
This should be available now. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
podman run
command does not honor--storage-opt size=10G
option.The storage graph driver is set to overlay/overlay2 and the storage backend being xfs file-system with
prjquota
option enabled. When a container is started with the said option, there is no effect of it. The container can continue to fill the root file-system that may create denial of service once the hosts file-system is full.In similar Docker situation, the command is honored and the container cannot write more than the size specified in the
docker run --storage-opt size=<size>
command line argument.I have tried
size = 10G
attribute under[storage.options.overlay2]
and[storage.options.thinpool]
sections in /etc/containers/storage.conf file but in vain. When I setsize = 10G
under[storage.options]
section (undocumented), then the containers cannot write more than the specified size. Thepodman run --storage-opt size
command line argument is still ignored. As thesize
attributed in /etc/containers/storage.conf file is global, I am unable to set the size per container.Steps to reproduce the issue:
Create a xfs file-system based backed storage for /var/lib/containers with project quota on
/dev/sdb1 on /var/lib/containers type xfs (rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,prjquota)
Start a container with
podman run --storage-opt size=10G
optionLogin to the container and run
dd if=/dev/zero of=/fill.txt
.Describe the results you received:
The
dd
command continues to write beyond 10G and fills the backend storage on the hostDescribe the results you expected:
The
dd
command should abort after around writing 10G of dataAdditional information you deem important (e.g. issue happens only occasionally):
The issue happens consistently
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)
No
Additional environment details (AWS, VirtualBox, physical, etc.):
Red Hat Enterprise Linux 8.4 Beta
VMware virtual machine
The text was updated successfully, but these errors were encountered: