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

odo describe binding crash #6420

Closed
jeffmaury opened this issue Dec 16, 2022 · 4 comments · Fixed by #6432
Closed

odo describe binding crash #6420

jeffmaury opened this issue Dec 16, 2022 · 4 comments · Fixed by #6432
Assignees
Labels
area/binding Issues or PRs related to `odo add/delete binding *` commands or Service Binding Operator kind/bug Categorizes issue or PR as related to a bug.
Milestone

Comments

@jeffmaury
Copy link
Member

/kind bug

What versions of software are you using?

Operating System: Win11Pro

Output of odo version:

odo v3.4.0 (b8662ef74)

How did you run odo exactly?

odo describe binding

Actual behavior

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x18 pc=0x187d19a]

goroutine 1 [running]:
github.com/redhat-developer/odo/pkg/binding.(*BindingClient).GetBindingsFromDevfile(0xc000823e80, {{{0xc00014e528, 0x5}, {0xc00046f3e0, 0x2d}, {0xc00046f380, 0x2d}, {0xc00029ca00, 0x1386, 0x1500}, ...}, ...}, ...)
        /builddir/build/BUILD/gocode/src/github.com/redhat-developer/odo/pkg/binding/binding.go:148 +0x3ba
github.com/redhat-developer/odo/pkg/odo/cli/describe.(*BindingOptions).runWithoutName(0xc000937bc0, {0x22924d8, 0xc0008d33e0})
        /builddir/build/BUILD/gocode/src/github.com/redhat-developer/odo/pkg/odo/cli/describe/binding.go:99 +0x105
github.com/redhat-developer/odo/pkg/odo/cli/describe.(*BindingOptions).Run(0x22924d8?, {0x22924d8?, 0xc0008d33e0?})
        /builddir/build/BUILD/gocode/src/github.com/redhat-developer/odo/pkg/odo/cli/describe/binding.go:69 +0x47
github.com/redhat-developer/odo/pkg/odo/genericclioptions.GenericRun({0x2292ee8, 0xc000937bc0}, 0xc000933400, {0x34a0428, 0x0, 0x0})
        /builddir/build/BUILD/gocode/src/github.com/redhat-developer/odo/pkg/odo/genericclioptions/runnable.go:278 +0x15cd
github.com/redhat-developer/odo/pkg/odo/cli/describe.NewCmdBinding.func1(0xc000933400?, {0x34a0428?, 0x0?, 0x0?})
        /builddir/build/BUILD/gocode/src/github.com/redhat-developer/odo/pkg/odo/cli/describe/binding.go:117 +0x38
github.com/spf13/cobra.(*Command).execute(0xc000933400, {0x34a0428, 0x0, 0x0})
        /builddir/build/BUILD/gocode/src/github.com/redhat-developer/odo/vendor/github.com/spf13/cobra/command.go:872 +0x694
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001bcf00)
        /builddir/build/BUILD/gocode/src/github.com/redhat-developer/odo/vendor/github.com/spf13/cobra/command.go:990 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
        /builddir/build/BUILD/gocode/src/github.com/redhat-developer/odo/vendor/github.com/spf13/cobra/command.go:918
github.com/spf13/cobra.(*Command).ExecuteContext(...)
        /builddir/build/BUILD/gocode/src/github.com/redhat-developer/odo/vendor/github.com/spf13/cobra/command.go:911
main.main()
        /builddir/build/BUILD/gocode/src/github.com/redhat-developer/odo/cmd/odo/odo.go:83 +0x579

Expected behavior

Binding should be listed

Any logs, error output, etc?

devfile.zip

@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Dec 16, 2022
@github-actions github-actions bot added the needs-triage Indicates an issue or PR lacks a `triage/*` and requires one. label Dec 16, 2022
@rm3l rm3l added this to odo Project Dec 16, 2022
@feloy
Copy link
Contributor

feloy commented Dec 16, 2022

More specifically, I think this error happens when no kubeconfig file has been found.

Thanks @jeffmaury for the report

@feloy feloy added needs-triage Indicates an issue or PR lacks a `triage/*` and requires one. and removed needs-triage Indicates an issue or PR lacks a `triage/*` and requires one. labels Dec 16, 2022
@jeffmaury
Copy link
Member Author

I have the kubeconfig but my Minikube cluster was stopped

@jeffmaury
Copy link
Member Author

I think @dgolovin mention being blocked in offline mode but I can figure out if he created an issue or not.

@feloy
Copy link
Contributor

feloy commented Dec 16, 2022

I think @dgolovin mention being blocked in offline mode but I can figure out if he created an issue or not.

I think @dgolovin's issue was #6379, but yes, it is very related

@feloy feloy self-assigned this Dec 21, 2022
@feloy feloy removed the needs-triage Indicates an issue or PR lacks a `triage/*` and requires one. label Dec 21, 2022
@feloy feloy moved this to In Review 👀 in odo Project Dec 21, 2022
@feloy feloy moved this from In Review 👀 to In Progress 🚧 in odo Project Dec 21, 2022
@rm3l rm3l added the area/binding Issues or PRs related to `odo add/delete binding *` commands or Service Binding Operator label Jan 3, 2023
@rm3l rm3l added this to the v3.6.0 🚀 milestone Jan 4, 2023
@feloy feloy moved this from In Progress 🚧 to In Review 👀 in odo Project Jan 6, 2023
@github-project-automation github-project-automation bot moved this from In Review 👀 to Done ✅ in odo Project Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/binding Issues or PRs related to `odo add/delete binding *` commands or Service Binding Operator kind/bug Categorizes issue or PR as related to a bug.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants