Bug 1270685 - oc attach '-i -t' option makes the client terminal dead and cannot enter interactive mode
Summary: oc attach '-i -t' option makes the client terminal dead and cannot enter inte...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Fabiano Franz
QA Contact: Wei Sun
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-12 06:51 UTC by Xingxing Xia
Modified: 2016-01-05 03:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-23 21:12:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Xingxing Xia 2015-10-12 06:51:52 UTC
Description of problem:
oc attach '-i -t' option makes the client terminal dead and cannot enter interactive mode

Version-Release number of selected component (if applicable):
openshift/oc v1.0.6-519-g86b63be
kubernetes v1.1.0-alpha.1-653-g86b4e77

How reproducible:
Always

Steps to Reproduce:
1. Start openshift
2. oc login, create new project, and then create a pod:
$ oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/pods/pod_with_two_containers.json
3. Wait the pod to be running
$ oc get pod
4. Check oc attach:
$ oc attach doublecontainers -i -t

Actual results:
4. The client terminal is dead, you cannot even type 'Ctrl+C'. Lasting about 20 mins, the client terminal recovers, but doesn't enter interactive mode.

Expected results:
4. Should enter into interactive mode successfully.

Additional info:
'oc rsh doublecontainers' works well and can enter into the shell

Comment 1 Fabiano Franz 2015-11-02 18:31:56 UTC
Fixed by https://github.com/openshift/origin/pull/5497

Comment 2 Xingxing Xia 2015-11-04 06:52:04 UTC
Verified against version:
openshift/oc v1.0.7-239-gb5cfb09
kubernetes v1.2.0-alpha.1-1107-g4c8e6f4

The bug is fixed.
Move it to VERIFIED


Note You need to log in before you can comment on or make changes to this bug.