Bug 1883601

Summary: re-creating terminal after deleting workspace doesn't immediately restart
Product: OpenShift Container Platform Reporter: Sahil Budhwar <sbudhwar>
Component: Dev ConsoleAssignee: Sahil Budhwar <sbudhwar>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.6CC: aos-bugs, nmukherj, sleshche, spathak
Target Milestone: ---   
Target Release: 4.6.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: 2020-10-27 16:46:20 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
re-creating terminal after deleting workspace restarts immediately none

Description Sahil Budhwar 2020-09-29 16:43:38 UTC
Description of problem:
A user can get into a situation where the terminal UI isn't updating and the user continues to click the submit button resulting in many workspace resources being created.

Prerequisites (if any, like setup, operators/versions):
Create a self-provisioner user for testing.

Install the che-workspace-controller by cloning the git repo and running

 

export WEBHOOK_ENABLED=true
export REGISTRY_ENABLED=false
make deploy
 

Steps to Reproduce
initialize the web terminal in a namespace of choice
using the search page find the DevWorkspace resources
with the terminal open, delete the workspace resource (it may not delete but will be marked for deletion which is a different issue)
when the terminal goes back to the form view to choose a namespace to create the workspace in, simply use the same namespace and click submit
Actual results:
The form reloads again and in the search view you'll notice that a new workspace resource was created.

Expected results:
The terminal should begin loading, showing the black window similar to when the user closes and reopens the terminal.

Reproducibility (Always/Intermittent/Only Once):
always

Build Details:
4.6

testing this pr on cluster bot: https://github.com/openshift/console/pull/5687

Additional info:

Comment 3 spathak@redhat.com 2020-10-12 15:04:27 UTC
Created attachment 1720983 [details]
re-creating terminal after deleting workspace restarts immediately

Comment 4 spathak@redhat.com 2020-10-12 15:09:01 UTC
Verified on build version: 4.6.0-0.nightly-2020-10-03-051134
Browser version: chrome 84

Comment 6 errata-xmlrpc 2020-10-27 16:46:20 UTC
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 (OpenShift Container Platform 4.6 GA Images), 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-2020:4196

Comment 7 Andrew Ballantyne 2020-10-28 15:25:14 UTC
*** Bug 1873435 has been marked as a duplicate of this bug. ***