-
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
kind create cluster fails with "ERROR: failed to create cluster" (slow disk operations?) #2416
Comments
@aojea @BenTheElder |
that |
|
it seems your system doesn't have enough resources, most of the operations are taking a lot of time to be executed and failing
most of the components are not able to work on that environment
|
Does kind need very high resources? I have 8gb ram with dual boot(Linux + Windows). Is that not enough?
and
|
it is enough, but your logs show very slow queries, check with |
On inspecting |
Kind works for thousands of people and ci jobs , also with less resources with a similar set-up, ubuntu 20.4, per example github actions. It looks that, I don't know why, you have something different, the only symptom I can think about is that something is very slow, but that is a problem of debugging performance on your system Try running etcd in memory , #845 (comment), if that works it means you have something in your setup that is causing slow disks operations |
Hi, I have faced the same error on different machines too. After some tests, we realized it was caused by the length of the cluster name. Could it be your problem? |
That does not seem to be the issue as I am just running |
This should also be producing a warning if you try to use one that is unlikely to work
If it's not, we could use a separate report with the length etc. to get that fixed, it's more difficult to track problems like this when they're interleaved into a single issue 😅 Regarding OP's issue, I might suspect the disk speed, upstream kubernetes / etcd has some timeout assumptions and can be pretty disk heavy. Trying in memory per #2416 (comment) might be worth a shot. Unfortunately there is not a ton we can do to reduce that need further, we do tweak things to reduce usage on a few dimensions slightly but mostly usage is just down to kubernetes, the things kind adds are very lightweight and the customizations we do vs a standard |
this disk looks fast enough to me, but it seems pretty clear something about this host setup is causing etcd to have very slow reads. other than perhaps #845 (comment) I don't think we can do much about this in kind. etcd's needs come primarily from kubernetes upstream. |
Just doing a simple
kind create cluster
fails with the errorERROR: failed to create cluster: failed to init node with kubeadm: command "docker exec --privileged kind-control-plane kubeadm init --skip-phases=preflight --config=/kind/kubeadm.conf --skip-token-print --v=6" failed with error: exit status 1
Complete logs: https://pastebin.ubuntu.com/p/BDwBJqkwcH/
What happened:
Cluster did not got created
What you expected to happen:
A cluster should be created
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kind version: (use
kind version
):kind v0.11.1 go1.16.4 linux/amd64
Kubernetes version: (use
kubectl version
):Kubernetes is not installed as its not a requirement according to https://kind.sigs.k8s.io/docs/user/quick-start/#creating-a-cluster
Docker version: (use
docker info
):Client: Docker Engine - Community
Version: 20.10.8
API version: 1.41
Go version: go1.16.6
Git commit: 3967b7d
Built: Fri Jul 30 19:54:27 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.8
API version: 1.41 (minimum version 1.12)
Go version: go1.16.6
Git commit: 75249d8
Built: Fri Jul 30 19:52:33 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.9
GitCommit: e25210fe30a0a703442421b0f60afac609f950a3
runc:
Version: 1.0.1
GitCommit: v1.0.1-0-g4144b63
docker-init:
Version: 0.19.0
GitCommit: de40ad0
/etc/os-release
):NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.2 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
The text was updated successfully, but these errors were encountered: