Skip to content

OCPEDGE-2381: Verify etc pod should start with oom_score_adj as system-node-critical#30982

Open
kasturinarra wants to merge 1 commit intoopenshift:mainfrom
kasturinarra:automate_case_86080
Open

OCPEDGE-2381: Verify etc pod should start with oom_score_adj as system-node-critical#30982
kasturinarra wants to merge 1 commit intoopenshift:mainfrom
kasturinarra:automate_case_86080

Conversation

@kasturinarra
Copy link
Copy Markdown
Contributor

No description provided.

@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: automatic 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 9, 2026
@openshift-ci-robot
Copy link
Copy Markdown

openshift-ci-robot commented Apr 9, 2026

@kasturinarra: This pull request references OCPEDGE-2381 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 "4.22.0" version, but no target version was set.

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.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 9, 2026

Walkthrough

This pull request adds test coverage for OOM score verification in an etcd topology suite. New constants define shell commands to read the oom_score_adj value from Podman-managed etcd processes via /proc/<pid>/oom_score_adj and query pcs resource configuration. A new Ginkgo test case validates that two control-plane nodes maintain the expected OOM default value of -997 through multiple assertion points.

Changes

Cohort / File(s) Summary
OOM Score Verification Test
test/extended/two_node/tnf_topology.go
Added new constants for shell commands to verify OOM score adjustments and a new Ginkgo test case that retrieves two control-plane nodes, validates pcs resource output contains OOM default -997, and confirms /proc/$PID/oom_score_adj equals -997 on each node via Podman-based PID lookup.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

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

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

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
test/extended/two_node/tnf_topology.go (1)

20-20: Remove or clarify the pcs resource describe check—it validates agent defaults, not cluster configuration

Lines 147-150 check the resource agent's metadata (what parameters the agent supports), not the cluster's configured etcd resource. For cluster configuration validation, use pcs resource show podman-etcd instead, or remove this check entirely since lines 152-158 already validate the actual running process OOM score, which is the authoritative source.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@test/extended/two_node/tnf_topology.go` at line 20, The constant
getPcsEtcdOOMDefault and its use performs "pcs resource describe
ocf:heartbeat:podman-etcd", which inspects the agent metadata (agent defaults)
rather than the cluster's configured resource; update the test to validate
cluster configuration by replacing that check with a "pcs resource show
podman-etcd" query (or remove the check entirely) and ensure subsequent
assertions use the actual resource output or the running process OOM validation
already present in the test (keep the existing OOM score verification logic
intact).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@test/extended/two_node/tnf_topology.go`:
- Line 20: The constant getPcsEtcdOOMDefault and its use performs "pcs resource
describe ocf:heartbeat:podman-etcd", which inspects the agent metadata (agent
defaults) rather than the cluster's configured resource; update the test to
validate cluster configuration by replacing that check with a "pcs resource show
podman-etcd" query (or remove the check entirely) and ensure subsequent
assertions use the actual resource output or the running process OOM validation
already present in the test (keep the existing OOM score verification logic
intact).

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 8f698dc0-86b4-426d-b9b5-6eb99a99da26

📥 Commits

Reviewing files that changed from the base of the PR and between 107849e and bc440dd.

📒 Files selected for processing (1)
  • test/extended/two_node/tnf_topology.go

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

Scheduling required tests:
/test e2e-aws-csi
/test e2e-aws-ovn-fips
/test e2e-aws-ovn-microshift
/test e2e-aws-ovn-microshift-serial
/test e2e-aws-ovn-serial-1of2
/test e2e-aws-ovn-serial-2of2
/test e2e-gcp-csi
/test e2e-gcp-ovn
/test e2e-gcp-ovn-upgrade
/test e2e-metal-ipi-ovn-ipv6
/test e2e-vsphere-ovn
/test e2e-vsphere-ovn-upi

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 9, 2026

@kasturinarra: 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-vsphere-ovn bc440dd link true /test e2e-vsphere-ovn

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.

@kasturinarra
Copy link
Copy Markdown
Contributor Author

/test e2e-vsphere-ovn

@kasturinarra
Copy link
Copy Markdown
Contributor Author

/payload-job periodic-ci-openshift-release-main-nightly-4.22-e2e-metal-ovn-two-node-fencing-techpreview

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 9, 2026

@kasturinarra: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-main-nightly-4.22-e2e-metal-ovn-two-node-fencing-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/7219aa10-343d-11f1-97d2-24b0cfb9abc2-0

@kasturinarra
Copy link
Copy Markdown
Contributor Author

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Apr 10, 2026
@openshift-ci-robot
Copy link
Copy Markdown

@kasturinarra: This PR has been marked as verified by https://prow.ci.openshift.org/view/gs/test-platform-results/logs/openshift-origin-30982-nightly-4.22-e2e-metal-ovn-two-node-fencing-techpreview/2042300663261564928.

Details

In response to this:

/verified by https://prow.ci.openshift.org/view/gs/test-platform-results/logs/openshift-origin-30982-nightly-4.22-e2e-metal-ovn-two-node-fencing-techpreview/2042300663261564928

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.

@jaypoulz
Copy link
Copy Markdown
Contributor

/approve

Nit: can we use the constant whenever -997 appears? It feels weird to me to have to check all of these values if ever this baseline value were to change.

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 10, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jaypoulz, kasturinarra

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 10, 2026
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-reference Indicates that this PR references a valid Jira ticket of any type. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants