Skip to content

CCM panic when starts #213

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

Closed
jhorwit2 opened this issue Jul 9, 2018 · 1 comment
Closed

CCM panic when starts #213

jhorwit2 opened this issue Jul 9, 2018 · 1 comment
Labels

Comments

@jhorwit2
Copy link
Member

jhorwit2 commented Jul 9, 2018

Is this a BUG REPORT or FEATURE REQUEST?

BUG

Versions

CCM Version:

0.5.0

What happened?

I0709 14:56:07.802970       1 ccm.go:133] Waiting for node informer cache to sync
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x14c9f50]

goroutine 120 [running]:
github.com/oracle/oci-cloud-controller-manager/pkg/oci.(*CloudProvider).Initialize(0xc42022e5a0, 0x25073a0, 0xc4203b90e0)
	/go/src/github.com/oracle/oci-cloud-controller-manager/pkg/oci/ccm.go:150 +0x5e0
github.com/oracle/oci-cloud-controller-manager/vendor/k8s.io/kubernetes/cmd/cloud-controller-manager/app.startControllers(0xc42039e338, 0xc4203b90e0, 0x25073a0, 0xc4203b90e0, 0x25073a0, 0xc4203b90e0, 0xc42007a480, 0x25022e0, 0xc4202eebc0, 0x2508000, ...)
	/go/src/github.com/oracle/oci-cloud-controller-manager/vendor/k8s.io/kubernetes/cmd/cloud-controller-manager/app/controllermanager.go:202 +0xc5e
github.com/oracle/oci-cloud-controller-manager/vendor/k8s.io/kubernetes/cmd/cloud-controller-manager/app.Run.func1(0xc42007a480)
	/go/src/github.com/oracle/oci-cloud-controller-manager/vendor/k8s.io/kubernetes/cmd/cloud-controller-manager/app/controllermanager.go:147 +0xc9
created by github.com/oracle/oci-cloud-controller-manager/vendor/k8s.io/client-go/tools/leaderelection.(*LeaderElector).Run
	/go/src/github.com/oracle/oci-cloud-controller-manager/vendor/k8s.io/client-go/tools/leaderelection/leaderelection.go:145 +0x92

What you expected to happen?

It to start fine :)

How to reproduce it (as minimally and precisely as possible)?

I have security list management disabled.

@jhorwit2
Copy link
Member Author

jhorwit2 commented Jul 9, 2018

https://github.com/oracle/oci-cloud-controller-manager/blob/master/pkg/oci/ccm.go#L140-L150

service informer is nil which causes an NPE on like 150 when it does .Lister()

@owainlewis owainlewis added the bug label Jul 9, 2018
l-technicore pushed a commit to l-technicore/oci-cloud-controller-manager that referenced this issue Jun 14, 2022
…m task/OKE-18609 to internal

* commit 'c41f933aa4bdb2aeca19e6f3acba3b050097f701':
  task/OKE-18609 Removed hardcoded function and race condition
ayushverma14 pushed a commit to ayushverma14/oci-cloud-controller-manager that referenced this issue Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants