Skip to content
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

Merged
merged 1 commit into from Jan 3, 2024

Conversation

jsafrane
Copy link
Contributor

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.

cc @openshift/storage

@openshift-ci-robot openshift-ci-robot added jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Dec 19, 2023
@openshift-ci-robot
Copy link
Contributor

@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
  • bug is open, matching expected state (open)
  • bug target version (4.16.0) matches configured target version for branch (4.16.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @ropatil010

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

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.

cc @openshift/storage

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.
Copy link
Contributor

openshift-ci bot commented Dec 19, 2023

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

1 similar comment
Copy link
Contributor

openshift-ci bot commented Dec 19, 2023

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 19, 2023
@jsafrane
Copy link
Contributor Author

/retest-required

1 similar comment
@Phaow
Copy link

Phaow commented Dec 21, 2023

/retest-required

@RomanBednar
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 22, 2023
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD e092fb8 and 2 for PR HEAD 082a634 in total

@openshift-bot
Copy link
Contributor

/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-ci-robot
Copy link
Contributor

@openshift-bot: This pull request references Jira Issue OCPBUGS-22422, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.16.0) matches configured target version for branch (4.16.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @ropatil010

In response to this:

/jira refresh

The requirements for Jira bugs have changed (Jira issues linked to PRs on main branch need to target different OCP), recalculating validity.

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.

@jsafrane
Copy link
Contributor Author

jsafrane commented Jan 3, 2024

/retest-required

Copy link
Contributor

openshift-ci bot commented Jan 3, 2024

@jsafrane: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-ibmcloud-csi 082a634 link false /test e2e-ibmcloud-csi

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.

@dobsonj
Copy link
Member

dobsonj commented Jan 3, 2024

/retest-required

@openshift-merge-bot openshift-merge-bot bot merged commit 466d005 into openshift:master Jan 3, 2024
12 of 13 checks passed
@openshift-ci-robot
Copy link
Contributor

@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:

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.

cc @openshift/storage

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.

@openshift-bot
Copy link
Contributor

[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.
All builds following this will include this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants