noobaa / noobaa-operator

Operator for NooBaa - object data service for hybrid and multi cloud environments :cloud: :wrench:
https://www.noobaa.io
Apache License 2.0
103 stars 101 forks source link

ocs-operator-bundle-container fails with runtime error during building #961

Closed Sheetalpamecha closed 2 years ago

Sheetalpamecha commented 2 years ago

Environment info

Running

17:16:34  + ./noobaa-operator olm csv
17:16:34  panic: runtime error: invalid memory address or nil pointer dereference
17:16:34  [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x19c2bd6]
17:16:34  
17:16:34  goroutine 1 [running]:
17:16:34  github.com/noobaa/noobaa-operator/v5/pkg/olm.GenerateCSV.func1(0xc0004a1900)
17:16:34    /remote-source/app/pkg/olm/olm.go:687 +0x3f6
17:16:34  github.com/noobaa/noobaa-operator/v5/pkg/crd.ForEachCRD(0xc000b0f4d0)
17:16:34    /remote-source/app/pkg/crd/crd.go:166 +0x49
17:16:34  github.com/noobaa/noobaa-operator/v5/pkg/olm.GenerateCSV(0xc0003cd2c0, 0x0)
17:16:34    /remote-source/app/pkg/olm/olm.go:668 +0x2ab6
17:16:34  github.com/noobaa/noobaa-operator/v5/pkg/olm.RunCSV(0xc00089f180, {0x3299ee0, 0x0, 0x0})
17:16:34    /remote-source/app/pkg/olm/olm.go:222 +0x25
17:16:34  github.com/spf13/cobra.(*Command).execute(0xc00089f180, {0x3299ee0, 0x0, 0x0})
17:16:34    /remote-source/deps/gomod/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:856 +0x5f8
17:16:34  github.com/spf13/cobra.(*Command).ExecuteC(0xc000662780)
17:16:34    /remote-source/deps/gomod/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:960 +0x3ad
17:16:34  github.com/spf13/cobra.(*Command).Execute(...)
17:16:34    /remote-source/deps/gomod/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:897
17:16:34  github.com/noobaa/noobaa-operator/v5/pkg/cli.Run()
17:16:34    /remote-source/app/pkg/cli/cli.go:57 +0x1e
17:16:34  main.main()
17:16:34    /remote-source/app/main.go:13 +0x17
17:16:34  make: *** [Makefile:110: gen-release-csv] Error 2
17:16:34  [Pipeline] }
nik-redhat commented 2 years ago

@dannyzaken probably the update in PR #960 is causing this, can you check once?