Skip to content

hypershift-hostedcluster-workflow: Fix NodePool wait to use dynamic spec.clusterName lookup - #83467

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
redhat-chai-bot:fix-nodepool-wait-naming
Aug 14, 2026
Merged

hypershift-hostedcluster-workflow: Fix NodePool wait to use dynamic spec.clusterName lookup#83467
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
redhat-chai-bot:fix-nodepool-wait-naming

Conversation

@redhat-chai-bot

Copy link
Copy Markdown
Contributor

Summary

Fix the NodePool readiness wait introduced in #83460 to correctly discover NodePools by spec.clusterName instead of using the cluster name directly.

Problem

HyperShift creates NodePools with availability zone suffixes (e.g. ${CLUSTER_NAME}-us-east-1a), but the wait used nodepool/${CLUSTER_NAME} — which doesn't match any actual resource:

Error from server (NotFound): nodepools.hypershift.openshift.io "1539d32c4ab384a00337" not found

Fix

  • Use oc get nodepool -n clusters with a jsonpath filter on spec.clusterName to dynamically discover all NodePools belonging to the cluster
  • Wait for each discovered NodePool individually
  • On failure, dump all matching NodePools' YAML for diagnostics (not just one by hardcoded name)
  • Add a fallback guard that lists all NodePools if none match, for debugging

Fixes the regression introduced by #83460.


AI-generated. Review for accuracy.

@deepsm007 requested in Slack thread

HyperShift creates NodePools with AZ suffixes (e.g. cluster-us-east-1a)
rather than using the bare cluster name. The previous oc wait used
nodepool/${CLUSTER_NAME} which failed with NotFound.

Replace the hardcoded name with a jsonpath lookup on spec.clusterName to
discover all NodePools belonging to this cluster, then wait for each one
individually. Also fix the failure diagnostics to dump all matching
NodePools instead of the non-existent one.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@redhat-chai-bot, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 11 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

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

Review profile: CHILL

Plan: Pro Plus

Run ID: ef1c75e0-bfcb-49ec-89e2-1a9e65d0ece0

📥 Commits

Reviewing files that changed from the base of the PR and between 9a1ce57 and 4a997dc.

📒 Files selected for processing (1)
  • ci-operator/step-registry/hypershift/hostedcluster/create/hostedcluster/hypershift-hostedcluster-create-hostedcluster-commands.sh

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.

@openshift-ci
openshift-ci Bot requested review from Prucek and droslean August 14, 2026 20:09
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@redhat-chai-bot: the pj-rehearse plugin accommodates running rehearsal tests for the changes in this PR. Expand 'Interacting with pj-rehearse' for usage details. The following rehearsable tests have been affected by this change:

Test name Repo Type Reason
pull-ci-opendatahub-io-rest-proxy-release-v0.10.0-fvt opendatahub-io/rest-proxy presubmit Registry content changed
pull-ci-opendatahub-io-modelmesh-serving-release-v0.11.0-alpha-fvt-odh-manifests opendatahub-io/modelmesh-serving presubmit Registry content changed
pull-ci-openshift-cincinnati-operator-master-scorecard openshift/cincinnati-operator presubmit Registry content changed
pull-ci-openshift-cincinnati-operator-master-operator-e2e-hypershift-local-graph-data openshift/cincinnati-operator presubmit Registry content changed
pull-ci-trustyai-explainability-trustyai-service-operator-main-trustyai-service-operator-e2e trustyai-explainability/trustyai-service-operator presubmit Registry content changed
pull-ci-openshift-vertical-pod-autoscaler-operator-main-scorecard openshift/vertical-pod-autoscaler-operator presubmit Registry content changed
pull-ci-openshift-vertical-pod-autoscaler-operator-release-5.2-scorecard openshift/vertical-pod-autoscaler-operator presubmit Registry content changed
pull-ci-openshift-vertical-pod-autoscaler-operator-release-5.1-scorecard openshift/vertical-pod-autoscaler-operator presubmit Registry content changed
pull-ci-openshift-vertical-pod-autoscaler-operator-release-5.0-scorecard openshift/vertical-pod-autoscaler-operator presubmit Registry content changed
pull-ci-openshift-vertical-pod-autoscaler-operator-release-4.23-scorecard openshift/vertical-pod-autoscaler-operator presubmit Registry content changed
pull-ci-openshift-vertical-pod-autoscaler-operator-release-4.22-scorecard openshift/vertical-pod-autoscaler-operator presubmit Registry content changed
pull-ci-openshift-vertical-pod-autoscaler-operator-release-4.21-scorecard openshift/vertical-pod-autoscaler-operator presubmit Registry content changed
pull-ci-openshift-vertical-pod-autoscaler-operator-release-4.20-scorecard openshift/vertical-pod-autoscaler-operator presubmit Registry content changed
pull-ci-openshift-vertical-pod-autoscaler-operator-release-4.19-scorecard openshift/vertical-pod-autoscaler-operator presubmit Registry content changed
pull-ci-openshift-vertical-pod-autoscaler-operator-release-4.18-scorecard openshift/vertical-pod-autoscaler-operator presubmit Registry content changed
pull-ci-opendatahub-io-modelmesh-release-v0.11.0-alpha-fvt opendatahub-io/modelmesh presubmit Registry content changed
pull-ci-openshift-service-mesh-sail-operator-main-ocp-4.22-e2e-ocp openshift-service-mesh/sail-operator presubmit Registry content changed
pull-ci-openshift-service-mesh-sail-operator-main-ocp-4.22-scorecard openshift-service-mesh/sail-operator presubmit Registry content changed
pull-ci-opendatahub-io-kueue-dev-e2e-odh-kueue opendatahub-io/kueue presubmit Registry content changed
pull-ci-trustyai-explainability-trustyai-explainability-main-trustyai-explainability-e2e trustyai-explainability/trustyai-explainability presubmit Registry content changed
pull-ci-opendatahub-io-modelmesh-runtime-adapter-release-v0.11.0-alpha-fvt opendatahub-io/modelmesh-runtime-adapter presubmit Registry content changed
pull-ci-opendatahub-io-feast-master-e2e-in-cluster-presubmit opendatahub-io/feast presubmit Registry content changed
pull-ci-opendatahub-io-codeflare-operator-main-e2e-odh-cfo opendatahub-io/codeflare-operator presubmit Registry content changed
pull-ci-opendatahub-io-kubeflow-v1.9-branch-odh-notebook-controller-e2e opendatahub-io/kubeflow presubmit Registry content changed
pull-ci-opendatahub-io-kubeflow-v1.10-branch-odh-notebook-controller-e2e opendatahub-io/kubeflow presubmit Registry content changed

A total of 78 jobs have been affected by this change. The above listing is non-exhaustive and limited to 25 jobs.

A full list of affected jobs can be found here
Prior to this PR being merged, you will need to either run and acknowledge or opt to skip these rehearsals.

Interacting with pj-rehearse

Comment: /pj-rehearse to run up to 5 rehearsals
Comment: /pj-rehearse skip to opt-out of rehearsals
Comment: /pj-rehearse {test-name}, with each test separated by a space, to run one or more specific rehearsals
Comment: /pj-rehearse more to run up to 10 rehearsals
Comment: /pj-rehearse max to run up to 25 rehearsals
Comment: /pj-rehearse auto-ack to run up to 5 rehearsals, and add the rehearsals-ack label on success
Comment: /pj-rehearse list to get an up-to-date list of affected jobs
Comment: /pj-rehearse abort to abort all active rehearsals
Comment: /pj-rehearse network-access-allowed to allow rehearsals of tests that have the restrict_network_access field set to false. This must be executed by an openshift org member who is not the PR author

Once you are satisfied with the results of the rehearsals, comment: /pj-rehearse ack to unblock merge. When the rehearsals-ack label is present on your PR, merge will no longer be blocked by rehearsals.
If you would like the rehearsals-ack label removed, comment: /pj-rehearse reject to re-block merging.

@deepsm007

Copy link
Copy Markdown
Contributor

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@deepsm007: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@deepsm007

Copy link
Copy Markdown
Contributor

/lgtm
/pj-rehearse ack

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Aug 14, 2026
@openshift-ci

openshift-ci Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deepsm007, redhat-chai-bot

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 Aug 14, 2026
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@deepsm007: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-merge-bot openshift-merge-bot Bot added the rehearsals-ack Signifies that rehearsal jobs have been acknowledged label Aug 14, 2026
@openshift-merge-bot
openshift-merge-bot Bot merged commit a7a4089 into openshift:main Aug 14, 2026
10 of 15 checks passed
@openshift-ci

openshift-ci Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

@redhat-chai-bot: The following tests 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/rehearse/opendatahub-io/rest-proxy/release-v0.10.0/fvt 4a997dc link unknown /pj-rehearse pull-ci-opendatahub-io-rest-proxy-release-v0.10.0-fvt
ci/rehearse/openshift/lvm-operator/release-4.21/e2e-aws-hypershift 4a997dc link unknown /pj-rehearse pull-ci-openshift-lvm-operator-release-4.21-e2e-aws-hypershift
ci/rehearse/opendatahub-io/feast/master/e2e-in-cluster-presubmit 4a997dc link unknown /pj-rehearse pull-ci-opendatahub-io-feast-master-e2e-in-cluster-presubmit

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

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. rehearsals-ack Signifies that rehearsal jobs have been acknowledged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants