-
Notifications
You must be signed in to change notification settings - Fork 545
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
"Metrics are generated for OLM managed resources Given an OperatorGroup that supports all namespaces when a CSV is created when the OLM pod restarts CSV metric is preserved" #2441
Comments
Link to an action run that contains this failed test: https://github.com/operator-framework/operator-lifecycle-manager/runs/4154202639?check_suite_focus=true. |
Ran into this error in #2438. |
Note: last time we had debugged this failure, it appears to be a problem with the actual test assertions being made vs. functionality that isn't working correctly in OLM. We may need to update the test logic for checking when a deployment is considered "ready" after recycling the catalog-operator to test this behavior as there may be inadequate checks for readiness, leading to the test code checking for metric presence before the new catalog-operator pod has established a metrics endpoint, leading to false positives. |
It looks like there's already an existing issue for this that didn't come up when I had search for it (and I didn't link it properly in the overall CI tracking issue): #2390 (comment). Going to close out the pre-existing one, as this one now has more context available and action runs associated with the error. |
Copy-pasting that issue's description to consolidate issues: #2216 had fixed a bug where the csv_succeeded was lost between deployment pod restarts. In those changes, a new metric e2e test was created that restarts (e.g. scales down/scales back up) to test whether the metric was retained after pod restarts: When("the OLM pod restarts", func() {
BeforeEach(func() {
restartDeploymentWithLabel(c, "app=olm-operator")
})
It("CSV metric is preserved", func() {
Expect(getMetricsFromPod(c, getPodWithLabel(c, "app=olm-operator"))).To(
ContainElement(LikeMetric(WithFamily("csv_succeeded"), WithName(csv.Name), WithValue(1))),
)
})
}) It looks like the |
It looks like I can't assign @akihikokuroda to this ticket for whatever reason - #2530 is the PR attempting to fix this e2e flake. |
The text was updated successfully, but these errors were encountered: