Bug 1668763
Summary: | oc rsh modifies output by inserting CRLF | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Brendan Mchugh <bmchugh> |
Component: | oc | Assignee: | Juan Vallejo <jvallejo> |
Status: | CLOSED NOTABUG | QA Contact: | Xingxing Xia <xxia> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 3.10.0 | CC: | aos-bugs, bmchugh, jokerman, mmccomas |
Target Milestone: | --- | ||
Target Release: | 4.1.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-01-24 18:07:04 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
Brendan Mchugh
2019-01-23 14:31:43 UTC
`oc rsh` attaches a tty by default. Do you still see extra chars inserted in your output after running `oc rsh --no-tty=true ...` ? This could be a possible duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1638447 Thank you for the clarification. With 'oc rsh --no-tty=true' the output matches that of the file inside the container. I will file a separate docs bug against the "bare" oc rsh usage we advise for copying the haproxy configuartion files in the customizing haproxy section of the docs as that is where this issue has come up and in the linked bz 1638447. [1] We should probably be recommending either 'oc exec' or 'oc cp' usage rather than 'oc rsh'. [1] https://docs.openshift.com/container-platform/3.10/install_config/router/customized_haproxy_router.html#obtaining-router-configuration-template > We should probably be recommending either 'oc exec' or 'oc cp' usage rather than 'oc rsh'.
Yes, I definitely agree.
Thanks for confirming `oc rsh --no-tty` matches the desired output. Closing this as NOTABUG.
|