Bug 1390140
| Summary: | dry run with output format will print extra line which broke the format | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | XiaochuanWang <xiaocwan> |
| Component: | oc | Assignee: | Juan Vallejo <jvallejo> |
| Status: | CLOSED ERRATA | QA Contact: | Xingxing Xia <xxia> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.4.0 | CC: | aos-bugs, jokerman, mmccomas, tdawson |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: Extra line of information caused invalid json/yaml output in `oc set`
Consequence: json/yaml output was no longer machine parsable
Fix: Extra line of information is now output through stderr
Result: Valid json/yaml is now printed through `oc set`
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-01-18 12:47:53 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
XiaochuanWang
2016-10-31 09:56:01 UTC
Related PR: https://github.com/openshift/origin/pull/11664 Verified on oc v3.4.0.19 with original steps: 1.# oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/deployment/dc-with-two-containers.yaml 2.# oc tag docker.io/openshift/hello-openshift xiaocwan-r/ho:latest 3.# oc get dc -o yaml > dc.yaml => update dc.yaml to use xiaocwan-r/ho:latest for the 2nd image 4. # oc set image -f ./dc.yaml dctest-2=xiaocwan-r/ho:latest --local -o yaml running in local mode... apiVersion: v1 kind: DeploymentConfig metadata: creationTimestamp: 2016-11-03T02:53:08Z ... 5. # oc set image -f ./dc.yaml dctest-2=xiaocwan-r/ho:latest --local -o yaml > out.yaml running in local mode... #cat out.yaml =>(it's a pure yaml format file without line "running in local mode...") 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-2017:0066 |