Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cluster/Nodes status do not update automatically and needs a browser refresh #7815

Closed
sowmyav27 opened this issue Dec 28, 2022 · 8 comments · Fixed by #8224
Closed

Cluster/Nodes status do not update automatically and needs a browser refresh #7815

sowmyav27 opened this issue Dec 28, 2022 · 8 comments · Fixed by #8224
Assignees
Milestone

Comments

@sowmyav27
Copy link

sowmyav27 commented Dec 28, 2022

On 2.7-head commit id: 28a84c7

  • Deploy a cluster - k3s node driver (cluster type should not matter)
  • Clusters goes into updating state, but a refresh of the browser (Chrome browser) is required for the right state to be displayed.
  • This seems to be happening quite often and is annoying to refresh multiple times, when deploying a cluster, or deleting nodes.
@richard-cox
Copy link
Member

Linking possible related #7819

@rak-phillip rak-phillip changed the title Cluster/Nodes status do not update automatically and needs a browser refresh Cluster/Nodes status do not update automatically and needs a browser refresh Jan 11, 2023
@gaktive gaktive added size/5 Size Estimate 5 [zube]: Groomed and removed [zube]: Backlog labels Jan 11, 2023
@nwmac nwmac modified the milestones: v2.7.next1, v2.7.next2 Jan 23, 2023
@gaktive
Copy link
Member

gaktive commented Jan 24, 2023

Upon discussion with @sowmyav27, this was not the case with 2.6.x. All QA engineers are now taking into consideration that they have to reload every page when they're walking through the UI with 2.7-head.

She'll confirm via some testing and update this ticket.

@torchiaf
Copy link
Member

torchiaf commented Feb 6, 2023

Hi @sowmyav27, can you share more details on how to replicate the bug ? I am trying to create a cluster on Digital Ocean, version v1.24.9+k3s2, but I an't replicate it

@torchiaf torchiaf self-assigned this Feb 8, 2023
@torchiaf
Copy link
Member

torchiaf commented Feb 8, 2023

The issue is caused by this block of code: 281ee23 , I am working on it.
Same for #7819

@richard-cox
Copy link
Member

@torchiaf Can you provide the reliable way you reproduced the issue? That block of code handles how the dashboard reconnects the management web socket (used for resource change events) after the backend periodically closes it (every 30ish minutes). Does that align with your repo steps?

@richard-cox
Copy link
Member

Think this is the root cause

@richard-cox
Copy link
Member

This is persistently inconsistent. Findings in rancher/rancher#40558 (comment) (tl;dr at end)

@Josh-Diamond
Copy link

Ticket #7815 - Test Results - ✅

Verified w/ Docker on a single-node instance using Rancher v2.7-211409c9a689d8ee4d801ed1bce1d887b0fb4b00-head:

Scenario Test Case Result
1. Provision downstream k3s - 1 node, all roles => delete
2. Provision downstream k3s - 3 nodes, individual roles => delete
3. Provision downstream k3s - 8 nodes: 3 etcd, 2 cp, 3 wkr => delete 💹

Scenario 1 -

  1. Fresh install of rancher v2.7-head
  2. Provision a downstream AWS Node driver k3s cluster w/ a single-node, all roles
  3. Do not refresh the page, and observe accurate state and condition transitions
  4. Once active, delete the cluster
  5. Do no refresh the page, and observe the cluster successfully delete
  6. Verified - no refresh needed, state/conditions change + are displayed via UI as expected

Scenario 2 -

  1. Fresh install of rancher v2.7-head
  2. Provision a downstream AWS Node driver k3s cluster w/ 3 nodes, individual roles
  3. Do not refresh the page, and observe accurate state and condition transitions
  4. Once active, delete the cluster
  5. Do no refresh the page, and observe the cluster successfully delete
  6. Verified - no refresh needed, state/conditions change + are displayed via UI as expected

Scenario 3 -

  1. Fresh install of rancher v2.7-head
  2. Provision a downstream AWS Node driver k3s cluster w/ 8 nodes, (3 etcd, 2cp, 3 wkr)
  3. Do not refresh the page, and observe accurate state and condition transitions
  4. Once active, delete the cluster
  5. Do no refresh the page, and observe the cluster successfully delete
  6. Verified - no refresh needed, state/conditions change + are displayed via UI as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment