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
OCPBUGS-22422: Fix PodStartupStorageOperationsFailing alert #436
Conversation
@jsafrane: This pull request references Jira Issue OCPBUGS-22422, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The alert fired only when there was a successful operation on a node. If a CSI driver / volume plugin always failed on a node, the alert was silent, because `increase(storage_operation_duration_seconds_count{status = "success")[5m])` has no data. Trying to fix it with more elaborate promql. When `increase(...{status = "success"}` has no data, supplement its value by `increase(...{status != "success"}) * 0`. We know that non-successful metric exists, so multiply it by zero to get a metric of successes with zero values. Then use `sum without(status)` and `ignoring(status)` to merge the metrics by all other labels than status.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jsafrane 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 |
1 similar comment
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jsafrane 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 |
/retest-required |
1 similar comment
/retest-required |
/lgtm |
/jira refresh The requirements for Jira bugs have changed (Jira issues linked to PRs on main branch need to target different OCP), recalculating validity. |
@openshift-bot: This pull request references Jira Issue OCPBUGS-22422, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/retest-required |
@jsafrane: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/retest-required |
466d005
into
openshift:master
@jsafrane: Jira Issue OCPBUGS-22422: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-22422 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
[ART PR BUILD NOTIFIER] This PR has been included in build ose-cluster-storage-operator-container-v4.16.0-202401032310.p0.g466d005.assembly.stream for distgit cluster-storage-operator. |
The alert fired only when there was a successful operation on a node. If a CSI driver / volume plugin always failed on a node, the alert was silent, because
increase(storage_operation_duration_seconds_count{status = "success")[5m])
has no data.Trying to fix it with more elaborate promql. When
increase(...{status = "success"}
has no data, supplement its value byincrease(...{status != "success"}) * 0
. We know that non-successful metric exists, so multiply it by zero to get a metric of successes with zero values.Then use
sum without(status)
andignoring(status)
to merge the metrics by all other labels than status.cc @openshift/storage