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

panic: error while connecting to Kubernetes cluster #87

Open
kkaempf opened this issue Jul 21, 2022 · 0 comments
Open

panic: error while connecting to Kubernetes cluster #87

kkaempf opened this issue Jul 21, 2022 · 0 comments

Comments

@kkaempf
Copy link

kkaempf commented Jul 21, 2022

I see the following problem if there's no (resp. no reliable) network connection to the management cluster

Jul 21 07:52:21 localhost elemental-system-agent[1963]: time="2022-07-21T07:52:21Z" level=info msg="Rancher System Agent version dev (HEAD) is starting"
Jul 21 07:52:21 localhost elemental-system-agent[1963]: time="2022-07-21T07:52:21Z" level=info msg="Using directory /var/lib/elemental/agent/work for work"
Jul 21 07:52:21 localhost elemental-system-agent[1963]: time="2022-07-21T07:52:21Z" level=info msg="Starting remote watch of plans"
Jul 21 07:52:21 localhost elemental-system-agent[1963]: time="2022-07-21T07:52:21Z" level=info msg="Starting local watch of plans in /var/lib/elemental/agent/plans"
Jul 21 07:52:52 localhost elemental-system-agent[1963]: panic: error while connecting to Kubernetes cluster: Get "https://172.17.0.2/k8s/clusters/local/version": dial tcp 172.17.0.2:443: i/o timeout
Jul 21 07:52:52 localhost elemental-system-agent[1963]: goroutine 24 [running]:
Jul 21 07:52:52 localhost elemental-system-agent[1963]: github.com/rancher/system-agent/pkg/k8splan.(*watcher).start(0xc000162300, {0x18bd400?, 0xc0004a78c0})
Jul 21 07:52:52 localhost elemental-system-agent[1963]:         /home/abuild/rpmbuild/BUILD/elemental-system-agent-0.2.9+git20220713.bbb6969/pkg/k8splan/watcher.go:97 +0xa13
Jul 21 07:52:52 localhost elemental-system-agent[1963]: created by github.com/rancher/system-agent/pkg/k8splan.Watch
Jul 21 07:52:52 localhost elemental-system-agent[1963]:         /home/abuild/rpmbuild/BUILD/elemental-system-agent-0.2.9+git20220713.bbb6969/pkg/k8splan/watcher.go:58 +0x155
Jul 21 07:52:52 localhost systemd[1]: elemental-system-agent.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 21 07:52:52 localhost systemd[1]: elemental-system-agent.service: Failed with result 'exit-code'.

This is with system-agent v0.2.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants