Skip to content
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

Yet another "... Container * is not running" as version #1879

Closed
purplezimmermann opened this issue Oct 1, 2020 · 16 comments
Closed

Yet another "... Container * is not running" as version #1879

purplezimmermann opened this issue Oct 1, 2020 · 16 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@purplezimmermann
Copy link

purplezimmermann commented Oct 1, 2020

Related to #1288

Microsoft Windows 10 Enterprise 10.0.18363 Build 18363

docker-machine.exe version 0.15.0, build b48dc28d

Docker version 17.06.0-ce, build 02c1d87

kind version 0.9.0

VirtualBox:

Linux default 4.14.154-boot2docker #1 SMP Thu Nov 14 19:19:08 UTC 2019 x86_64 GNU/Linux

Docker version 19.03.5, build 633a0ea838

CMD:

> kind create cluster -v 1 --retain
Creating cluster "kind" ...
 • Ensuring node image (kindest/node:v1.19.1) �  ...
DEBUG: docker/images.go:58] Image: kindest/node:v1.19.1@sha256:98cf5288864662e37115e362b23e4369c8c4a408f99cbc06e58ac30ddc721600 present locally
 ✓ Ensuring node image (kindest/node:v1.19.1) �
 • Preparing nodes �   ...
 ✓ Preparing nodes �
 • Writing configuration �  ...
 ✗ Writing configuration �
ERROR: failed to create cluster: failed to generate kubeadm config content: could not parse "Error response from daemon: Container cec3b6664d735d495ceabf1052810508e955a226c27223f1a220ff1719c114eb is not running" as version

Stack Trace:
sigs.k8s.io/kind/pkg/errors.Wrap
        C:/Users/stefanz/go/pkg/mod/sigs.k8s.io/kind@v0.9.0/pkg/errors/errors.go:39
sigs.k8s.io/kind/pkg/cluster/internal/create/actions/config.(*Action).Execute.func1.1
        C:/Users/stefanz/go/pkg/mod/sigs.k8s.io/kind@v0.9.0/pkg/cluster/internal/create/actions/config/config.go:85
sigs.k8s.io/kind/pkg/errors.UntilErrorConcurrent.func1
        C:/Users/stefanz/go/pkg/mod/sigs.k8s.io/kind@v0.9.0/pkg/errors/concurrent.go:30
runtime.goexit
        c:/go/src/runtime/asm_amd64.s:1374

Unfortunately, the related /mnt/sda1/var/lib/docker/containers/cec3b6664d735d495ceabf1052810508e955a226c27223f1a220ff1719c114eb/ cec3b6664d735d495ceabf1052810508e955a226c27223f1a220ff1719c114eb-json.log is empty

How to find any detailed information about what went wrong?

@purplezimmermann purplezimmermann added the kind/bug Categorizes issue or PR as related to a bug. label Oct 1, 2020
@BenTheElder
Copy link
Member

this means the node crashed during the entrypoint, in the past due to e.g. running on an unsupported filesystem or other environmental oddities.

normally we'd look at the container logs using kind export logs or docker logs kind-control-plane, but if the container logs were wiped this is going to be hard to diagnose.

@BenTheElder
Copy link
Member

FWIW I recommend docker desktop vs docker-machine. https://docs.docker.com/machine/overview/#why-should-i-use-it

Related to #1288

#1288 is not actually a specific issue. If for any reason the node fails to finish the entrypoint / is terminated early then we'll see similar symptoms.

We've fixed all known causes of the entrypoint failing or the container being terminated early by the host, this must be something new.

I don't have windows enterprise or use docker machine so I won't be able to reproduce this. If you can capture the node container logs we can see if something failed there. If nothing was logged there, then it's likely the host / dockerd killing the container (perhaps you're out of resources on the host), which we can't do anything about.

@BenTheElder BenTheElder added the triage/needs-information Indicates an issue needs more information in order to work on it. label Oct 1, 2020
@BenTheElder BenTheElder self-assigned this Oct 1, 2020
@BenTheElder
Copy link
Member

We need to run these containers detached (-d / async) so that they continue running when kind exits, as a result docker logs is the only mechanism to get the node logs. kind export logs, wraps this (amongst other cluster-data colllection).

If we can't get logs from there, we won't really have much actionable.
The rest of the info from kind export logs might be helpful to at least get a more detailed idea of what this environment looks like, e.g. the output of docker info

@purplezimmermann
Copy link
Author

Thanks @BenTheElder for the quick reply!

What I actually meant is: Related to #1288 (comment) ;)


docker logs kind-control-plane has empty output, and all the .log files created by kind export logs only contain:

Error response from daemon: Container cec3b6664d735d495ceabf1052810508e955a226c27223f1a220ff1719c114eb is not running

Can I run the kind-control-plane container manually in some debug mode to get the missing logging data?


docker-info.txt contains:

Containers: 1
 Running: 0
 Paused: 0
 Stopped: 1
Images: 52
Server Version: 19.03.5
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host ipvlan macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: b34a5c8af56e510852c35414db4c1f4fa6172339
runc version: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
init version: fec3683
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.14.154-boot2docker
Operating System: Boot2Docker 19.03.5 (TCL 10.1)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 15.67GiB
Name: default
ID: 4B4L:7WVK:UP3R:ZPOS:ZATA:SUB5:J7JX:S7LJ:ITGK:Q3XG:JXNW:XLFC
Docker Root Dir: /mnt/sda1/var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
 provider=virtualbox
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

inspect.json contains:

[
    {
        "Id": "cec3b6664d735d495ceabf1052810508e955a226c27223f1a220ff1719c114eb",
        "Created": "2020-10-01T18:57:03.506215881Z",
        "Path": "/usr/local/bin/entrypoint",
        "Args": [
            "/sbin/init"
        ],
        "State": {
            "Status": "created",
            "Running": false,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 0,
            "ExitCode": 128,
            "Error": "cgroups: cannot find cgroup mount destination: unknown",
            "StartedAt": "0001-01-01T00:00:00Z",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },
        "Image": "sha256:37ddbc9063d2ae1a9587f79fd184bef370fd49bb853cf0521aef6ddd17399c99",
        "ResolvConfPath": "/mnt/sda1/var/lib/docker/containers/cec3b6664d735d495ceabf1052810508e955a226c27223f1a220ff1719c114eb/resolv.conf",
        "HostnamePath": "/mnt/sda1/var/lib/docker/containers/cec3b6664d735d495ceabf1052810508e955a226c27223f1a220ff1719c114eb/hostname",
        "HostsPath": "/mnt/sda1/var/lib/docker/containers/cec3b6664d735d495ceabf1052810508e955a226c27223f1a220ff1719c114eb/hosts",
        "LogPath": "/mnt/sda1/var/lib/docker/containers/cec3b6664d735d495ceabf1052810508e955a226c27223f1a220ff1719c114eb/cec3b6664d735d495ceabf1052810508e955a226c27223f1a220ff1719c114eb-json.log",
        "Name": "/kind-control-plane",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "/lib/modules:/lib/modules:ro"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "kind",
            "PortBindings": {
                "6443/tcp": [
                    {
                        "HostIp": "127.0.0.1",
                        "HostPort": "57765"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "on-failure",
                "MaximumRetryCount": 1
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "CapAdd": null,
            "CapDrop": null,
            "Capabilities": null,
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "shareable",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": true,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": [
                "seccomp=unconfined",
                "apparmor=unconfined",
                "label=disable"
            ],
            "Tmpfs": {
                "/run": "",
                "/tmp": ""
            },
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "ConsoleSize": [
                0,
                0
            ],
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": null,
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "KernelMemory": 0,
            "KernelMemoryTCP": 0,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": false,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": null,
            "ReadonlyPaths": null
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/mnt/sda1/var/lib/docker/overlay2/3992cde94ea8cf3b2b7c8a578e346aa75d6eab06f9ecc4831c1dd2a2c81902bc-init/diff:/mnt/sda1/var/lib/docker/overlay2/7d69fe6ec2e1c537a4a35a95aae3f1fd3828bdaf760e9701a9f2a1004df32e51/diff:/mnt/sda1/var/lib/docker/overlay2/30e3098feffba1be8a684e076e0537febaa93c3c252cc6c39432bf138e6b125a/diff:/mnt/sda1/var/lib/docker/overlay2/87fa1831b77d25891034274d80b39bc4c0c5dc23adbe8d09f470b905884fdcd7/diff:/mnt/sda1/var/lib/docker/overlay2/4fc1e5d28eb9d9432d98c5e9503885ea894e5efb4cbf96c49def2357dcfa1f7a/diff:/mnt/sda1/var/lib/docker/overlay2/3c61016116368449f4d988c8cf2dab542a885ceb6eb2e063f9679851b7d602ae/diff:/mnt/sda1/var/lib/docker/overlay2/217edbc4da74c24a08729a80dedb3e59abc8718346188aef03e00ba9312d138b/diff:/mnt/sda1/var/lib/docker/overlay2/487af58ea9f453c48c8d08144b4271cd4a37de37e8a2c698efd04b7fae826253/diff",
                "MergedDir": "/mnt/sda1/var/lib/docker/overlay2/3992cde94ea8cf3b2b7c8a578e346aa75d6eab06f9ecc4831c1dd2a2c81902bc/merged",
                "UpperDir": "/mnt/sda1/var/lib/docker/overlay2/3992cde94ea8cf3b2b7c8a578e346aa75d6eab06f9ecc4831c1dd2a2c81902bc/diff",
                "WorkDir": "/mnt/sda1/var/lib/docker/overlay2/3992cde94ea8cf3b2b7c8a578e346aa75d6eab06f9ecc4831c1dd2a2c81902bc/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "volume",
                "Name": "e85862a93d0ccd42dfe6cae95025561d890e09e4e661f398d219d5e22d07f418",
                "Source": "/mnt/sda1/var/lib/docker/volumes/e85862a93d0ccd42dfe6cae95025561d890e09e4e661f398d219d5e22d07f418/_data",
                "Destination": "/var",
                "Driver": "local",
                "Mode": "",
                "RW": true,
                "Propagation": ""
            },
            {
                "Type": "bind",
                "Source": "/lib/modules",
                "Destination": "/lib/modules",
                "Mode": "ro",
                "RW": false,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "kind-control-plane",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "6443/tcp": {}
            },
            "Tty": true,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "container=docker"
            ],
            "Cmd": null,
            "Image": "kindest/node:v1.19.1@sha256:98cf5288864662e37115e362b23e4369c8c4a408f99cbc06e58ac30ddc721600",
            "Volumes": {
                "/var": {}
            },
            "WorkingDir": "",
            "Entrypoint": [
                "/usr/local/bin/entrypoint",
                "/sbin/init"
            ],
            "OnBuild": null,
            "Labels": {
                "io.x-k8s.kind.cluster": "kind",
                "io.x-k8s.kind.role": "control-plane"
            },
            "StopSignal": "SIGRTMIN+3"
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "2194745dd8c4218681497e8dc54f0bcb2c0fa01857d7b48a3b387378922fd79a",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "6443/tcp": [
                    {
                        "HostIp": "127.0.0.1",
                        "HostPort": "57765"
                    }
                ]
            },
            "SandboxKey": "/var/run/docker/netns/2194745dd8c4",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "kind": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": [
                        "cec3b6664d73"
                    ],
                    "NetworkID": "54a89324fb73656d1a0cf8f00dc83fcf9c93c53d42d11e264578e7eb97cf8afe",
                    "EndpointID": "ab0f51ebed00b3889f0cb0bb625ceea2b5b666b6dc8e2187545ddf61fbe51b1e",
                    "Gateway": "172.19.0.1",
                    "IPAddress": "172.19.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "fc00:f853:ccd:e793::1",
                    "GlobalIPv6Address": "fc00:f853:ccd:e793::2",
                    "GlobalIPv6PrefixLen": 64,
                    "MacAddress": "02:42:ac:13:00:02",
                    "DriverOpts": null
                }
            }
        }
    }
]

@BenTheElder
Copy link
Member

The error field of inspecting the container has the issue.

microsoft/WSL#4189 (comment)

docker/for-linux#219

@purplezimmermann
Copy link
Author

Mounting cgroup indeed solved this issue for me :)

And I got a lot farther... Until...

> kind create cluster -v 1 --retain
Creating cluster "kind" ...
 • Ensuring node image (kindest/node:v1.19.1) �  ...
DEBUG: docker/images.go:58] Image: kindest/node:v1.19.1@sha256:98cf5288864662e37115e362b23e4369c8c4a408f99cbc06e58ac30ddc721600 present locally
 ✓ Ensuring node image (kindest/node:v1.19.1) �
 • Preparing nodes �   ...
 ✓ Preparing nodes �
 • Writing configuration �  ...
 ✓ Writing configuration �
 • Starting control-plane �️  ...
 ✓ Starting control-plane �️
 • Installing CNI �  ...
 ✓ Installing CNI �
 • Installing StorageClass �  ...
 ✓ Installing StorageClass �
ERROR: failed to create cluster: network details should only be two parts, got 1

Stack Trace:
sigs.k8s.io/kind/pkg/errors.Errorf
        C:/Users/stefanz/go/pkg/mod/sigs.k8s.io/kind@v0.9.0/pkg/errors/errors.go:33
sigs.k8s.io/kind/pkg/cluster/internal/providers/docker.(*provider).GetAPIServerEndpoint
        C:/Users/stefanz/go/pkg/mod/sigs.k8s.io/kind@v0.9.0/pkg/cluster/internal/providers/docker/provider.go:206
sigs.k8s.io/kind/pkg/cluster/internal/kubeconfig.get
        C:/Users/stefanz/go/pkg/mod/sigs.k8s.io/kind@v0.9.0/pkg/cluster/internal/kubeconfig/kubeconfig.go:95
sigs.k8s.io/kind/pkg/cluster/internal/kubeconfig.Export
        C:/Users/stefanz/go/pkg/mod/sigs.k8s.io/kind@v0.9.0/pkg/cluster/internal/kubeconfig/kubeconfig.go:36
sigs.k8s.io/kind/pkg/cluster/internal/create.Cluster
        C:/Users/stefanz/go/pkg/mod/sigs.k8s.io/kind@v0.9.0/pkg/cluster/internal/create/create.go:164
sigs.k8s.io/kind/pkg/cluster.(*Provider).Create
        C:/Users/stefanz/go/pkg/mod/sigs.k8s.io/kind@v0.9.0/pkg/cluster/provider.go:143
sigs.k8s.io/kind/pkg/cmd/kind/create/cluster.runE
        C:/Users/stefanz/go/pkg/mod/sigs.k8s.io/kind@v0.9.0/pkg/cmd/kind/create/cluster/createcluster.go:80
sigs.k8s.io/kind/pkg/cmd/kind/create/cluster.NewCommand.func1
        C:/Users/stefanz/go/pkg/mod/sigs.k8s.io/kind@v0.9.0/pkg/cmd/kind/create/cluster/createcluster.go:55
github.com/spf13/cobra.(*Command).execute
        C:/Users/stefanz/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:842
github.com/spf13/cobra.(*Command).ExecuteC
        C:/Users/stefanz/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950
github.com/spf13/cobra.(*Command).Execute
        C:/Users/stefanz/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
sigs.k8s.io/kind/cmd/kind/app.Run
        C:/Users/stefanz/go/pkg/mod/sigs.k8s.io/kind@v0.9.0/cmd/kind/app/main.go:53
sigs.k8s.io/kind/cmd/kind/app.Main
        C:/Users/stefanz/go/pkg/mod/sigs.k8s.io/kind@v0.9.0/cmd/kind/app/main.go:35
main.main
        C:/Users/stefanz/go/pkg/mod/sigs.k8s.io/kind@v0.9.0/main.go:25
runtime.main
        c:/go/src/runtime/proc.go:204
runtime.goexit
        c:/go/src/runtime/asm_amd64.s:1374

journal.log revealed:

Oct 02 17:04:09 kind-control-plane containerd[138]: time="2020-10-02T17:04:09.453181379Z" level=error msg="failed to load cni during init, please check CRI plugin status before setting up network for pods" error="cni config load failed: no network config found in /etc/cni/net.d: cni plugin not initialized: failed to load cni config"

and afterwards repeatedly:

Oct 02 17:09:26 kind-control-plane kubelet[2307]: F1002 17:09:26.363144 2307 server.go:198] failed to load Kubelet config file /var/lib/kubelet/config.yaml, error failed to read kubelet config file "/var/lib/kubelet/config.yaml", error: open /var/lib/kubelet/config.yaml: no such file or directory


I'm currently checking issues #979 #303 for possible solutions...

@BenTheElder
Copy link
Member

Oct 02 17:04:09 kind-control-plane containerd[138]: time="2020-10-02T17:04:09.453181379Z" level=error msg="failed to load cni during init, please check CRI plugin status before setting up network for pods" error="cni config load failed: no network config found in /etc/cni/net.d: cni plugin not initialized: failed to load cni config"

and afterwards repeatedly:

Oct 02 17:09:26 kind-control-plane kubelet[2307]: F1002 17:09:26.363144 2307 server.go:198] failed to load Kubelet config file /var/lib/kubelet/config.yaml, error failed to read kubelet config file "/var/lib/kubelet/config.yaml", error: open /var/lib/kubelet/config.yaml: no such file or directory

these are both noise from kubeadm's bootstrapping process :|
I know it sounds silly to say "ignore these repeated errors" but they're acutally 100% expected from all kubeadm clusters.

@BenTheElder
Copy link
Member

"{{ with (index (index .NetworkSettings.Ports \"%d/tcp\") 0) }}{{ printf \"%%s\t%%s\" .HostIp .HostPort }}{{ end }}", common.APIServerInternalPort,

Perhaps there's an additional port going on here? cc @aojea we should probably make this section more robust.

@aojea
Copy link
Contributor

aojea commented Oct 3, 2020

/cc

@purplezimmermann
Copy link
Author

Oh :D Sorry @BenTheElder and @aojea for the hassle about (*provider).GetAPIServerEndpoint! And thanks for making me aware that a docker.bat script is a pretty inappropriate wrapper format ;)

The %s %s part is interpreted as variable syntax when the command arguments are expanded via docker.exe %* inside my docker.bat wrapper (which is ensuring a correct docker-machine-based shell environment), totally corrupting the --format value


Ok... Putting the wrapper aside... o.O And now it's getting really weird! When I let kind directly run docker.exe, then it bails out even earlier, running exactly into #1192

...
ERROR: 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

Command Output: I1004 12:49:06.480937     191 initconfiguration.go:200] loading configuration from "/kind/kubeadm.conf"
no InitConfiguration or ClusterConfiguration kind was found in the YAML file
...

And when switching back to my docker.bat wrapper and changing the provider.go code to use cmd shell style escaping syntax for the --format value...

@@ -190,7 +190,7 @@ func (p *provider) GetAPIServerEndpoint(cluster string) (string, error) {
    cmd = exec.Command(
        "docker", "inspect",
        "--format", fmt.Sprintf(
-           "{{ with (index (index .NetworkSettings.Ports \"%d/tcp\") 0) }}{{ printf \"%%s\t%%s\" .HostIp .HostPort }}{{ end }}", common.APIServerInternalPort,
+           "{{ with (index (index .NetworkSettings.Ports \"%d/tcp\") 0) }}{{ printf \"%%%%s\t%%%%s\" .HostIp .HostPort }}{{ end }}", common.APIServerInternalPort,
        ),
        n.String(),
    )

... then I get a new error afterwards:

...
ERROR: failed to create cluster: kubeadm KUBECONFIG should have one cluster, but read 0

Stack Trace:
sigs.k8s.io/kind/pkg/errors.Errorf
        sigs.k8s.io/kind/pkg/errors/errors.go:33
sigs.k8s.io/kind/pkg/cluster/internal/kubeconfig/internal/kubeconfig.checkKubeadmExpectations
        sigs.k8s.io/kind/pkg/cluster/internal/kubeconfig/internal/kubeconfig/helpers.go:32
sigs.k8s.io/kind/pkg/cluster/internal/kubeconfig/internal/kubeconfig.KINDFromRawKubeadm
        sigs.k8s.io/kind/pkg/cluster/internal/kubeconfig/internal/kubeconfig/read.go:38
sigs.k8s.io/kind/pkg/cluster/internal/kubeconfig.get
        sigs.k8s.io/kind/pkg/cluster/internal/kubeconfig/kubeconfig.go:105
...

With a little further debugging revealing that /etc/kubernetes/admin.conf is missing


Seems like I should really try a different Docker installation... :)

@aojea
Copy link
Contributor

aojea commented Oct 5, 2020

Seems like I should really try a different Docker installation... :)

I went down that road before #377, if is not one thing is going to be other 🤷 ;)

@BenTheElder
Copy link
Member

no InitConfiguration or ClusterConfiguration kind was found in the YAML file

after running with --retain, can you check what is in that file?
that should not happen, maybe the file writing mechanism isn't working??

@BenTheElder
Copy link
Member

I strongly suggest docker desktop as a known-working alternative in the meantime. As far as I know everything works fine with that.

@purplezimmermann
Copy link
Author

after running with --retain, can you check what is in that file?
that should not happen, maybe the file writing mechanism isn't working??

/kind/kubeadm.conf exists but is empty

@BenTheElder
Copy link
Member

It sounds like for some reason we're unable to pipe input ..? Is this still with your shim script?

@BenTheElder
Copy link
Member

will reopen if we find more actionable details, as it stands I don't think there's anything more to do on our end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

3 participants