Skip to content

Conversation

@dgoodwin
Copy link
Contributor

@dgoodwin dgoodwin commented Oct 22, 2025

Assisted-by: Cursor AI

This will allow us to correlate problems with time periods when etcd was struggling, and search for job runs experiencing those problems.

It is unclear how valid the upstream thresholds are, we suspect our CI proves they are too low and we operate normally well above this.

Related: openshift/release#70577 will start ingesting metrics into bigquery so we can see how jobs do.

@dgoodwin dgoodwin changed the title Create intervals when etcd disk metrics are over upstream recommended thresholds OCPBUGS-55755: Create intervals when etcd disk metrics are over upstream recommended thresholds Oct 22, 2025
@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. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Oct 22, 2025
@openshift-ci-robot
Copy link

@dgoodwin: This pull request references Jira Issue OCPBUGS-55755, which is invalid:

  • expected the bug to target the "4.21.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested review from deads2k and p0lyn0mial October 22, 2025 21:12
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 22, 2025
@openshift-trt
Copy link

openshift-trt bot commented Oct 23, 2025

Risk analysis has seen new tests most likely introduced by this PR.
Please ensure that new tests meet guidelines for naming and stability.

New tests seen in this PR at sha: 0091d4f

  • "Import the release payload "nightly-arm64" from an external source" [Total: 2, Pass: 2, Fail: 0, Flake: 0]
  • "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals cleanup" [Total: 12, Pass: 12, Fail: 0, Flake: 0]
  • "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals collection" [Total: 12, Pass: 12, Fail: 0, Flake: 0]
  • "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals interval construction" [Total: 12, Pass: 12, Fail: 0, Flake: 0]
  • "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals preparation" [Total: 12, Pass: 12, Fail: 0, Flake: 0]
  • "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals setup" [Total: 12, Pass: 12, Fail: 0, Flake: 0]
  • "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals test evaluation" [Total: 12, Pass: 12, Fail: 0, Flake: 0]
  • "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals writing to storage" [Total: 12, Pass: 12, Fail: 0, Flake: 0]

return nil, err
}

if intervals, err := prometheus.EnsureThanosQueriersConnectedToPromSidecars(ctx, prometheusClient); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

I would change intervals to _ here and explicitly return nil for the error case. Just for clarity (AI Slop I'm sure)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

walFsyncQuery := `histogram_quantile(0.99, rate(etcd_disk_wal_fsync_duration_seconds_bucket{job=~".*etcd.*"}[5m]))`
walFsyncMetrics, warningsForWal, err := prometheusClient.QueryRange(ctx, walFsyncQuery, timeRange)
if err != nil {
return nil, err
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you want to return nil in this case or allIntervals. Fine if you want to drop all intervals in case of any failure.


walFsyncIntervals, err := w.createIntervalsFromMetrics(logger, walFsyncMetrics, monitorapi.SourceEtcdDiskWalFsyncDuration, w.walFsyncThreshold, "disk WAL fsync duration")
if err != nil {
return nil, err
Copy link
Contributor

Choose a reason for hiding this comment

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

same, just confirming you drop previously good intervals

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I'm ok with this, if we error here all bets are off I think.

@dgoodwin dgoodwin force-pushed the etcd-disk-intervals branch from 0091d4f to ddfb6d8 Compare October 27, 2025 14:44
@neisw
Copy link
Contributor

neisw commented Oct 27, 2025

/lgtm

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

openshift-ci bot commented Oct 27, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dgoodwin, neisw

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

@dgoodwin
Copy link
Contributor Author

/verify bypass

@dgoodwin
Copy link
Contributor Author

/verified bypass

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Oct 28, 2025
@openshift-ci-robot
Copy link

@dgoodwin: The verified label has been added.

In response to this:

/verified bypass

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.

@dgoodwin
Copy link
Contributor Author

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Oct 29, 2025
@openshift-ci-robot
Copy link

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

Requesting review from QA contact:
/cc @geliu2016

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.

@openshift-ci openshift-ci bot requested a review from geliu2016 October 29, 2025 11:12
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD f886e4e and 2 for PR HEAD ddfb6d8 in total

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD a91d3d0 and 1 for PR HEAD ddfb6d8 in total

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 1f66b70 and 0 for PR HEAD ddfb6d8 in total

@openshift-ci-robot
Copy link

/hold

Revision ddfb6d8 was retested 3 times: holding

@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 Oct 30, 2025
@dgoodwin
Copy link
Contributor Author

/hold cancel

@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 Oct 30, 2025
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 8b17b60 and 2 for PR HEAD ddfb6d8 in total

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 30, 2025

@dgoodwin: 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/okd-scos-e2e-aws-ovn 0091d4f link false /test okd-scos-e2e-aws-ovn

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

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 387947a and 1 for PR HEAD ddfb6d8 in total

@openshift-trt
Copy link

openshift-trt bot commented Nov 2, 2025

Risk analysis has seen new tests most likely introduced by this PR.
Please ensure that new tests meet guidelines for naming and stability.

New Test Risks for sha: ddfb6d8

Job Name New Test Risk
pull-ci-openshift-origin-main-e2e-aws-ovn-fips High - "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals cleanup" is a new test that was not present in all runs against the current commit.
pull-ci-openshift-origin-main-e2e-aws-ovn-fips High - "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals collection" is a new test that was not present in all runs against the current commit.
pull-ci-openshift-origin-main-e2e-aws-ovn-fips High - "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals interval construction" is a new test that was not present in all runs against the current commit.
pull-ci-openshift-origin-main-e2e-aws-ovn-fips High - "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals preparation" is a new test that was not present in all runs against the current commit.
pull-ci-openshift-origin-main-e2e-aws-ovn-fips High - "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals setup" is a new test that was not present in all runs against the current commit.
pull-ci-openshift-origin-main-e2e-aws-ovn-fips High - "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals test evaluation" is a new test that was not present in all runs against the current commit.
pull-ci-openshift-origin-main-e2e-aws-ovn-fips High - "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals writing to storage" is a new test that was not present in all runs against the current commit.
pull-ci-openshift-origin-main-e2e-gcp-ovn-upgrade High - "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals cleanup" is a new test that was not present in all runs against the current commit.
pull-ci-openshift-origin-main-e2e-gcp-ovn-upgrade High - "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals collection" is a new test that was not present in all runs against the current commit.
pull-ci-openshift-origin-main-e2e-gcp-ovn-upgrade High - "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals interval construction" is a new test that was not present in all runs against the current commit.
pull-ci-openshift-origin-main-e2e-gcp-ovn-upgrade High - "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals preparation" is a new test that was not present in all runs against the current commit.
pull-ci-openshift-origin-main-e2e-gcp-ovn-upgrade High - "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals setup" is a new test that was not present in all runs against the current commit.
pull-ci-openshift-origin-main-e2e-gcp-ovn-upgrade High - "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals test evaluation" is a new test that was not present in all runs against the current commit.
pull-ci-openshift-origin-main-e2e-gcp-ovn-upgrade High - "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals writing to storage" is a new test that was not present in all runs against the current commit.
pull-ci-openshift-origin-main-e2e-metal-ipi-ovn-ipv6 High - "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals cleanup" is a new test that was not present in all runs against the current commit.
pull-ci-openshift-origin-main-e2e-metal-ipi-ovn-ipv6 High - "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals collection" is a new test that was not present in all runs against the current commit.
pull-ci-openshift-origin-main-e2e-metal-ipi-ovn-ipv6 High - "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals interval construction" is a new test that was not present in all runs against the current commit.
pull-ci-openshift-origin-main-e2e-metal-ipi-ovn-ipv6 High - "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals preparation" is a new test that was not present in all runs against the current commit.
pull-ci-openshift-origin-main-e2e-metal-ipi-ovn-ipv6 High - "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals setup" is a new test that was not present in all runs against the current commit.
pull-ci-openshift-origin-main-e2e-metal-ipi-ovn-ipv6 High - "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals test evaluation" is a new test that was not present in all runs against the current commit.
(...showing 20 of 35 rows)

New tests seen in this PR at sha: ddfb6d8

  • "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals cleanup" [Total: 46, Pass: 46, Fail: 0, Flake: 0]
  • "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals collection" [Total: 46, Pass: 46, Fail: 0, Flake: 0]
  • "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals interval construction" [Total: 46, Pass: 46, Fail: 0, Flake: 0]
  • "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals preparation" [Total: 46, Pass: 46, Fail: 0, Flake: 0]
  • "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals setup" [Total: 46, Pass: 46, Fail: 0, Flake: 0]
  • "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals test evaluation" [Total: 46, Pass: 46, Fail: 0, Flake: 0]
  • "[Monitor:etcd-disk-metrics-intervals][Jira:"etcd"] monitor test etcd-disk-metrics-intervals writing to storage" [Total: 46, Pass: 46, Fail: 0, Flake: 0]

@openshift-merge-bot openshift-merge-bot bot merged commit 87710bd into openshift:main Nov 3, 2025
20 checks passed
@openshift-ci-robot
Copy link

@dgoodwin: Jira Issue OCPBUGS-55755: All pull requests linked via external trackers have merged:

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

In response to this:

Assisted-by: Cursor AI

This will allow us to correlate problems with time periods when etcd was struggling, and search for job runs experiencing those problems.

It is unclear how valid the upstream thresholds are, we suspect our CI proves they are too low and we operate normally well above this.

Related: openshift/release#70577 will start ingesting metrics into bigquery so we can see how jobs do.

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

Fix included in accepted release 4.21.0-0.nightly-2025-11-03-191704

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-important Referenced Jira bug's severity is important 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. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants