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

CLI Option --cleanup-config Is Not Working Correctly #1649

Closed
aauren opened this issue Apr 20, 2024 · 0 comments · Fixed by #1650
Closed

CLI Option --cleanup-config Is Not Working Correctly #1649

aauren opened this issue Apr 20, 2024 · 0 comments · Fixed by #1650
Labels

Comments

@aauren
Copy link
Collaborator

aauren commented Apr 20, 2024

What happened?
@vladimirtiukhtin reported the following here: #1617 (comment)

Unrelated to the subj, but might be worth to look at

# kube-router --cleanup-config
I0419 08:38:35.287507  288326 network_policy_controller.go:713] Cleaning up NetworkPolicyController configurations...
I0419 08:38:35.287552  288326 network_policy_controller.go:746] Successfully cleaned the NetworkPolicyController configurations done by kube-router
I0419 08:38:35.287575  288326 network_services_controller.go:1755] Cleaning up NetworkServiceController configurations...
I0419 08:38:35.289694  288326 network_services_controller.go:1762] ipvs definitions don't have names associated with them for checking, during cleanup we assume that we own all of them and delete all ipvs definitions
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x98 pc=0x180e7d2]

goroutine 1 [running]:
github.com/cloudnativelabs/kube-router/v2/pkg/controllers/proxy.(*NetworkServicesController).deleteHairpinIptablesRules(0xc000628010?, {0x2262d11?, 0x0?})
	/home/runner/work/kube-router/kube-router/pkg/controllers/proxy/network_services_controller.go:1436 +0x52
github.com/cloudnativelabs/kube-router/v2/pkg/controllers/proxy.(*NetworkServicesController).Cleanup(0xc00061f8b0?)
	/home/runner/work/kube-router/kube-router/pkg/controllers/proxy/network_services_controller.go:1779 +0x32b
github.com/cloudnativelabs/kube-router/v2/pkg/cmd.CleanupConfigAndExit()
	/home/runner/work/kube-router/kube-router/pkg/cmd/kube-router.go:71 +0x85
main.Main()
	/home/runner/work/kube-router/kube-router/cmd/kube-router/kube-router.go:65 +0x406
main.main()
	/home/runner/work/kube-router/kube-router/cmd/kube-router/kube-router.go:21 +0x13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant