rancher / dashboard

The Rancher UI
https://rancher.com
Apache License 2.0
463 stars 261 forks source link

Load Harvester UI extension on Rancher 2.10 shows temp error #12592

Open a110605 opened 1 week ago

a110605 commented 1 week ago

SURE-9199 (but base item is SURE-9177, which is already closed)

Setup

Describe the bug On Rancher 2.10, after setup harvester ui extension repo in App Repository, click Install harvester ui extension shows error.

To Reproduce

  1. Setup a Rancher-2.10 (master-head)
  2. In local -> App Repository -> Create a harvester repo with
  3. Go to extension page, click install harvester ui extension.
  4. Click reload on top right corner.
  5. The ui extension shows error.

Result The harvester ui extension shows below error after click Reload. But refresh the page again. The error dismiss.

Failed to load script from 'https://localhost:8005/v1/uiplugins/harvester/1.0.0/plugin/harvester-1.0.0.umd.min.js'\n 

Expected Result No error ocurred after install harvester ui extension

Screenshots

Screenshot 2024-11-11 at 11 13 14 AM

Additional context

Ref: https://github.com/rancher/dashboard/blob/702bb57b237f253ede0946fb06de70fc9de56610/shell/plugins/plugin.js#L79

a110605 commented 1 week ago

Same error happend when fresh installing large-extension v0.2.1, but v0.2.2 is fine.

Screenshot 2024-11-13 at 4 01 23 PM
torchiaf commented 1 week ago

Maybe, we can mitigate the issue on the UI until the timing issue is fixed in the backend: https://github.com/rancher/dashboard/commit/e608a2ea947cc91b8fb3498c45feb45247a293eb

a110605 commented 1 week ago

Related to harvester ui extension size 22 MB is larger than rancher plugin default 20 MB cache size.

https://jira.suse.com/browse/SURE-9199 is resolving the root cause from backend and may need some update in rancher UI to check new extension installation status.

Ref: https://github.com/rancher/rancher/pull/47565