-
Notifications
You must be signed in to change notification settings - Fork 778
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
InvalidDiskCapacity, invalid capacity 0 on image filesystem [on clean install] #912
Comments
@sjmudd some addons take a bit of time to startup. Does the status "ContainerCreating" persist for a long time? I am also getting that "InvalidDiskCapacity" warning on the node. I think it is benign. My best guess on why this is reported by the kubelet, is that snaps file systems are mostly readonly (i think they are virtual filesystems). You will normally see that they are None of the pods come up? |
There is only one node at the moment and the containers are still in the same state
FWIW here is the full df -h output on the box. (it's a real pc I use for resting not a vm):
As you say the snaps are all 100% usage as mounted as ro loopback devices. Doing a describe on the first pod I see:
So the problem seems to be here. It is not clear to me which argument is invalid or why, but this error seems to be the same on the second failed pod:
and |
You mentioned you are using zfs. I not sure if containerd currently supports zfs. Although there is a project in github that tends to this. |
Hi. Sorry for the delay in responding. I do not think I am using any zfs specific features so I would expect the containerd setup to be "normal". Looking at the README at https://github.com/containerd/containerd seems to suggest the same so I guess I may be missing some edge case where this going wrong. Seems to imply that to help at least diagnose what's going on I may need to add debug information in various places in the code. I am not 100% sure which components may need patching to do this but will see if I can figure that out. Clearly the |
Same thing is reported here. |
Thanks for the reference. I don't think I'm going to make much progress looking from my side given the way the snap is built. However, a better, clearer error message earlier in the snap install process such as "microk8s currently not supported on zfs, see: some_url for details" would maybe help a lot to recognise the issue than the current rather obscure messages I'm seeing. I am not sure if that should be a kubernetes upstream message or a microk8s message, but something of that for would aid with visibility. |
One point of reference If I try to install the snap version of docker on this box it doesn't work. There are comments about it not working with confinement etc, yet if I install docker directly (via apt) on the server it works fine even though it seems to use containerd and is running on zfs. So clearly it should work even if things aren't now.
I am wondering with the current installation if I can move |
Hi @sjmudd appreciate you sharing more information on this. Now that you mentioned that docker with |
Maybe we just need to change containerd's snapshotter from @sjmudd Can you try this, there is a file in You should find this
Try changing it from |
This looks different. So I do This shows:
So I check the first pod: This shows:
Checking the directory I see:
So the required |
There seems to be a way to get this working. Steps are also indicated in the microk8s site. |
Hi, FWIW yes the comment worked for me. |
Great that it worked. Thanks for confirming. 👍 |
This fixed the Error for me |
hi @balchua im facing exact problem as @sjmudd did i get that warning for my nodes and cni pods r not scheduling but in my case its not microk8s but containerd as i installed like this
seeing the solution i changed snapshotter to zfs which was in a line in /etc/containerd/config.toml but dont seem to workaround .. Any helpful suggestions ? |
Try with modprobe switch from overlay to zfs , $ modprobe zfs |
Had been following the Quick start guide at https://microk8s.io/docs/
May be related to #893 but I see differences.
Running on:
but I see
See the
InvalidDiskCapacity
warning.This sounds harmless but if I try and do anything such as enable one of the microk8s components I then see that this fails with
ContainerCreating
.Disk space is fine:
inspection-report-20200113_232425.tar.gz
So any thoughts on what I'm doing wrong would be most welcome.
The text was updated successfully, but these errors were encountered: