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

[Bug] member cluster connect failed cause to kubecube startup failure #18

Closed
weilaaa opened this issue Aug 9, 2021 · 1 comment · Fixed by #32
Closed

[Bug] member cluster connect failed cause to kubecube startup failure #18

weilaaa opened this issue Aug 9, 2021 · 1 comment · Fixed by #32
Assignees
Labels
bug Something isn't working

Comments

@weilaaa
Copy link
Member

weilaaa commented Aug 9, 2021

Describe the bug

member cluster connect failed cause to kubecube startup failure

2021-08-09T10:34:48.179+0800	error	kubernetes/kubernetes.go:81	problem new k8s client: Get "https://10.173.32.130:6443/api?timeout=32s": dial tcp 10.173.32.130:6443: connect: no route to host
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x160106e]

goroutine 1034 [running]:
github.com/kubecube-io/kubecube/pkg/clients/kubernetes.NewClientFor.func1(0xc000df1280, 0x1ea3930, 0xc001c9e1c0)
	/workspace/pkg/clients/kubernetes/kubernetes.go:102 +0x2e
created by github.com/kubecube-io/kubecube/pkg/clients/kubernetes.NewClientFor
	/workspace/pkg/clients/kubernetes/kubernetes.go:101 +0x252

To Reproduce
Steps to reproduce the behavior:

  1. teardown the member cluster
  2. restart kubecube pod

Expected behavior
It's supposed to setting the status of cluster to abnormal until member cluster reconnect kubecube meanwhile refresh InternalCluster

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@zhujf1989
Copy link
Contributor

need to be fixed

@zhujf1989 zhujf1989 assigned weilaaa and unassigned zhujf1989 Aug 10, 2021
@weilaaa weilaaa added wontfix This will not be worked on bug Something isn't working and removed wontfix This will not be worked on labels Aug 16, 2021
@weilaaa weilaaa linked a pull request Oct 13, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants