Closed Nomsplease closed 1 year ago
I will look into maybe defining a way to use a alternate snapshotter method if the file system does not match a supported one. I could look at possibly statically defining this in the variables file but that only seems like a workaround not a fix to the issue.
@acdoussan Can you validate which root fs you are using within your LXC env for your hosts?
all of my proxmox hosts use zsf mirrors, and the disks for my lxc containers are just created on the host storage. Can see terraform for my lxc containers here.
Are you saying that k3s fails to start when the container itself is using zfs? Or when the container is created on a host that is using zfs?
all of my proxmox hosts use zsf mirrors, and the disks for my lxc containers are just created on the host storage. Can see terraform for my lxc containers here.
Are you saying that k3s fails to start when the container itself is using zfs? Or when the container is created on a host that is using zfs?
It looks ours is built similarly then since my LXCs are built on top of a Raid-10 ZFS array. I don't have any other storage passed through to the LXC. Interesting that mine do not start without changing the snapshot driver but yours seem to function fine.
Closing this, same as the PR.
I cant be sure if this is a edge case or not in my scenario now. If we have examples that this is more then an edge case then we have a fix, otherwise it will be relegated to the history of PRs.
Expected Behavior
K3S should init and join nodes to cluster in LXC setups.
Current Behavior
K3S init will timeout of the retry loop as K3S will stop itself after every start attempt with a message like
Feb 13 10:44:52 K3S-02 k3s[491]: time="2023-02-13T10:44:52-05:00" level=info msg="Waiting to retrieve agent configuration; server is not ready: \"overlayfs\" snapshotter cannot be enabled for \"/var/lib/rancher/k3s/agent/containerd\", try using \"fuse-overlayfs\" or \"native\": failed to mount overlay: permission denied"
Steps to Reproduce
Context (variables)
Operating system: Proxmox 7.3-6 Kernel 6.1.2-1-pve
Possible Solution
This seems to be an issue when your filesytem is not ext4 or xfs per https://github.com/containerd/containerd/issues/5464
With zfs we may be able to use fuse-overlayfs or native for the snapshotter