-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[zfs] kind create cluster using podman provider fails to bootstrap the cluster - failed to mount rootfs component #2868
Comments
Are those logs from the rootful or rootless logs? Is rootful podman running with fuse-overlayfs? I don't have an environment with zfs x podman, but when we detect zfs inside the kind node we have to switch to the "native" driver, with lower precedence than on rootless (userns remapping) we will need to use fuse-overlayfs / overlayfs depending on the host kernel. We seem to be runing with overlayfs snapshotter inside the container, it probably needs to be fuse-overlayfs or native. you can override this with kind/images/base/files/usr/local/bin/entrypoint Lines 102 to 128 in 3ad5fe9
|
The attached logs were from rootful podman. RootfulRunning Running RootlessRunning So it seems like we are picking the wrong snapshotter.
It seems like it tries to use the Thanks for the pointers @BenTheElder . Happy to help with this further. |
Thanks! I think we should probably rework the snapshotter selection to be independent of the rest of userns config and always select fuse-overlays when we’re in fuseblk. It seems like a safe bet that we’re in fuse-overlayfs if /kind is on fuseblk |
I also encountered fails this morning when running both with |
@maciekmm could you make a PR for the docs where you provide a guide on how to run kind with rootless podman on Arch? At least explain it here. Command:
Error:
|
working on a fix here #2874 |
test image use with |
@BenTheElder thanks for working on this. It seems like the image you have linked does not contain the fixes.
|
Thanks, let me see if I grabbed the wrong image or built wrong and update. |
fixed, should be |
Thanks! Can confirm this works under both rootful and rootless podman on zfs running fuse overlayfs. 🎉 |
Any snapshots for v1.22? |
Thanks for confirming @maciekmm 🙏 @caniko No, but you can build your own if you checkout the PR https://kind.sigs.k8s.io/docs/user/quick-start/#building-images |
should be fixed by #2874 current plan is to try to cut a release next week alongside kubernetes 1.25 |
What happened:
Creating a cluster with
kind create cluster
under rootful and rootless podman hangs on⢎⡠ Starting control-plane 🕹️
and later fails withWhat you expected to happen:
I'd expect the
kind create cluster
to successfully create a cluster.How to reproduce it (as minimally and precisely as possible):
On a zfs backed Arch system installation running podman (rootful or rootless) with
fuse-overlayfs
storage driver executekind create cluster
.Anything else we need to know?:
Running
kind
with--retain
flag and peeking inside the container we see:All logs: logs.tar.gz
The same happens under rootless podman.
Environment:
kind version
): kind v0.14.0 go1.18.3 linux/amd64kubectl version
): node image is 1.24.0docker info
):/etc/os-release
):The text was updated successfully, but these errors were encountered: