-
Notifications
You must be signed in to change notification settings - Fork 785
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
Buildah version 1.29.1 broken fuse-overlayfs in gitlab runner #4715
Comments
Could you try setting graph options to null in your |
Same issue for me, and I rolled back to v1.29.0 instead of the latest version. |
Hello @flouthoc I have the same issue, I made some investigation and I noticed that the latest image were (re)uploaded 18 hours ago with a missing config! Do you have any idea why and how is that possible? Luckily, 7 days ago I creatde a custom image based on the latest 1.29.1, below are details from both: Edit: The output below is the result of a clean version of custom
Today's latest
diff$ git diff buildah_custom.txt buildah_latest.txt
diff --git a/buildah_custom.txt b/buildah_latest.txt
index 1c7966c..27435fa 100644
--- a/buildah_custom.txt
+++ b/buildah_latest.txt
@@ -8,7 +8,6 @@ additionalimagestores = [
]
pull_options = {enable_partial_images = "false", use_hard_links = "false", ostree_repos=""}
[storage.options.overlay]
-mount_program = "/usr/bin/fuse-overlayfs"
mountopt = "nodev,fsync=0"
[storage.options.thinpool]
Version: 1.29.1 Did the image build workflow changed? Thanks in advance |
It looks like somthing is triggering a rebuild of images, overriding https://quay.io/repository/buildah/stable?tab=history I assume that |
same issue here. I wrote a minimal working example at https://gitlab.com/Blaimi/buildah-bughunt. |
They are all built daily according to the readme. v1.29.0 seems not to be build daily anymore because it is outdated |
That's a non-sense to me that |
In my case, I have a lot of pipelines (different projects with multiple branchs), my workaround is to definne aa Gitlab Group CI/CD variable |
I extended my example with this variable in the matrix-builds and set an hourly scheduler on the build.
I wrote #4717 for that 😸. |
@giuseppe might we get lucky and have a fix in the newly released fuse-overlayfs v1.11? |
I think nothing's wrong in fuse-overlay, its just the config was removed here: #4699 |
Yes, this confirm my analysis #4715 (comment) But the real question here is, why a code merged two days ago triggered a re-build of a release that is more than a month old, with the same version/tag.. This is also a CI/CD bug. @flouthoc , can you please share more details about you saying "old kernels"? I am interesting to learn more about that and why my Amazon Linux 2 is using an "old kernel", or maybe It's not and I just need to enable some extra modules. Thx |
@elacheche native overlay is easily supported on rootless setups after kernel
Indeed CI/CD has a issue if its modifying older tags :) |
I have a Gitlab runner with kernel version 5.15 and I'm also seeing this issue. |
@cevich some CI questions in here for the quay container images, in case you didn't see this. |
Ironically I too ran into this issue 😞
As y'all found in the readme, the builds happen daily from Since it's a Just for some history: There was a great design debate among the containers team, on which approach to take. We decided that since the tag represents the buildah-version, it was better to keep the images continuously updated on the off-chance some non-buildah critical security fix was released. Or in this case, a |
#4717 is probably where the image tag stability discussion belongs, but the problem there (as I see it) is not that the underlying OS bits are getting updated daily (that seems perfectly fine), but that the |
Only the |
I see my confusion: The manifest from the latest image shows
So I went down the wrong path because of that label and the fact that it was the build that caused the problem and not changes to the executable. I don't know if there's a way to avoid that confusion, or even if it's worth trying. |
Oh! hang on a sec...you're right! That's a bug in the build script. Those labels are completely wrong when the image uses RPMs. I'll open an issue on that and get on about fixing it. Thanks for pointing out the mismatch. |
You should be able to turn it on if we disable fuse-overlayfs by default. |
Description
After our buildah image was upgraded using the v1.29.1 version we noticed all our pipelines that were using buildah build started to fail on our gitlab runners. Seems like an issue with the fuse-overlayfs package
We're using the quay.io/buildah/stable:latest image, after downgrading to v1.29.0 buildah worked again.
Steps to reproduce the issue:
Describe the results you received:
Buildah build failing to unmount and mount
Command used:
$ buildah build -q -f .docker/Dockerfile -t $CI_REGISTRY_IMAGE:$BUILD_TAG -t $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA .
Output:
Line 1
time="2023-04-06T08:20:26Z" level=error msg="Unmounting /var/lib/containers/storage/overlay/de00ab76e27e966fa7c0c0b79a5ad1247cdf765946bc05ada5b6d99be3a42be5/merged: invalid argument"
Line 2
Error: mounting new container: mounting build container "9c4bcdfd7a1a64ae4bb1d399c930ae9a29e52d240c1405e00bf7638cde951901": creating overlay mount to /var/lib/containers/storage/overlay/de00ab76e27e966fa7c0c0b79a5ad1247cdf765946bc05ada5b6d99be3a42be5/merged, mount_data="lowerdir=/var/lib/containers/storage/overlay/l/X3DKLX3WMGVRBGZJYZ4MSULUEY:/var/lib/containers/storage/overlay/l/VLKLEB5WCVLZFQUO2W3ANMY7ZY:/var/lib/containers/storage/overlay/l/YWHPWE4M7KVTL6WXCXO6LBJW52:/var/lib/containers/storage/overlay/l/RJM72NK2LQWGBJU2CB2BWSTGBT:/var/lib/containers/storage/overlay/l/6TW2TMTSHXLBWS4KEJYUFY73CA:/var/lib/containers/storage/overlay/l/MTOGBS4AKRVUFTNZYIFGJLFZCX:/var/lib/containers/storage/overlay/l/ZZXGS22J43ZTSNW3SH2S2L4WRU,upperdir=/var/lib/containers/storage/overlay/de00ab76e27e966fa7c0c0b79a5ad1247cdf765946bc05ada5b6d99be3a42be5/diff,workdir=/var/lib/containers/storage/overlay/de00ab76e27e966fa7c0c0b79a5ad1247cdf765946bc05ada5b6d99be3a42be5/work,nodev,fsync=0,volatile": invalid argument
Describe the results you expected:
A working buildah build command
The text was updated successfully, but these errors were encountered: