Bug 1506115

Summary: [starter-ca-central-1] web console terminal content is not cleared on re-connect
Product: OpenShift Container Platform Reporter: Jiří Fiala <jfiala>
Component: Management ConsoleAssignee: Jessica Forrester <jforrest>
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.7.0CC: aos-bugs, jokerman, mmccomas, rcwwilliams07, yapei
Target Milestone: ---   
Target Release: 3.7.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-08 13:10:14 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:
Attachments:
Description Flags
disconnected terminal
none
re-connected terminal none

Description Jiří Fiala 2017-10-25 07:42:45 UTC
Created attachment 1343111 [details]
disconnected terminal

Description of problem:
The terminal content in the web console is not cleared properly, when user re-connects the session using the "refresh" gray button in the upper right corner of the terminal. Once re-connected, user is typing "over" the old content from the previous session.

Version-Release number of selected component (if applicable):
This was induced on the starter-ca-central OSO cluster w/ Mozilla Firefox 56.0
OpenShift Master:
    v3.7.0-0.143.7 (online version 3.6.0.32.1)
Kubernetes Master:
    v1.7.0+80709908fd 

How reproducible:
Consistently reproducible

Steps to Reproduce:
1. Navigate to the Terminal tab of a running pod
2. Run a few commands
3. Disconnect the terminal by pressing Ctrl+D or using "exit"
4. Reconnect the terminal without navigating away, by clicking the grey "refresh" button in the upper right corner of the disconnected terminal.

Actual results:
The terminal is re-connected, the cursor and prompt is rendered on the first line (effectively deleting only the first line of the old content), over the old content from the previous session.

Expected results:
The old content is to be cleared and the prompt is to be rendered in a blank terminal.

Additional info:
See attached screenshots

Comment 1 Jiří Fiala 2017-10-25 07:43:28 UTC
Created attachment 1343112 [details]
re-connected terminal

Comment 2 Jessica Forrester 2017-10-30 19:02:00 UTC
https://github.com/openshift/origin-web-console/pull/2398

Comment 4 Yadan Pei 2017-11-01 03:18:30 UTC
Will verify the bug when cluster upgraded, currently starter-ca-central-1 is still v3.7.0-0.143.7 (online version 3.6.0.32.1)

Comment 5 Yadan Pei 2017-11-03 05:50:38 UTC
Checked against OCP clusters on v3.7.0-0.190.0 with Firefox 56 & Chrome 60

The issue was not reproduced, move to VERIFIED

Comment 6 Jessica Forrester 2017-11-08 13:10:14 UTC
Bug should be fixed in online after the next upgrade.