[BUG] Filter Steve WebSocket errors. #40627
Labels
area/scalability
10k or bust
kind/bug
Issues that are defects reported by users or that we know have reached a real release
priority/1
team/frameworks
the team that is responsible for frameworks, projects, webhook, and other various areas
team/scaling
Milestone
Rancher Server Setup
Information about the Cluster
User Information
Describe the bug
Steve was updated to send errors encountered when creating events to the frontend via
resource.error
messages.Some of these errors are expected and harmless and thus should be suppressed and not sent to the frontend.
clusters.provisioning.cattle.io "<resource_name" not found
.These errors are caused by steve attempting to stream information about related resources that may or may not still exist.
If the resource does not exist the message should be suppressed. Steve Code
unable to decode an event from the watch stream: http2: response body closed
These messages are sent when Steve closes the WebSocket via context cancelation. Resulting in the underlying k8s decoder for the watch command failing to read a valid object. apimachinery already checks for some of these types of error messages here, but does not handle this one since it is specific to the watch command
Related to: [BUG] Creating/deleting management resources cause resources to be unsubscribed #40558
To Reproduce
v1/subscribe
Result
Users observe the above error messages.
Expected Result
users observe new resource stop and start messages
Screenshots
![image](https://user-images.githubusercontent.com/18697775/219061613-7b18a7d1-9433-43eb-92bc-4ddae9c1ffa6.png)
Additional context
The text was updated successfully, but these errors were encountered: