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: runtime error: invalid memory address or nil pointer dereference #508

Closed
ns-rlewkowicz opened this issue Sep 19, 2023 · 2 comments
Closed

Comments

@ns-rlewkowicz
Copy link

ns-rlewkowicz commented Sep 19, 2023

This all worked great on minikube. Moving to a more productionalized cluster it's all falling apart and very difficult to work with.

DiscoverSriovDevices() spits out 2 lines (should be more) then spews this

E0919 13:55:29.535370 1515138 writer.go:78] RunOnce(): first writing to node status failed: unable to update node <nil>: Timed out trying to fetch node knode01.foo.bar.baz.com: sriovnetworknodestates.sriovnetwork.openshift.io "knode01.foo.bar.baz.com" not found

Finally crashing:

I0919 13:55:29.535422 1515138 writer.go:208] writeCheckpointFile(): try to decode the checkpoint file
I0919 13:55:29.535442 1515138 writer.go:211] writeCheckpointFile(): write checkpoint file
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x19cf1bf]

goroutine 1 [running]:
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*NodeStateStatusWriter).writeCheckpointFile(0xc00089afc0?, 0x0, {0x1eca779?, 0x32?})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/writer.go:218 +0x2bf
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*NodeStateStatusWriter).RunOnce(0xc00089afc0, {0x1eca779, 0x9}, 0x0)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/writer.go:80 +0x30c
main.runStartCmd(0x314db80?, {0x1ec3d5e?, 0x0?, 0x0?})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/cmd/sriov-network-config-daemon/start.go:191 +0xad3
github.com/spf13/cobra.(*Command).execute(0x314db80, {0x319b538, 0x0, 0x0})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/github.com/spf13/cobra/command.go:920 +0x847
github.com/spf13/cobra.(*Command).ExecuteC(0x314d5c0)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/github.com/spf13/cobra/command.go:1044 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/github.com/spf13/cobra/command.go:968
main.main()
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/cmd/sriov-network-config-daemon/main.go:42 +0x25
@zeeke
Copy link
Member

zeeke commented Sep 25, 2023

It seems like the operator is not able to create the SriovNetworkNodeState for the node knode01.foo.bar.baz.com. Can you provide the operator logs?

@SchSeba
Copy link
Collaborator

SchSeba commented Aug 19, 2024

closing this one

@SchSeba SchSeba closed this as completed Aug 19, 2024
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

3 participants