Hide Forgot
Description of problem: when running "oc rsh" the TERM environment variable is not set and the shell works in dumb terminal mode. This causes some applications like "less" to work incorrectly which complicates troubleshooting Version-Release number of selected component (if applicable): # oc version oc v3.1.1.6-21-gcd70c35 kubernetes v1.1.0-origin-1107-g4c8e6f4 How reproducible: Always Steps to Reproduce: 1. oc rsh <pod> 2. less /path/to/log Actual results: WARNING: terminal is not fully functional scrollback does not work Expected results: less works as expected Additional info: upstream issue https://github.com/openshift/origin/issues/7424
*** Bug 1345731 has been marked as a duplicate of this bug. ***
https://github.com/kubernetes/kubernetes/pull/28289
The issue has been fixed in origin
Checked in latest Origin $ oc/openshift version openshift v1.3.0-alpha.2+b26dd1e kubernetes v1.3.0+57fb9ac etcd 2.3.0+git And in latest puddle: $ oc/openshift version openshift v3.3.0.13 kubernetes v1.3.0+57fb9ac etcd 2.3.0+git Both in Origin and OCP, bug is fixed: $ oc rsh database-1-i91xu sh-4.2$ echo $TERM xterm-256color sh-4.2$ top sh-4.2$ more /etc/bashrc Both `top` and `more` work well. ** But `oc exec` does not set TERM ** $ oc exec database-1-i91xu -it -- bash bash-4.2$ echo $TERM dumb bash-4.2$ top TERM environment variable not set.
We won't be changing `oc exec` for this
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-2016:1933