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

SIGSEGV when master passphrase is not entered #171

Open
kvaps opened this issue Jul 14, 2022 · 0 comments
Open

SIGSEGV when master passphrase is not entered #171

kvaps opened this issue Jul 14, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@kvaps
Copy link
Member

kvaps commented Jul 14, 2022

LINSTOR is deployed via piraeus-operator without master passphrase specified in CR but it is entered manually by security officer.
There are some snapshots created on S3 using backup shipping feature.

After restart linstor-csi-driver throwing the exception:

time="2022-07-14T07:22:53Z" level=info msg="server started" address=/var/lib/csi/sockets/pluginproxy/./csi.sock linstorCSIComponent=driver nodeID=kube-master-0 provisioner=linstor.csi.linbit.com version=v0.19.1
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x135c4f3]

goroutine 61 [running]:
github.com/piraeusdatastore/linstor-csi/pkg/client.(*Linstor).snapOrBackupById(0xc000460c60, {0x190c878, 0xc0005304b0}, {0xc0004623c0, 0x2d})
	/usr/local/go/linstor-csi/pkg/client/linstor.go:1372 +0x6f3
github.com/piraeusdatastore/linstor-csi/pkg/client.(*Linstor).FindSnapByID(0x1916170?, {0x190c878?, 0xc0005304b0?}, {0xc0004623c0?, 0x0?})
	/usr/local/go/linstor-csi/pkg/client/linstor.go:1306 +0x45
github.com/piraeusdatastore/linstor-csi/pkg/driver.Driver.DeleteSnapshot({{0x190f528, 0xc000460c60}, {0x190f000, 0xc000460c60}, {0x1901848, 0xc000460c60}, {0x190e7f8, 0xc000460c60}, {0x18f8760, 0xc000460c60}, ...}, ...)
	/usr/local/go/linstor-csi/pkg/driver/driver.go:965 +0x1a3
github.com/container-storage-interface/spec/lib/go/csi._Controller_DeleteSnapshot_Handler.func1({0x190c878, 0xc0005304b0}, {0x1613920?, 0xc00045acc0})
	/go/pkg/mod/github.com/container-storage-interface/spec@v1.5.0/lib/go/csi/csi.pb.go:5838 +0x78
github.com/piraeusdatastore/linstor-csi/pkg/driver.Driver.Run.func1({0x190c878?, 0xc0005304b0?}, {0x1613920, 0xc00045acc0}, 0xc0004f4740, 0x1500020?)
	/usr/local/go/linstor-csi/pkg/driver/driver.go:1161 +0x63
github.com/container-storage-interface/spec/lib/go/csi._Controller_DeleteSnapshot_Handler({0x16bddc0?, 0xc0000f9440}, {0x190c878, 0xc0005304b0}, 0xc000475740, 0xc000476050)
	/go/pkg/mod/github.com/container-storage-interface/spec@v1.5.0/lib/go/csi/csi.pb.go:5840 +0x138
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000478000, {0x190f5e8, 0xc000102d00}, 0xc00046b440, 0xc0004610e0, 0x239db18, 0x0)
	/go/pkg/mod/google.golang.org/grpc@v1.43.0/server.go:1282 +0xccf
google.golang.org/grpc.(*Server).handleStream(0xc000478000, {0x190f5e8, 0xc000102d00}, 0xc00046b440, 0x0)
	/go/pkg/mod/google.golang.org/grpc@v1.43.0/server.go:1616 +0xa1b
google.golang.org/grpc.(*Server).serveStreams.func1.2()
	/go/pkg/mod/google.golang.org/grpc@v1.43.0/server.go:921 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
	/go/pkg/mod/google.golang.org/grpc@v1.43.0/server.go:919 +0x28a
@WanzenBug WanzenBug added the bug Something isn't working label Jul 14, 2022
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

No branches or pull requests

2 participants