Bug 1708280
Summary: | oc get panics when fed empty list and -o=name|json|yaml|?? | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Justin Pierce <jupierce> |
Component: | oc | Assignee: | Maciej Szulik <maszulik> |
Status: | CLOSED ERRATA | QA Contact: | zhou ying <yinzhou> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.1.0 | CC: | aos-bugs, gblomqui, jokerman, mmccomas, xxia |
Target Milestone: | --- | ||
Target Release: | 4.2.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause:
Empty result list wasn't properly handled.
Consequence:
Invoking oc get with empty list would cause a panic.
Fix:
Properly handle the case with empty list.
Result:
oc get should not panic when dealing with empty list, but return a reasonable information about the list being empty.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2019-10-16 06:28:42 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
Justin Pierce
2019-05-09 14:07:36 UTC
This is now addressed in: - https://github.com/kubernetes/kubernetes/pull/77681 - https://github.com/openshift/kubernetes/pull/75 I'll open oc bump once the latter PR merges. Merged in https://github.com/openshift/oc/pull/63 moving to qa. Verified in oc extracted from: oc adm release extract --command=oc registry.svc.ci.openshift.org/ocp/release:4.2.0-0.nightly-2019-08-21-040043 No panic now. 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:2922 |