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

listing vms trows a segfault #200

Open
alsotoes opened this issue Feb 6, 2025 · 0 comments
Open

listing vms trows a segfault #200

alsotoes opened this issue Feb 6, 2025 · 0 comments

Comments

@alsotoes
Copy link

alsotoes commented Feb 6, 2025

Hi @gmeghnag
Running the following on an openshift-cnv must-gather throws the following error.

$ omc get vms -A
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x198 pc=0x3fe4a3a]

goroutine 1 [running]:
github.com/gmeghnag/omc/pkg/tablegenerator.GenerateCustomResourceTable({0x0})
/builddir/build/BUILD/omc-3.7.6/pkg/tablegenerator/tablegenerator.go:169 +0xb5a
github.com/gmeghnag/omc/cmd/get.handleObject({0x0})
/builddir/build/BUILD/omc-3.7.6/cmd/get/get.go:422 +0x114e
github.com/gmeghnag/omc/cmd/get.getNamespacedResources({0xc001b086b0, 0xf}, {0xc001b08684, 0xb}, 0xc001ec54d0)
/builddir/build/BUILD/omc-3.7.6/cmd/get/get.go:274 +0xd8d
github.com/gmeghnag/omc/cmd/get.init.func1(0xc00070fe00?, {0xc000536ea0?, 0x4?, 0x4e3c3a8?})
/builddir/build/BUILD/omc-3.7.6/cmd/get/get.go:105 +0x3cd
github.com/spf13/cobra.(*Command).execute(0x763ca40, {0xc000536e80, 0x2, 0x2})
/builddir/build/BUILD/omc-3.7.6/vendor/github.com/spf13/cobra/command.go:989 +0xa91
github.com/spf13/cobra.(*Command).ExecuteC(0x7639f20)
/builddir/build/BUILD/omc-3.7.6/vendor/github.com/spf13/cobra/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
/builddir/build/BUILD/omc-3.7.6/vendor/github.com/spf13/cobra/command.go:1041
main.main()
/builddir/build/BUILD/omc-3.7.6/main.go:24 +0x1a

///

Expected behavior will be a list of vms running, like the following.

$ omc get vms -A
NAMESPACE NAME AGE STATUS READY
default fedora-test123 53d Running True
default fedora-vm 53d Running True
default ubuntu2404 53d Running True

or this

$ omc get vms
resource type "vms" not known.

If is not yet implemented, I've already created this other issue as RFE #199

Let, me know if you need any other data.

Cheers.

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

1 participant