-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[BUG] Creating/deleting management resources cause resources to be unsubscribed #40558
Comments
For 2.7.2, UI will do a client-side workaround. @MbolotSuse to link to an existing issue to help with buffering results to the UI. |
Backend Issue for Watch buffering: #39568 |
Just tracking results. I've validated the same behaviour for fleet workspaces happens in 2.7.0 (as mentioned in the call) Similar resource messages for fleet workspaces are also seen in 2.6.9 Further testingRKE2 DO cluster. Created/Edited and navigated to cluster detail pageCreate Clusterresource.stop/start cycles: 3 Scale Poolresource.stop/start cycles: 11 Add Pool
resource.stop/start cycles: 10 Remove Poolresource.stop/start cycles: 4
Three nodes, 1 per roleAs per rancher/dashboard#7819 Create Clusterresource.stop/start cycles: 18 Scale Poolresource.stop/start cycles: 8
OtherAlso tested master vs a local build with fixes to TL;DRThere's a number of 'stale' screen content when creating an RKE2 DO cluster, adding/removing machine pools (deployments) and scaling up/down a pool (deployment). Stale content covers
I can't nail down a consistent way to reproduce these, but I've tried all of the following and still see odd errors. I've tried with ...
From what I can tell there's three causes
|
Three nodes, 1 poolAs per rancher/dashboard#7819 Create ClusterDriver: resource.stop/start cycles: n The issue is consistently replicated on Chrome/Edge browsers |
Think I've come up with three reasonable improvements for 2.7.2 for the three issues issues listed in #40558 (comment) (see rancher/dashboard#8224). As there's no decent reproduction steps anywhere it might take some playing to see if the improvements do resolve all issues. In terms of this specific issue though, as the functionality has been the same for a number of releases (including going back to 2.6) and we have something proposed to fix the linked issues, i'm going to close this. If the improvements still require more work, we may need to look into a joint fix
Something concrete that would be grand is to smother the two resource.error messages that are harmless/to be expected ( |
hi,after happen this issue, is there anyway to recover? |
@boltdog2022 The user just needs to refresh their browser. That will get the latest resource info and subscribe to changes from that revision. |
Thanks, by the way, can you have a look at my issue? I don't know how it happens and how to resolve it. |
Rancher Server Setup
1dd2af2
)User Information
Describe the bug
v1/subscribe
k8s/clusters/local/v1/subscribe
v3/subscribe
resource.stop
message (sometimes preceded byresource.error
) aka is unsubscribed. The UI then re-subscribes.I can't quite tie down the pattern of which resources cause the
resource.stop
messages, there's some findings belowTo Reproduce
Cluster Management
pageCluster Management
pageImport Existing
-->Generic
--> enter anything for theName
-->Create
Result
resource.error
andresource.stop
messagesExpected Result
resource.stop
message - aka resource subscriptions aren't droppedScreenshots
Additional context
management.cattle.io.fleetworkspace
Specific resource messages
Create -
resource.error
andresource.stop
Edit - Neither
Delete -
resource.error
andresource.stop
resource.error data
All messages
management.cattle.io.settings
Create / Edit did not cause
resource.stop
orresource.error
provisioning.cattle.io.cluster
Create -
resource.stop
but notresource.error
Delete -
resource.stop
andresource.error
resource.error data 1 (many)
resource.error data 2 (one)
namespace (via
local
cluster explorer)Create / Edit / Delete in both v1 and k8s/clusters/local/v1/subscribe show correct events, no resource.stop or resource.error
management.cattle.io.project (via
local
cluster explorer)Create -
resource.error
andresource.stop
Edit - Neither
Delete -
resource.error
andresource.stop
resource.error data 1
resource.error data 2
The text was updated successfully, but these errors were encountered: