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
[release-v0.18] Fix VirtualMachineCRCErrors not stop firing #907
[release-v0.18] Fix VirtualMachineCRCErrors not stop firing #907
Conversation
The controller keeps reporting old metric values even after the VM is deleted. This commit updates the metric name and labels so that we can set up the metric value to 0, and no longer trigger the alert on VM deletion Signed-off-by: João Vilaça <jvilaca@redhat.com>
Signed-off-by: João Vilaça <jvilaca@redhat.com>
Signed-off-by: João Vilaça <jvilaca@redhat.com>
@machadovilaca Looks like the e2e test you introduced with this PR is failing? |
Signed-off-by: João Vilaça <jvilaca@redhat.com>
Quality Gate failedFailed conditions |
@@ -287,7 +286,7 @@ var _ = Describe("Prometheus Alerts", func() { | |||
|
|||
Eventually(func(g Gomega) error { | |||
return apiClient.Get(ctx, types.NamespacedName{Name: vmName, Namespace: strategy.GetNamespace()}, vm) | |||
}).Should(MatchError(k8serrors.IsNotFound)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC this syntax is just missing a string as second argument
e.g.
Should(MatchError(k8serrors.IsNotFound, "IsNotFound"))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is what we have in main branch, but that caused the automatic cherry-pick to fail. Probably here we have an older version of gomega
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 0xFelix The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This is a manual cherry-pick of #742
https://issues.redhat.com/browse/CNV-35848
Release note: