Description of problem: With the Web terminal Operator installed, the Dev Console allows users to create terminal instances in their cluster by clicking a button in the masthead. For regular (non-cluster-admin) users, this opens a panel that prompts the user to pick a namespace, and then creates a DevWorkspace Custom Resource that is processed by the Web Terminal Operator to start a terminal instance. However, in OpenShift 4.10, if the user deletes the CR that defines their Web Terminal, they are no longer able to start terminals, with the namespace prompt panel being stuck in a loading state. This issue is not present in OpenShift 4.9 and below (tested: 4.8.3, 4.9.0), nor is it present if the user has cluster-admin privileges. Version-Release number of selected component (if applicable): 4.10.0 How reproducible: Always Steps to Reproduce: 1. Install the Web Terminal Operator from OperatorHub 2. Login to an OpenShift 4.10 cluster as a regular user 3. Click '>_' button in masthead next to help button (may need to refresh page if operator was just installed) 4. Wait for terminal to start, type `oc delete dw terminal<tab>` to autocomplete the CR's name and delete it. Actual results: Panel enters loading state indefinitely, which persists between opening and closing it, refreshing page, clearing browser cache. Expected results: Panel should revert to initial state, prompting user to pick a project to start their terminal in. Additional info: * Nothing suspicious logged on backend console pod * Browser logs contain references to a webhook errors, however these same errors are present in OpenShift 4.8 and 4.9. (see attachment)
Created attachment 1872005 [details] Browser console logs Browser console logs for 1. Clicking masthead icon to create web terminal, selecting "wto-debugging" namespace in panel and creating a web terminal 2. Waiting for terminal to start, closing and reopening panel with running terminal 3. Deleting the terminal instance from within the terminal and encountering the bug 4. Closing and reopening the terminal panel while it's in a broken state.
Created attachment 1872006 [details] Expected flow when deleting terminal CR
Created attachment 1872007 [details] Actual state with bug -- panel stuck loading
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 (Important: OpenShift Container Platform 4.11.0 bug fix and security update), 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/RHSA-2022:5069