Bug 1964980

Summary: If loading dynamic plugin times out, the UI throws a syntax error
Product: OpenShift Container Platform Reporter: Tomas Jelinek <tjelinek>
Component: Management ConsoleAssignee: Jakub Hadvig <jhadvig>
Status: CLOSED DUPLICATE QA Contact: Yadan Pei <yapei>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.8CC: aos-bugs, jokerman, spadgett
Target Milestone: ---   
Target Release: ---   
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: 2021-05-26 18:35:28 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:

Description Tomas Jelinek 2021-05-26 13:24:41 UTC
Description of problem:
The timeout for loading a dynamic plugin is hardcoded 10 seconds. If the plugin does not load in this time, the UI receives an incomplete JS and fails on syntax error.

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. have a dynamic plugin which loads longer than 10 seconds
2. load the UI

Actual results:
1: The UI fails on a syntax error
2: There is no way to configure a longer timeout - e.g. no command line option while starting the bridge process to workaround the issue
3: The 10s timeout feels like a bit too small for larger production setups

Expected results:
1: The UI will log an error saying that the plugin failed to load due to a timeout
2: There is a command line option to run the bridge with a longer timeout
3: The default timeout is much longer than 10s. 

Additional info:
The timeout is in pkg/server/server.go

Comment 1 Samuel Padgett 2021-05-26 18:35:28 UTC
Looks like this is the same as bug 1964941.

*** This bug has been marked as a duplicate of bug 1964941 ***