Skip to content

MGMT-24115: [release-ocm-2.16] allow empty image checksum/url in getChecksumAndURL#10325

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift:release-ocm-2.16from
omer-vishlitzky:mgmt-24115-release-ocm-2.16
May 14, 2026
Merged

MGMT-24115: [release-ocm-2.16] allow empty image checksum/url in getChecksumAndURL#10325
openshift-merge-bot[bot] merged 1 commit into
openshift:release-ocm-2.16from
omer-vishlitzky:mgmt-24115-release-ocm-2.16

Conversation

@omer-vishlitzky
Copy link
Copy Markdown
Contributor

Cherry-pick of #10246 to release-ocm-2.16.

https://redhat.atlassian.net/browse/MGMT-24115

Day-2 node CSR auto-approval fails because no Machine object is created for BMH-backed nodes. Since OCP 4.10, openshift-install generates Machine ProviderSpecs with customDeploy and empty image checksum/url. The empty-string validation rejects these, preventing spoke Machine creation.

Removes the empty-string checks while keeping all nil/type safety checks.

Since OCP 4.10, openshift-install generates Machine ProviderSpecs
with customDeploy instead of image data. The image checksum and
url fields are empty strings. Commit b19f29b added empty-string
validation that treats these as fatal errors, preventing spoke
Machine creation for day-2 BMH-backed nodes. The spoke Machine
is needed by cluster-machine-approver to auto-approve CSRs.

Removes the empty-string checks while keeping all nil/type safety checks.
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label May 14, 2026
@openshift-ci-robot
Copy link
Copy Markdown

openshift-ci-robot commented May 14, 2026

@omer-vishlitzky: This pull request references MGMT-24115 which is a valid jira issue.

Details

In response to this:

Cherry-pick of #10246 to release-ocm-2.16.

https://redhat.atlassian.net/browse/MGMT-24115

Day-2 node CSR auto-approval fails because no Machine object is created for BMH-backed nodes. Since OCP 4.10, openshift-install generates Machine ProviderSpecs with customDeploy and empty image checksum/url. The empty-string validation rejects these, preventing spoke Machine creation.

Removes the empty-string checks while keeping all nil/type safety checks.

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 May 14, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

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: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 3d94f4cf-6fff-4c39-b209-b685bc6a087c

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

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

@openshift-ci openshift-ci Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 14, 2026
@openshift-ci openshift-ci Bot requested review from carbonin and eliorerz May 14, 2026 01:38
@codecov
Copy link
Copy Markdown

codecov Bot commented May 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 43.99%. Comparing base (a600781) to head (b5a29f8).

Additional details and impacted files

Impacted file tree graph

@@                 Coverage Diff                  @@
##           release-ocm-2.16   #10325      +/-   ##
====================================================
- Coverage             43.99%   43.99%   -0.01%     
====================================================
  Files                   415      415              
  Lines                 72074    72070       -4     
====================================================
- Hits                  31709    31704       -5     
- Misses                37479    37480       +1     
  Partials               2886     2886              
Files with missing lines Coverage Δ
...nal/controller/controllers/bmh_agent_controller.go 76.09% <ø> (-0.09%) ⬇️

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@omer-vishlitzky
Copy link
Copy Markdown
Contributor Author

/retest

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 14, 2026

@omer-vishlitzky: 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.

@gamli75
Copy link
Copy Markdown
Contributor

gamli75 commented May 14, 2026

/approve
/lgtm

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

openshift-ci Bot commented May 14, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gamli75, omer-vishlitzky

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 May 14, 2026
@openshift-merge-bot openshift-merge-bot Bot merged commit 6d1d94e into openshift:release-ocm-2.16 May 14, 2026
15 checks passed
@omer-vishlitzky
Copy link
Copy Markdown
Contributor Author

/cherry-pick release-ocm-2.15

@openshift-cherrypick-robot
Copy link
Copy Markdown

@omer-vishlitzky: new pull request created: #10338

Details

In response to this:

/cherry-pick release-ocm-2.15

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.

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. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants