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

Task 'Get token from master' fails on-prem when Calico plugin is used #1169

Closed
to-bar opened this issue Apr 16, 2020 · 0 comments · Fixed by #1178
Closed

Task 'Get token from master' fails on-prem when Calico plugin is used #1169

to-bar opened this issue Apr 16, 2020 · 0 comments · Fixed by #1178

Comments

@to-bar
Copy link
Contributor

to-bar commented Apr 16, 2020

Env:
Hyper-V VMs (RHEL 7.6)

Kubelet is running but with errors and kube API is not available:

failed to list bootstrap tokens: Get https://192.168.10.11:6443/api/v1/namespaces/kube-system/secrets?fieldSelector=type%3Dbootstrap.kubernetes.io%2Ftoken: dial tcp 192.168.10.11:6443: connect: connection refused

journalctl -u kubelet:

Apr 16 11:06:12 vm1 kubelet[62595]: W0416 11:06:12.758029   62595 driver-call.go:149] FlexVolume: driver call failed: executable: /usr/libexec/kubernetes/kubelet-plugins/volume/exec/nodeagent~uds/uds, args: [init], error: fork/exec /usr/libexec/kubernetes/kubelet-plugins/volume/exec/nodeagent~uds/uds: no such file or directory, output: ""
Apr 16 11:06:12 vm1 kubelet[62595]: E0416 11:06:12.758046   62595 plugins.go:732] Error dynamically probing plugins: Error creating Flexvolume plugin from directory nodeagent~uds, skipping. Error: unexpected end of JSON input
Apr 16 11:06:12 vm1 kubelet[62595]: E0416 11:06:12.758164   62595 driver-call.go:266] Failed to unmarshal output for command: init, output: "", error: unexpected end of JSON input
[...]
Apr 16 11:06:12 vm1 kubelet[62595]: W0416 11:06:12.758170   62595 cni.go:237] Unable to update cni config: no networks found in /etc/cni/net.d
[...]
Apr 16 11:06:12 vm1 kubelet[62595]: E0416 11:06:12.824004   62595 reflector.go:153] object-"kube-system"/"calico-node-token-qkm9r": Failed to list *v1.Secret: Get https://192.168.10.11:6443/api/v1/namespaces/kube-system/secrets?fieldSelecApr 16 11:06:12 vm1 kubelet[62595]: E0416 11:06:12.824641   62595 kubelet_node_status.go:402] Error updating node status, will retry: error getting node "vm1": Get https://192.168.10.11:6443/api/v1/nodes/vm1?resourceVersion=0&timeout=10s:Apr 16 11:06:12 vm1 kubelet[62595]: E0416 11:06:12.824766   62595 kubelet_node_status.go:402] Error updating node status, will retry: error getting node "vm1": Get https://192.168.10.11:6443/api/v1/nodes/vm1?timeout=10s: dial tcp 192.168.Apr 16 11:06:12 vm1 kubelet[62595]: E0416 11:06:12.824884   62595 kubelet_node_status.go:402] Error updating node status, will retry: error getting node "vm1": Get https://192.168.10.11:6443/api/v1/nodes/vm1?timeout=10s: dial tcp 192.168.Apr 16 11:06:12 vm1 kubelet[62595]: E0416 11:06:12.824967   62595 kubelet_node_status.go:402] Error updating node status, will retry: error getting node "vm1": Get https://192.168.10.11:6443/api/v1/nodes/vm1?timeout=10s: dial tcp 192.168.Apr 16 11:06:12 vm1 kubelet[62595]: E0416 11:06:12.825042   62595 kubelet_node_status.go:402] Error updating node status, will retry: error getting node "vm1": Get https://192.168.10.11:6443/api/v1/nodes/vm1?timeout=10s: dial tcp 192.168.Apr 16 11:06:12 vm1 kubelet[62595]: E0416 11:06:12.825047   62595 kubelet_node_status.go:389] Unable to update node status: update node status exceeds retry count
@to-bar to-bar self-assigned this Apr 16, 2020
@to-bar to-bar changed the title Task 'Get token from master' fails on-prem when calico plugin is used Task 'Get token from master' fails on-prem when Calico plugin is used Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant