Skip to content

OPCT-379: Fix PinnedImages test to respect node taints#30969

Draft
bshaw7 wants to merge 2 commits intoopenshift:release-4.21from
bshaw7:OPCT-379-backport-pinnedimages-4.21
Draft

OPCT-379: Fix PinnedImages test to respect node taints#30969
bshaw7 wants to merge 2 commits intoopenshift:release-4.21from
bshaw7:OPCT-379-backport-pinnedimages-4.21

Conversation

@bshaw7
Copy link
Copy Markdown
Contributor

@bshaw7 bshaw7 commented Apr 7, 2026

Backport of OCPBUGS-78617 fix from main to release-4.21.

Problem

The PinnedImages conformance test was selecting worker nodes without considering node taints, causing test failures in environments with dedicated/tainted nodes (like OPCT test infrastructure).

Changes

  • Added GetReadySchedulableWorkerNodes() utility function in test/extended/util/nodes.go to filter out nodes with NoSchedule/NoExecute taints and nodes with control-plane/master roles
  • Updated addWorkerNodesToCustomPool() in pinnedimages.go to use the new utility function
  • Tests now skip gracefully when insufficient schedulable worker nodes exist (handles SNO and compact cluster scenarios)

This ensures the test works correctly across cluster topologies, including SNO and compact clusters.

Original PR

#30913

Related

/cc @bshaw7

Backport of OCPBUGS-78617 fix from main to release-4.21.

The PinnedImages conformance test was selecting worker nodes without
considering node taints, causing test failures in environments with
dedicated/tainted nodes (like OPCT test infrastructure).

Changes:
- Added GetReadySchedulableWorkerNodes() utility function in
  test/extended/util/nodes.go to filter out nodes with NoSchedule/NoExecute
  taints and nodes with control-plane/master roles
- Updated addWorkerNodesToCustomPool() in pinnedimages.go to use the new
  utility function
- Tests now skip gracefully when insufficient schedulable worker nodes exist
  (handles SNO and compact cluster scenarios)

This ensures the test works correctly across cluster topologies.

Original PR: openshift#30913
@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 7, 2026
@openshift-ci-robot
Copy link
Copy Markdown

openshift-ci-robot commented Apr 7, 2026

@bshaw7: This pull request references OPCT-379 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 task to target the "4.21.z" version, but no target version was set.

Details

In response to this:

Backport of OCPBUGS-78617 fix from main to release-4.21.

Problem

The PinnedImages conformance test was selecting worker nodes without considering node taints, causing test failures in environments with dedicated/tainted nodes (like OPCT test infrastructure).

Changes

  • Added GetReadySchedulableWorkerNodes() utility function in test/extended/util/nodes.go to filter out nodes with NoSchedule/NoExecute taints and nodes with control-plane/master roles
  • Updated addWorkerNodesToCustomPool() in pinnedimages.go to use the new utility function
  • Tests now skip gracefully when insufficient schedulable worker nodes exist (handles SNO and compact cluster scenarios)

This ensures the test works correctly across cluster topologies, including SNO and compact clusters.

Original PR

#30913

Related

/cc @bshaw7

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
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 7, 2026

@bshaw7: GitHub didn't allow me to request PR reviews from the following users: bshaw7.

Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs.

Details

In response to this:

Backport of OCPBUGS-78617 fix from main to release-4.21.

Problem

The PinnedImages conformance test was selecting worker nodes without considering node taints, causing test failures in environments with dedicated/tainted nodes (like OPCT test infrastructure).

Changes

  • Added GetReadySchedulableWorkerNodes() utility function in test/extended/util/nodes.go to filter out nodes with NoSchedule/NoExecute taints and nodes with control-plane/master roles
  • Updated addWorkerNodesToCustomPool() in pinnedimages.go to use the new utility function
  • Tests now skip gracefully when insufficient schedulable worker nodes exist (handles SNO and compact cluster scenarios)

This ensures the test works correctly across cluster topologies, including SNO and compact clusters.

Original PR

#30913

Related

/cc @bshaw7

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.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 7, 2026

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Review skipped — only excluded labels are configured. (1)
  • do-not-merge/work-in-progress

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 471c04c2-1483-4e41-b8a4-a587de8ee15d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

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

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 7, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: bshaw7
Once this PR has been reviewed and has the lgtm label, please assign dennisperiquet 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-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 7, 2026

@bshaw7: 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.

@bshaw7 bshaw7 marked this pull request as draft April 7, 2026 14:36
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 7, 2026
@mtulio
Copy link
Copy Markdown
Contributor

mtulio commented Apr 7, 2026

We are observing the test is not impacting 4.21 on OCP configuration for platform external, let's hold this PR until ensuring we need or not this change.

https://prow.ci.openshift.org/job-history/gs/test-platform-results/logs/periodic-ci-openshift-release-main-nightly-4.21-opct-external-aws-ccm

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

Labels

do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. 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.

3 participants