Skip to content

OCPBUGS-84691: prom rules: add alert for nodes using runc#5874

Merged
openshift-merge-bot[bot] merged 2 commits into
openshift:mainfrom
haircommander:runc-alert
May 5, 2026
Merged

OCPBUGS-84691: prom rules: add alert for nodes using runc#5874
openshift-merge-bot[bot] merged 2 commits into
openshift:mainfrom
haircommander:runc-alert

Conversation

@haircommander

@haircommander haircommander commented Apr 22, 2026

Copy link
Copy Markdown
Member

relies on a cri-o metric that's emitted when the cluster is using runc
generated with claude

Summary by CodeRabbit

  • New Features
    • Added an informational alert (RuncDeprecated) that notifies when the deprecated runc runtime is detected for 10 minutes; includes summary, migration guidance, and a runbook link.
    • Extended CRI-O metrics collection to include a new "default_runtime" metric collector on control-plane and worker nodes.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: LGTM mode

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Apr 22, 2026
@openshift-ci-robot

openshift-ci-robot commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

@haircommander: This pull request references OCPNODE-4446 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set.

Details

In response to this:

relies on a cri-o metric that's emitted when the cluster is using runc
generated with claude

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.

@coderabbitai

coderabbitai Bot commented Apr 22, 2026

Copy link
Copy Markdown

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

Added a new Prometheus alert group runc-deprecated with alert RuncDeprecated that fires when count(container_runtime_crio_default_runtime{runtime="runc"}) > 0 for 10m, and added the default_runtime metrics collector to CRI-O configs for arbiter, master, and worker.

Changes

Cohort / File(s) Summary
Prometheus Alert Rule
install/0000_90_machine-config_01_prometheus-rules.yaml
Added new alert group runc-deprecated containing RuncDeprecated which triggers on count(container_runtime_crio_default_runtime{runtime="runc"}) > 0 for 10m; includes labels namespace: openshift-machine-config-operator, severity: info, and annotations summary, description, runbook_url.
CRI-O Metrics Configs
templates/arbiter/01-arbiter-container-runtime/_base/files/crio.yaml, templates/master/01-master-container-runtime/_base/files/crio.yaml, templates/worker/01-worker-container-runtime/_base/files/crio.yaml
Added the "default_runtime" entry to [crio.metrics].metrics_collectors alongside the existing "processes_defunct" in arbiter, master, and worker CRI-O configurations.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 12
✅ Passed checks (12 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed The PR modifies only YAML configuration files (Prometheus rules and CRI-O settings), not Ginkgo test code. No test files are added or modified.
Test Structure And Quality ✅ Passed This check is not applicable to the pull request. The PR modifies only declarative configuration files (Prometheus alert rule in YAML and CRI-O metrics configuration), not test files.
Microshift Test Compatibility ✅ Passed This PR does not introduce any Ginkgo e2e tests. The changes consist solely of configuration files: a Prometheus alert rule YAML file and three CRI-O configuration template files.
Single Node Openshift (Sno) Test Compatibility ✅ Passed This pull request does not add any Ginkgo e2e tests. The PR modifies only YAML configuration files: a Prometheus alert rules file and three CRI-O configuration files. Since the custom check specifically applies to "When new Ginkgo e2e tests are added," and no such tests exist in this PR, the check is not applicable and passes by default.
Topology-Aware Scheduling Compatibility ✅ Passed The PR introduces Prometheus alert rules and CRI-O metric collectors; no pod deployments, scheduling constraints, affinity rules, or topology assumptions are added.
Ote Binary Stdout Contract ✅ Passed PR modifies only configuration files (Prometheus rules and CRI-O YAML configs); no executable Go code entry points are introduced or modified.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed No new Ginkgo e2e tests are being added. The PR only modifies YAML configuration and CRI-O template files.
Title check ✅ Passed The title clearly and specifically describes the main change: adding a Prometheus alert rule for detecting nodes using runc.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@install/0000_90_machine-config_01_prometheus-rules.yaml`:
- Around line 29-30: Fix the grammar typo in the Prometheus alert rule
description: update the description field value (the YAML key "description" in
the rule) to change “support will removed” to “support will be removed” so the
user-facing message reads correctly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 199b41d8-1f05-4044-a1a5-3bacba2e627a

📥 Commits

Reviewing files that changed from the base of the PR and between c3a9db7 and 7e20fb5.

📒 Files selected for processing (1)
  • install/0000_90_machine-config_01_prometheus-rules.yaml

Comment thread install/0000_90_machine-config_01_prometheus-rules.yaml Outdated
@haircommander haircommander changed the title OCPNODE-4446: prom rules: add alert for nodes using runc OCPNODE-4382: prom rules: add alert for nodes using runc Apr 22, 2026
@openshift-ci-robot

openshift-ci-robot commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

@haircommander: This pull request references OCPNODE-4382 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the epic to target the "5.0.0" version, but no target version was set.

Details

In response to this:

relies on a cri-o metric that's emitted when the cluster is using runc
generated with claude

Summary by CodeRabbit

  • New Features
  • Added an informational alert that detects use of the deprecated runc container runtime and fires after sustained detection (10 minutes).
  • Alert includes a clear summary, detailed migration guidance, and a runbook link to assist operators.
  • Targets the machine-config-operator area and is additive (no existing alerts changed).

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.

@haircommander haircommander changed the title OCPNODE-4382: prom rules: add alert for nodes using runc OCPNODE-4383: prom rules: add alert for nodes using runc Apr 22, 2026
@openshift-ci-robot

openshift-ci-robot commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

@haircommander: This pull request references OCPNODE-4383 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set.

Details

In response to this:

relies on a cri-o metric that's emitted when the cluster is using runc
generated with claude

Summary by CodeRabbit

  • New Features
  • Added an informational alert that detects use of the deprecated runc container runtime and fires after sustained detection (10 minutes).
  • Alert includes a clear summary, detailed migration guidance, and a runbook link to assist operators.
  • Targets the machine-config-operator area and is additive (no existing alerts changed).

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.

@coderabbitai

coderabbitai Bot commented Apr 22, 2026

Copy link
Copy Markdown

Caution

Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted.

Error details
{}

@haircommander

Copy link
Copy Markdown
Member Author

/retest

1 similar comment
@haircommander

Copy link
Copy Markdown
Member Author

/retest

relies on a cri-o metric that's emitted when the cluster is using runc

Signed-off-by: Peter Hunt <pehunt@redhat.com>
Signed-off-by: Peter Hunt <pehunt@redhat.com>

@yuqi-zhang yuqi-zhang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Overall seems fine, just some questions in line

Comment thread install/0000_90_machine-config_01_prometheus-rules.yaml
Comment thread install/0000_90_machine-config_01_prometheus-rules.yaml
Comment thread install/0000_90_machine-config_01_prometheus-rules.yaml
@haircommander haircommander changed the title OCPNODE-4383: prom rules: add alert for nodes using runc OCPBUGS-84691: prom rules: add alert for nodes using runc Apr 29, 2026
@openshift-ci-robot openshift-ci-robot added the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label Apr 29, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@haircommander: This pull request references Jira Issue OCPBUGS-84691, which is invalid:

  • expected the bug to target the "5.0.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.

Details

In response to this:

relies on a cri-o metric that's emitted when the cluster is using runc
generated with claude

Summary by CodeRabbit

  • New Features
  • Added an informational alert (RuncDeprecated) that notifies when the deprecated runc runtime is detected for 10 minutes; includes summary, migration guidance, and a runbook link.
  • Extended CRI-O metrics collection to include a new "default_runtime" metric collector on control-plane and worker nodes.

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.

@haircommander

Copy link
Copy Markdown
Member Author

/jira refresh
@yuqi-zhang LGTY?

@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 Apr 29, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

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

In response to this:

/jira refresh
@yuqi-zhang LGTY?

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.

@yuqi-zhang yuqi-zhang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Apr 30, 2026
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
/test e2e-aws-ovn
/test e2e-aws-ovn-upgrade
/test e2e-gcp-op-part1
/test e2e-gcp-op-part2
/test e2e-gcp-op-single-node
/test e2e-hypershift

@openshift-ci

openshift-ci Bot commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: haircommander, yuqi-zhang

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:

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 Apr 30, 2026
@haircommander

Copy link
Copy Markdown
Member Author

/skip

@haircommander

Copy link
Copy Markdown
Member Author

/verified later @haircommander

@openshift-ci-robot openshift-ci-robot added verified-later verified Signifies that the PR passed pre-merge verification criteria labels May 4, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@haircommander: This PR has been marked to be verified later by @haircommander.

Details

In response to this:

/verified later @haircommander

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.

@haircommander

Copy link
Copy Markdown
Member Author

/skip
/retest-required

@haircommander

haircommander commented May 4, 2026

Copy link
Copy Markdown
Member Author

/verified by @haircommander
I spawned a cluster with cluster bot, switched it to use runc, and then used

oc -n openshift-monitoring exec -c alertmanager alertmanager-main-0 -- amtool --alertmanager.url=http://localhost:9093 alert query --active alertname="RuncDeprecated"

to catch it as active (ty claude)

@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@haircommander: This PR has been marked as verified by @haircommander.

Details

In response to this:

/verified by @haircommander
I spawned a cluster with cluster bot, and then used

oc -n openshift-monitoring exec -c alertmanager alertmanager-main-0 -- amtool --alertmanager.url=http://localhost:9093 alert query --active alertname="RuncDeprecated"

to catch it as active (ty claude)

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-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD a7a332d and 2 for PR HEAD 6c48b96 in total

@openshift-ci

openshift-ci Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

@haircommander: all tests passed!

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.

@openshift-merge-bot openshift-merge-bot Bot merged commit 74b5b1b into openshift:main May 5, 2026
17 checks passed
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@haircommander: Jira Issue OCPBUGS-84691: Some pull requests linked via external trackers have merged:

The following pull request, linked via external tracker, has not merged:

All associated pull requests must be merged or unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with /jira refresh.

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

This PR is marked as verified. If the remaining PRs listed above are marked as verified before merging, the issue will automatically be moved to VERIFIED after all of the changes from the PRs are available in an accepted nightly payload.

Details

In response to this:

relies on a cri-o metric that's emitted when the cluster is using runc
generated with claude

Summary by CodeRabbit

  • New Features
  • Added an informational alert (RuncDeprecated) that notifies when the deprecated runc runtime is detected for 10 minutes; includes summary, migration guidance, and a runbook link.
  • Extended CRI-O metrics collection to include a new "default_runtime" metric collector on control-plane and worker nodes.

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.

@haircommander

Copy link
Copy Markdown
Member Author

/cherry-pick release-4.22

@openshift-cherrypick-robot

Copy link
Copy Markdown

@haircommander: new pull request created: #5998

Details

In response to this:

/cherry-pick release-4.22

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.

ptalgulk01 pushed a commit to ptalgulk01/machine-config-operator that referenced this pull request May 15, 2026
OCPBUGS-84691: prom rules: add alert for nodes using runc
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/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.

5 participants