Skip to content

Conversation

@dgrisonnet
Copy link
Member

@dgrisonnet dgrisonnet commented Sep 26, 2024

While investigating https://issues.redhat.com//browse/OCPBUGS-42083, we noticed that some of the disruption was caused by 500 errors on health endpoints that were due to timeout, but the timeout for these endpoints is lower than it is for the other kube-apiserver endpoints.

Since we can already monitor these endpoints from the probes, I'd be better to remove them from the SLO alert to reduce its scope.

@openshift-ci openshift-ci bot requested review from benluddy and sanchezl September 26, 2024 14:52
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 26, 2024
@vrutkovs
Copy link
Contributor

/cc

@openshift-ci openshift-ci bot requested a review from vrutkovs September 26, 2024 17:49
@vrutkovs
Copy link
Contributor

vrutkovs commented Oct 2, 2024

/retitle OCPBUGS-42083: Disregard health endpoints in the burn rate alerts

@openshift-ci openshift-ci bot changed the title Disregard health endpoints in the burn rate alerts OCPBUGS-42083: Disregard health endpoints in the burn rate alerts Oct 2, 2024
@openshift-ci-robot openshift-ci-robot added jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. labels Oct 2, 2024
@openshift-ci-robot
Copy link

@dgrisonnet: This pull request references Jira Issue OCPBUGS-42083, which is valid.

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

Requesting review from QA contact:
/cc @wangke19

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

Details

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.

@openshift-ci-robot openshift-ci-robot added the jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. label Oct 2, 2024
@openshift-ci openshift-ci bot requested a review from wangke19 October 2, 2024 10:01
@openshift-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 1, 2025
@ricardomaraschini
Copy link

/retest

@dgrisonnet
Copy link
Member Author

/remove-lifecycle stale

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 3, 2025
@openshift-ci openshift-ci bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 3, 2025
@dgrisonnet dgrisonnet force-pushed the slo-health-endpoints branch from c478ada to c75a1dd Compare February 3, 2025 14:30
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 3, 2025
@dgrisonnet dgrisonnet force-pushed the slo-health-endpoints branch from c75a1dd to 0eb743e Compare February 3, 2025 14:32
@dgrisonnet dgrisonnet changed the title OCPBUGS-42083: Disregard health endpoints in the burn rate alerts OCPBUGS-49763: Disregard health endpoints in the burn rate alerts Feb 3, 2025
@openshift-ci-robot openshift-ci-robot removed the jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. label Feb 3, 2025
@openshift-ci-robot
Copy link

@dgrisonnet: This pull request references Jira Issue OCPBUGS-49763, 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.19.0) matches configured target version for branch (4.19.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

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

Details

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.

@dgrisonnet
Copy link
Member Author

/jira refresh

@openshift-ci-robot
Copy link

@dgrisonnet: This pull request references Jira Issue OCPBUGS-49763, which is valid.

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

In response to this:

/jira refresh

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.

@wallylewis
Copy link

/retest-required

@ingvagabund
Copy link
Member

ingvagabund commented Feb 4, 2025

So there's already some precedence for excluding endpoints: #1126. Is it known what causes the timeout of the removed endpoints? New revisions rolling out? Or, is there a different factor?

Edit: https://issues.redhat.com/browse/OCPBUGS-42083?focusedId=25653649&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-25653649 mentions the rollouts. The comment also mentions this can only happen during bootstrap. Is there a chance the situation improved and this PR is mostly for future safety?

@dgrisonnet
Copy link
Member Author

dgrisonnet commented Feb 5, 2025

The cause was etcd readiness checks failing during bootstrap. It is what started the discussion around removing the etcd rediness checks in kas

@dgrisonnet
Copy link
Member Author

I added some explanations on https://issues.redhat.com//browse/OCPBUGS-49763

Copy link
Contributor

@benluddy benluddy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change makes sense to me. Both /livez and /readyz respond with HTTP 500 as part of their normal operation. I don't think this creates a blind spot because latency and error codes in /healthz, /livez, and /readyz are positively correlated with latency and error codes in other endpoints. The same considerations don't apply to /statusz or /flagz.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 7, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 7, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: benluddy, dgrisonnet

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [benluddy,dgrisonnet]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@dgrisonnet
Copy link
Member Author

/label acknowledge-critical-fixes-only

@openshift-ci openshift-ci bot added the acknowledge-critical-fixes-only Indicates if the issuer of the label is OK with the policy. label Feb 10, 2025
@dgrisonnet
Copy link
Member Author

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 10, 2025
@dgrisonnet
Copy link
Member Author

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 10, 2025
@dgrisonnet
Copy link
Member Author

/cherry-pick release 4.18

@openshift-cherrypick-robot

@dgrisonnet: once the present PR merges, I will cherry-pick it on top of release in a new PR and assign it to you.

Details

In response to this:

/cherry-pick release 4.18

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-sigs/prow repository.

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD c3e5c90 and 2 for PR HEAD 0eb743e in total

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 11, 2025

@dgrisonnet: The following tests 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-gcp-operator-single-node 0eb743e link false /test e2e-gcp-operator-single-node
ci/prow/e2e-metal-single-node-live-iso 0eb743e link false /test e2e-metal-single-node-live-iso
ci/prow/e2e-aws-operator-disruptive-single-node 0eb743e link false /test e2e-aws-operator-disruptive-single-node

Full PR test history. Your PR dashboard.

Details

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-sigs/prow repository. I understand the commands that are listed here.

@dgrisonnet
Copy link
Member Author

/retest-required

@openshift-merge-bot openshift-merge-bot bot merged commit 730ff1e into openshift:master Feb 11, 2025
13 of 16 checks passed
@openshift-ci-robot
Copy link

@dgrisonnet: Jira Issue OCPBUGS-49763: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-49763 has been moved to the MODIFIED state.

Details

In response to this:

While investigating https://issues.redhat.com//browse/OCPBUGS-42083, we noticed that some of the disruption was caused by 500 errors on health endpoints that were due to timeout, but the timeout for these endpoints is lower than it is for the other kube-apiserver endpoints.

Since we can already monitor these endpoints from the probes, I'd be better to remove them from the SLO alert to reduce its scope.

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-cherrypick-robot

@dgrisonnet: cannot checkout release: error checking out "release": exit status 1 error: pathspec 'release' did not match any file(s) known to git

Details

In response to this:

/cherry-pick release 4.18

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-sigs/prow repository.

@dgrisonnet
Copy link
Member Author

/cherry-pick release-4.18

@openshift-cherrypick-robot

@dgrisonnet: #1742 failed to apply on top of branch "release-4.18":

Applying: bindata/alerts/slo: disregard health endpoints
Using index info to reconstruct a base tree...
M	bindata/assets/alerts/kube-apiserver-slos-basic.yaml
M	bindata/assets/alerts/kube-apiserver-slos-extended.yaml
Falling back to patching base and 3-way merge...
Auto-merging bindata/assets/alerts/kube-apiserver-slos-extended.yaml
CONFLICT (content): Merge conflict in bindata/assets/alerts/kube-apiserver-slos-extended.yaml
Auto-merging bindata/assets/alerts/kube-apiserver-slos-basic.yaml
CONFLICT (content): Merge conflict in bindata/assets/alerts/kube-apiserver-slos-basic.yaml
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0001 bindata/alerts/slo: disregard health endpoints

Details

In response to this:

/cherry-pick release-4.18

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-sigs/prow repository.

machine424 added a commit to machine424/cluster-kube-apiserver-operator that referenced this pull request Feb 26, 2025
this also fixes a bad `le="30(.0)?"` as a result of openshift#1742

The chosen approach is to move to float buckets one Prometheus v3 is merged
forgetting about the integer historical data.

That will be done in openshift#1816
p0lyn0mial pushed a commit to p0lyn0mial/cluster-kube-apiserver-operator that referenced this pull request Dec 11, 2025
this also fixes a bad `le="30(.0)?"` as a result of openshift#1742

The chosen approach is to move to float buckets one Prometheus v3 is merged
forgetting about the integer historical data.

That will be done in openshift#1816
wangke19 pushed a commit to wangke19/cluster-kube-apiserver-operator that referenced this pull request Dec 22, 2025
this also fixes a bad `le="30(.0)?"` as a result of openshift#1742

The chosen approach is to move to float buckets one Prometheus v3 is merged
forgetting about the integer historical data.

That will be done in openshift#1816
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

acknowledge-critical-fixes-only Indicates if the issuer of the label is OK with the policy. approved Indicates a PR has been approved by an approver from all required OWNERS files. 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.

10 participants