Summary
There was a bug within the Dashboard API where the user cluster metrics endpoints returned a 503 response and an corresponding error notification was shown within the Dashboard UI periodically (every ~10 seconds) when browsing the details view of a user cluster that was created with CNI set to none (BYO CNI mode) but no CNI was set up for the cluster manually.
As a consequence the API error rate limit increased, eventually triggering the KubermaticAPITooManyErrors alert.
(The description of the PR provides screenshots illustrating all of that.)
The unavailability is of the metrics endpoints is actually expected in that case as long as the user didn't set up a CNI provider herself.
Therefore the fix was to let the metrics endpoint return a 200 status with empty metrics in that case.
The goal of this ticket is to verify that the fix works as expected.
Testing scope:
Related:
Type of Testing
Prerequisites
Environment:
Test Scenarios
Edge Cases & Boundary Conditions
Screenshots / Attachments
Acceptance Criteria
Notes
Test Environment
- UI Version:
- API Version:
- K8s Version:
- Provider:
- Browser & OS:
- Domain:
Summary
There was a bug within the Dashboard API where the user cluster metrics endpoints returned a 503 response and an corresponding error notification was shown within the Dashboard UI periodically (every ~10 seconds) when browsing the details view of a user cluster that was created with CNI set to
none(BYO CNI mode) but no CNI was set up for the cluster manually.As a consequence the API error rate limit increased, eventually triggering the KubermaticAPITooManyErrors alert.
(The description of the PR provides screenshots illustrating all of that.)
The unavailability is of the metrics endpoints is actually expected in that case as long as the user didn't set up a CNI provider herself.
Therefore the fix was to let the metrics endpoint return a 200 status with empty metrics in that case.
The goal of this ticket is to verify that the fix works as expected.
Testing scope:
Related:
Type of Testing
Prerequisites
Environment:
Test Scenarios
noneas CNI provider).sum(rate(http_requests_total{app_kubernetes_io_name="kubermatic-api",code=~"5.."}[5m]))) can be observed within prometheus (for comparison, see screenshot within PR description).Edge Cases & Boundary Conditions
Screenshots / Attachments
Acceptance Criteria
Notes
Test Environment