Bug 1532289
Summary: | oc client crashing on status | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Matthew Robson <mrobson> |
Component: | oc | Assignee: | Maciej Szulik <maszulik> |
Status: | CLOSED ERRATA | QA Contact: | Xingxing Xia <xxia> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.6.1 | CC: | aos-bugs, jokerman, jrosenta, mmccomas |
Target Milestone: | --- | ||
Target Release: | 3.9.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause:
Empty template was causing a panic in oc status.
Consequence:
oc status was sometimes panicing.
Fix:
Properly react when pod template is nil.
Result:
oc status is working as expected.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2019-03-13 22:27:23 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Matthew Robson
2018-01-08 15:21:41 UTC
Ongoing discussion: https://github.com/openshift/origin/pull/17983 PR [1] has merged. Moving to ON_QA. 1. https://github.com/openshift/origin/pull/17983 Checked the reproducing steps with oc/OCP v3.9.0-0.19.0: $ oc new-app openshift/hello-openshift $ oc autoscale dc hello-openshift --max=4 $ oc delete dc hello-openshift $ oc status panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0xf0 pc=0x220c3a5] goroutine 1 [running]: github.com/openshift/origin/pkg/apps/graph.AddVolumeClaimEdges(0x7a95320, 0xc420a4ef30, 0x7a8c6c0, 0x7e9fac8, 0x7a8e600, 0xc420a4ef30, 0xc420a4ef60, 0xc420a4ef30, 0xc421170180) ... While checked with latest oc/OCP v3.9.0-0.20.0, above panic is gone, `oc status` shows: In project xxia-proj on server https://MASTER:8443 svc/myapp - 172.30.168.20 ports 8080, 8888 dc/myapp deploys (manual) Errors: * hpa/myapp is attempting to scale DeploymentConfig/myapp, which doesn't exist View details with 'oc describe <resource>/<name>' or list everything with 'oc get all'. Also checked k8s deployment and hpa, found another issue, using another bug 1534956 to track it. Please check Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:0403 |