rancher / dashboard

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

Rancher UI RKE1 Config page not rendering correctly #11193

Open firefhtr opened 3 months ago

firefhtr commented 3 months ago

Setup

Describe the bug When trying to update/change the configuration of RKE1 cluster, the page does not render properly. To Reproduce Create an RKE1 cluster, then go back in to change configurations Result The page does not render properly, although is functional

Expected Result The page to render as it did before in 2.8.3 Screenshots image Additional context Logged in as both admin user and as a restricted admin user

jtrewartha commented 3 months ago

I have had the same behavior in Rancher 2.8.2 ever since I installed it, multiple chrome versions have been updated since, and no extensions are installed. Chrome version 124.0.6367.93 (Official Build) (arm64)

Screenshot 2024-06-07 at 10 47 19 AM

Reloading Iframe does not change behavior. Consistent in incognito.

Same behavior in firefox 126.0.1

Screenshot 2024-06-07 at 10 49 31 AM

Here are the developer tab errors

momesgin commented 2 months ago

It randomly happened in my local env(2.9-head):

Image

Image

Image

Image

momesgin commented 2 months ago

places where we should look at,

Dashboard: shell/edit/provisioning.cattle.io.cluster/index.vue => this.loadStylesheet(cssUrl, ...

UI: lib/shared/addon/components/cru-cluster/component.js => loadStylesheet(cssUrl, ... lib/shared/addon/utils/load-script.js => document.getElementsByTagName('HEAD')[0].appendChild(link);

nwmac commented 2 months ago

The issue appears to be network issues - the css resources are not loading.

This does not appear to be a regression, since this is reported in earlier versions than 2.9.

@gaktive I'd suggest we push this to 2.9.next1

nwmac commented 2 months ago

I tried myself on a fresh 2.9 system to reproduce this with a newly deployed downstream RKE1 cluster, but could not, so may be hard to reproduce.

nwmac commented 2 weeks ago

.. also note the example from Mo is related to a node drivers with custom CSS - there may be a backend issue around that.

richard-cox commented 2 weeks ago

Internal data points

In a 2.9 build or or 2.8.6 i couldn't see A.css load

HoustonDad commented 2 days ago

I am also seeing this, in multiple places in the Rancher UI, v2.8.5 from Community

Cluster Management -> Create -> RKE1 Both Harvester and Custom driver pages fails to load the CSS. I get 404s in the browser tools when hitting '/assets/A.css?2.8-dev.

jtrewartha commented 2 days ago

I have consistently had this problem since 2.8.2 on any browser / computer I attempt to use for cluster management. Cluster is 120 days old and still consistently showing the bad behavior. I tried reinstalling rancher 2-3 times when the cluster was first built to get rid of the problem and re-provisioned the node but no change in the UI behavior.

richard-cox commented 2 days ago

We have had real trouble reproducing this and therefore need as much information as possible fro comments.

Please include

If you are internal to SUSE, please supply a HAR file to our UI channel or DM me.

HoustonDad commented 2 days ago

Details from my homelab failure:

Browser type, version and installed extensions I tried Chrome and Firefox on two different systems, same problems. Also tried Private Browsers, same issues. Only extension on FF is 1Pass I also tried Safari (first time I've used it on this laptop), same issue. No extenstions

Network Information (anything between browser and Rancher, for example corporate proxy or load balancers) No 'weird' network shenanigans on my side. This rancher is hosted on 4xRKE2 nodes (3 servers, 1 worker) running in Proxmox on Ubuntu 22.

Steps to reproduce, specifically what page and how the user reached it.

Does the error happen when refreshing on the affected page? Every time, hard refresh or not (ctrl+shift+r)