Skip to content

OCPBUGS-105606: Allow DualReplica stable-system CVO Available blips from NoExecuteTaintManager - #31501

Open
eggfoobar wants to merge 1 commit into
openshift:mainfrom
eggfoobar:allow-dualreplica-stable-cvo-available-blips
Open

OCPBUGS-105606: Allow DualReplica stable-system CVO Available blips from NoExecuteTaintManager#31501
eggfoobar wants to merge 1 commit into
openshift:mainfrom
eggfoobar:allow-dualreplica-stable-cvo-available-blips

Conversation

@eggfoobar

@eggfoobar eggfoobar commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Serial NoExecuteTaintManager tests taint a control-plane node on DualReplica (masters are also workers), briefly driving csi-snapshot-controller and packageserver Available=False. Mirror the existing upgrade-path exceptions in the stable-system monitor so TNF serial jobs do not fail on these expected blips.

Summary by CodeRabbit

  • Tests
    • Improved upgrade and disruption testing for dual-replica and highly available arbiter configurations.
    • Test validation now accommodates expected temporary availability conditions while system components recover.
    • Added coverage for transient snapshot-controller and package-server status changes during two-node operations.
    • Enhanced validation of recovery behavior during disruptive operations, reducing false-positive test failures when temporary status changes are expected.

@openshift-ci-robot openshift-ci-robot added 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 Aug 11, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@eggfoobar: This pull request references Jira Issue OCPBUGS-105606, 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)

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

Details

In response to this:

Serial NoExecuteTaintManager tests taint a control-plane node on DualReplica (masters are also workers), briefly driving csi-snapshot-controller and packageserver Available=False. Mirror the existing upgrade-path exceptions in the stable-system monitor so TNF serial jobs do not fail on these expected blips.

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 Aug 11, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 978e31d1-da6f-4029-b9f9-9b3018d00673

📥 Commits

Reviewing files that changed from the base of the PR and between f4a867c and 64bb99a.

📒 Files selected for processing (1)
  • pkg/monitortests/clusterversionoperator/legacycvomonitortests/operators.go
🚧 Files skipped from review as they are similar to previous changes (1)
  • pkg/monitortests/clusterversionoperator/legacycvomonitortests/operators.go

Walkthrough

The stable operator state transition test detects DualReplica topology and permits specific transient Available=False conditions during disruptive tests.

Changes

Operator transition handling

Layer / File(s) Summary
DualReplica topology and transient conditions
pkg/monitortests/clusterversionoperator/legacycvomonitortests/operators.go
The test detects DualReplica topology. It permits transient CSI snapshot controller deployment waits and package-server ClusterServiceVersionNotSucceeded conditions during disruptive two-node tests.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: sjenning, p0lyn0mial

🚥 Pre-merge checks | ✅ 14 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (14 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the Jira issue and the main change: allowing expected DualReplica CVO availability blips during NoExecuteTaintManager tests.
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 changes only stable-system exception logic in operators.go; it adds no Ginkgo title calls or dynamic test-name construction.
Test Structure And Quality ✅ Passed The patch modifies an event analyzer, not Ginkgo It blocks; it creates no resources, performs no waits, and adds a diagnostic exception message while matching existing patterns.
Microshift Test Compatibility ✅ Passed The PR changes only existing monitor logic; it adds no Ginkgo It, Describe, Context, or When tests, so MicroShift test compatibility is not applicable.
Single Node Openshift (Sno) Test Compatibility ✅ Passed The PR changes only existing stable-system monitor logic in operators.go (+15 lines) and adds no Ginkgo tests or new multi-node test assumptions.
Topology-Aware Scheduling Compatibility ✅ Passed The commit only changes stable-system monitor exception logic; it adds no manifests or scheduling fields. The new exceptions are explicitly gated on DualReplica topology.
Ote Binary Stdout Contract ✅ Passed The PR adds only topology and exception logic in testStableSystemOperatorStateTransitions; no main/init/suite code or stdout/logging writes were added.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed The PR only adds exception logic to an existing monitor function; it adds no Ginkgo e2e tests, IP handling, URLs, or external connectivity.
No-Weak-Crypto ✅ Passed The patch adds topology detection and condition exceptions only. No MD5, SHA1, DES, RC4, Blowfish, ECB, custom crypto, or secret comparisons appear in added code.
Container-Privileges ✅ Passed The PR changes only one Go file; added lines contain no privileged, hostPID, hostNetwork, hostIPC, SYS_ADMIN, root, or allowPrivilegeEscalation settings.
No-Sensitive-Data-In-Logs ✅ Passed The 15-line patch adds only topology checks, fixed exception text, and a public Jira URL; it reads condition.Message but does not log or interpolate secrets, PII, hostnames, or customer data.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@openshift-ci-robot

Copy link
Copy Markdown

@eggfoobar: This pull request references Jira Issue OCPBUGS-105606, which is valid.

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 POST, which is one of the valid states (NEW, ASSIGNED, POST)
Details

In response to this:

Serial NoExecuteTaintManager tests taint a control-plane node on DualReplica (masters are also workers), briefly driving csi-snapshot-controller and packageserver Available=False. Mirror the existing upgrade-path exceptions in the stable-system monitor so TNF serial jobs do not fail on these expected blips.

Summary by CodeRabbit

  • Tests
  • Improved upgrade and disruption testing for dual-replica and highly available arbiter configurations.
  • Test validation now accommodates expected temporary availability conditions while system components recover.
  • Added coverage for transient snapshot-controller and package-server status changes during two-node operations.

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 p0lyn0mial and sjenning August 11, 2026 13:39
@openshift-ci

openshift-ci Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: eggfoobar
Once this PR has been reviewed and has the lgtm label, please assign sosiouxme for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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-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

@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 current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@pkg/monitortests/clusterversionoperator/legacycvomonitortests/operators.go`:
- Around line 90-97: Update the csi-snapshot-controller exception comment and
returned message in the isTwoNode branch to describe both DualReplica and
HighlyAvailableArbiterMode, or use the generic “two-node topology” wording. Keep
the existing condition matching and exception behavior unchanged.
🪄 Autofix

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 YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 716ea3a2-b3de-4880-8dad-975b9d716178

📥 Commits

Reviewing files that changed from the base of the PR and between 29be8bd and f4a867c.

📒 Files selected for processing (1)
  • pkg/monitortests/clusterversionoperator/legacycvomonitortests/operators.go

Comment on lines +90 to +97
// DualReplica / TNF: serial NoExecuteTaintManager tests NoExecute-taint a control-plane
// node (masters are also workers), so Deployments briefly cannot schedule.
if isTwoNode {
switch operator {
case "csi-snapshot-controller":
if strings.Contains(condition.Message, `Waiting for Deployment`) {
return "csi-snapshot-controller may report Available=False while Waiting for Deployment during DualReplica disruptive serial tests (e.g. NoExecuteTaintManager)"
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Make the exception message match both topology modes.

Line 51 also enables this branch for configv1.HighlyAvailableArbiterMode, but the comment and the return text mention only DualReplica. An accepted HighlyAvailableArbiter condition will report the wrong topology. Use “two-node topology” or name both modes.

Suggested wording
-			// DualReplica / TNF: serial NoExecuteTaintManager tests NoExecute-taint a control-plane
+			// Two-node topology: serial NoExecuteTaintManager tests NoExecute-taint a control-plane
...
-						return "csi-snapshot-controller may report Available=False while Waiting for Deployment during DualReplica disruptive serial tests (e.g. NoExecuteTaintManager)"
+						return "csi-snapshot-controller may report Available=False while Waiting for Deployment during two-node disruptive serial tests (e.g. NoExecuteTaintManager)"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// DualReplica / TNF: serial NoExecuteTaintManager tests NoExecute-taint a control-plane
// node (masters are also workers), so Deployments briefly cannot schedule.
if isTwoNode {
switch operator {
case "csi-snapshot-controller":
if strings.Contains(condition.Message, `Waiting for Deployment`) {
return "csi-snapshot-controller may report Available=False while Waiting for Deployment during DualReplica disruptive serial tests (e.g. NoExecuteTaintManager)"
}
// Two-node topology: serial NoExecuteTaintManager tests NoExecute-taint a control-plane
// node (masters are also workers), so Deployments briefly cannot schedule.
if isTwoNode {
switch operator {
case "csi-snapshot-controller":
if strings.Contains(condition.Message, `Waiting for Deployment`) {
return "csi-snapshot-controller may report Available=False while Waiting for Deployment during two-node disruptive serial tests (e.g. NoExecuteTaintManager)"
}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/monitortests/clusterversionoperator/legacycvomonitortests/operators.go`
around lines 90 - 97, Update the csi-snapshot-controller exception comment and
returned message in the isTwoNode branch to describe both DualReplica and
HighlyAvailableArbiterMode, or use the generic “two-node topology” wording. Keep
the existing condition matching and exception behavior unchanged.

Source: Coding guidelines

…ntManager

Serial NoExecuteTaintManager tests taint a control-plane node on DualReplica
(masters are also workers), briefly driving csi-snapshot-controller and
packageserver Available=False. Mirror the existing upgrade-path exceptions in
the stable-system monitor so TNF serial jobs do not fail on these expected
blips.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: ehila <ehila@redhat.com>
@eggfoobar
eggfoobar force-pushed the allow-dualreplica-stable-cvo-available-blips branch from f4a867c to 64bb99a Compare August 11, 2026 14:01
@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

openshift-ci Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

@eggfoobar: 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-aws-ovn-microshift-serial 64bb99a link true /test e2e-aws-ovn-microshift-serial

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants