Closed avisiedo closed 3 years ago
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: avisiedo
The full list of commands accepted by this bot can be found here.
The pull request process is described here
@avisiedo does this mean the disk space in the pipeline execution environment is very constrained? Do we know what the limits are, or if it is possible to relax the limits?
@frasertweedale Yes, it is limited.
I have collected some information from the pipeline from my forked repository: https://github.com/avisiedo/freeipa-operator/runs/1899877766?check_suite_focus=true#step:6:68
>>> Building container image
Filesystem Size Used Avail Use% Mounted on
/dev/root 84G 64G 21G 76% /
devtmpfs 3.4G 0 3.4G 0% /dev
tmpfs 3.4G 12K 3.4G 1% /dev/shm
tmpfs 696M 1.1M 695M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 3.4G 0 3.4G 0% /sys/fs/cgroup
/dev/sda15 105M 3.9M 101M 4% /boot/efi
/dev/loop1 56M 56M 0 100% /snap/core18/1944
/dev/loop2 56M 56M 0 100% /snap/core18/1988
/dev/loop0 138M 138M 0 100% /snap/chromium/1479
/dev/loop3 163M 163M 0 100% /snap/gnome-3-28-1804/145
/dev/loop4 32M 32M 0 100% /snap/snapd/10707
/dev/loop6 70M 70M 0 100% /snap/lxd/19188
/dev/loop7 32M 32M 0 100% /snap/snapd/11036
/dev/loop5 65M 65M 0 100% /snap/gtk-common-themes/1514
/dev/sdb1 14G 4.1G 9.0G 32% /mnt
podman build . -t ***:da4014ad9a4f83da81a4db6446003cfbe87a5255
I did changes for releasing space before build the container image with no success.
At the end, I restructured the Dockerfile steps to minimize the size for the generated layer.
Honestly I don't know exactly which is the limitation that was evoking this issue. I would need further investigation as running "podman info" to see where is the storage location.
Clear documentation about capacities of GitHub actions environments was not easy to find. But I found this:
https://docs.github.com/en/actions/reference/specifications-for-github-hosted-runners.
It says there is a 14GB disk space. (I suppose that's what's mounted at /mnt
?) But 4GB is already consumed (I saw suggested in a different place that it is a swap file). And then, is the 21GB in the /dev/root
device usable? Where is $HOME
? located. Where do containers get created?
All a bit vague and underspecified...
This fix the root cause that was evoking the following error in the pipeline:
By shrinking the size of the resulting layer while building the container image.