Bug 1698644 - oc explain explodes
Summary: oc explain explodes
Keywords:
Status: CLOSED DUPLICATE of bug 1688638
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.1.0
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-10 20:51 UTC by Eric Rich
Modified: 2019-04-12 10:08 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-12 10:08:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Eric Rich 2019-04-10 20:51:35 UTC
Description of problem:

$ oc explain ingresscontroller.operator
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x172c620]

goroutine 1 [running]:
github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/kubectl/explain.PrintModel(0x7ffe4bd9ba26, 0x8, 0xc423cc1600, 0x0, 0x0, 0x0, 0xc4219991e0, 0x15, 0xc4219b4d02, 0x2, ...)
	/builddir/build/BUILD/atomic-openshift-git-0.3953cf2/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/kubectl/explain/model_printer.go:146 +0xa0
github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/kubectl/explain.PrintModelDescription(0xc42192c810, 0x1, 0x1, 0x2cc9c00, 0xc4200ea008, 0x0, 0x0, 0xc4219991e0, 0x15, 0xc4219b4d02, ...)
	/builddir/build/BUILD/atomic-openshift-git-0.3953cf2/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/kubectl/explain/explain.go:68 +0x178
github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/kubectl/cmd.(*ExplainOptions).Run(0xc420351880, 0xc420f628c0, 0x1, 0x1, 0x0, 0x0)
	/builddir/build/BUILD/atomic-openshift-git-0.3953cf2/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/explain.go:157 +0x27d
github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/kubectl/cmd.NewCmdExplain.func1(0xc4211e2000, 0xc420f628c0, 0x1, 0x1)
	/builddir/build/BUILD/atomic-openshift-git-0.3953cf2/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/explain.go:85 +0xd7
github.com/openshift/origin/vendor/github.com/spf13/cobra.(*Command).execute(0xc4211e2000, 0xc420f62880, 0x1, 0x1, 0xc4211e2000, 0xc420f62880)
	/builddir/build/BUILD/atomic-openshift-git-0.3953cf2/_output/local/go/src/github.com/openshift/origin/vendor/github.com/spf13/cobra/command.go:760 +0x2c1
github.com/openshift/origin/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc4211bc500, 0xc420cdfdf0, 0x131e739, 0xc42014a0e0)
	/builddir/build/BUILD/atomic-openshift-git-0.3953cf2/_output/local/go/src/github.com/openshift/origin/vendor/github.com/spf13/cobra/command.go:846 +0x30a
github.com/openshift/origin/vendor/github.com/spf13/cobra.(*Command).Execute(0xc4211bc500, 0x2, 0xc4211bc500)
	/builddir/build/BUILD/atomic-openshift-git-0.3953cf2/_output/local/go/src/github.com/openshift/origin/vendor/github.com/spf13/cobra/command.go:794 +0x2b
main.main()
	/builddir/build/BUILD/atomic-openshift-git-0.3953cf2/_output/local/go/src/github.com/openshift/origin/cmd/oc/oc.go:68 +0x554

Version-Release number of selected component (if applicable):

$ oc get clusterversion 
NAME      VERSION     AVAILABLE   PROGRESSING   SINCE     STATUS
version   4.0.0-0.9   True        False         29h       Cluster version is 4.0.0-0.9

$ oc version
oc v4.0.0-0.79.0
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://api.wonderland.rhcee.support:6443
kubernetes v1.12.4+0ba401e



How reproducible: 100% of the time 


Steps to Reproduce:
1. oc explain ingresscontroller.operator

Actual results: SegFaults 

Expected results: Should explain the operator object


Additional info:

Comment 2 Maciej Szulik 2019-04-12 10:08:04 UTC
This was fixed in newer versions of oc and specific work related to which CRDs are missing in explain is tracked in https://bugzilla.redhat.com/show_bug.cgi?id=1688638.

*** This bug has been marked as a duplicate of bug 1688638 ***


Note You need to log in before you can comment on or make changes to this bug.