-
Notifications
You must be signed in to change notification settings - Fork 250
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
[RFC] New field to do hidden/seamless transition between fuseoverlay
and native
overlay on first run.
#1658
Comments
Some mechanism to default to using native overlayfs when possible sounds good to me 👍 |
why should the config file hardcode that value? That seems incorrect. For users that were already using fuse-overlayfsd we already store that in the |
No its not for the users who are already using The reason they came up with this config is because buildah image was shipped with this config so it works for both new and old users. But since config contains |
it seems wrong to have IMO we don't need a new option to say |
Buildah once forced native overlay for rootless users in default image and it broke many users who are using older kernel in CI, I think this hidden option can solve the issue which was seen here: containers/buildah#4715 keeping both new/old kernel users happy. As workaround solution for above problem config was reverted to use There were more user who got affected because of it some reports are scattered in different issues: containers/buildah#4727 |
fuseoverlay
and native
overlay.fuseoverlay
and native
overlay on first run.
Another option to "force native" and do not attempt any fallback to fuse-overlayfs is to uninstall fuse-overlayfs Before we add a new flag let's make sure we understand why it failed. What is wrong with the mechanism where we write down if a user is using fuse-overlayfs and then keep using it once it is set but attempt using native overlay where possible? The new flag will still require a change in the configuration, so couldn't it be changed just to unset |
@giuseppe Do you mean user should manually uninstall
I think this can be done but it prohibits the use-case of using
I mean if we have this new flag and we modify |
Edit: I misunderstood it before one change and one bug fix is needed in |
Hi, do we still need to use the --device=/dev/fuse in rootless buildah on kernels 5.13 and higher? |
it depends, if you use a volume for the containers storage, then you can use native overlay in the nested container too. Otherwise, if you are running on overlay, you need fuse-overlayfs on top of it. In any case, I t think we can close this issue. @flouthoc are you fine with it? |
Yes I think we should close this issue, this is not needed anymore. Thanks. |
There is a use case where a central config is shipped for rootless users where
mount_program
is hardcoded tofuse-overlayfs
the reason is that it works for both users with kernel lower than5.13
and above than5.13
. However there is no need for newer users to keep usingfuse-overlayfs
but hard-coding config to not usefuse-overlayfs
break old users. This creates a problem in creating more kernel agnostic storage config for rootless users. Example issues seen in past: containers/buildah#4715, containers/buildah#4669, containers/buildah#4727Since there is no way for buildah image to determine on which kernel the buildah will be executed, could we add field
ForceUseNativeOverlay bool
toc/storage
config. When configuredtrue
c/storage
will on runtime decide if a newer kernel is present and in such case it will ignore configuredfuse-overlayfs
asmount_Program
and switch tonative
overlay.Addition of following field will ensure easier way to ship config for
rootless
users in pre-builtpodman
andbuildah
images.The text was updated successfully, but these errors were encountered: