Skip to content

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

Open
omer-vishlitzky wants to merge 2 commits into
openshift:release-ocm-2.17from
omer-vishlitzky:mgmt-24115-release-ocm-2.17
Open

MGMT-24115: [release-ocm-2.17] allow empty image checksum/url in getChecksumAndURL#10324
omer-vishlitzky wants to merge 2 commits into
openshift:release-ocm-2.17from
omer-vishlitzky:mgmt-24115-release-ocm-2.17

Conversation

@omer-vishlitzky
Copy link
Copy Markdown
Contributor

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

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.17.

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: f0a33a31-e4fe-420d-9019-08b8b20eff27

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

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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 eliorerz and oourfali 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 44.34%. Comparing base (d6eaad3) to head (5b1fd13).
⚠️ Report is 2 commits behind head on release-ocm-2.17.

Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                @@
##           release-ocm-2.17   #10324   +/-   ##
=================================================
  Coverage             44.33%   44.34%           
=================================================
  Files                   416      416           
  Lines                 72807    72803    -4     
=================================================
+ Hits                  32282    32287    +5     
+ Misses                37591    37586    -5     
+ Partials               2934     2930    -4     
Files with missing lines Coverage Δ
...nal/controller/controllers/bmh_agent_controller.go 74.18% <ø> (-0.10%) ⬇️

... and 2 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

BASIC_CERT was renamed to TEST_CA_CERT on release-ocm-2.17, so the
cherry-picked test referenced an undefined symbol.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@omer-vishlitzky
Copy link
Copy Markdown
Contributor Author

/retest

2 similar comments
@omer-vishlitzky
Copy link
Copy Markdown
Contributor Author

/retest

@omer-vishlitzky
Copy link
Copy Markdown
Contributor Author

/retest

@gamli75
Copy link
Copy Markdown
Contributor

gamli75 commented May 14, 2026

/override ci/prow/e2e-ai-operator-ztp-capi

@gamli75
Copy link
Copy Markdown
Contributor

gamli75 commented May 14, 2026

/test e2e-ai-operator-ztp

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 14, 2026

@gamli75: Overrode contexts on behalf of gamli75: ci/prow/e2e-ai-operator-ztp-capi

Details

In response to this:

/override ci/prow/e2e-ai-operator-ztp-capi

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.

@omer-vishlitzky
Copy link
Copy Markdown
Contributor Author

/retest

@gamli75
Copy link
Copy Markdown
Contributor

gamli75 commented May 14, 2026

/override ci/prow/e2e-ai-operator-ztp-capi

@gamli75
Copy link
Copy Markdown
Contributor

gamli75 commented May 14, 2026

/approve
/lgtm

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 14, 2026

@gamli75: Overrode contexts on behalf of gamli75: ci/prow/e2e-ai-operator-ztp-capi

Details

In response to this:

/override ci/prow/e2e-ai-operator-ztp-capi

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.

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

/retest-required

Remaining retests: 0 against base HEAD d6eaad3 and 2 for PR HEAD 5b1fd13 in total

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD 7c94440 and 1 for PR HEAD 5b1fd13 in total

@giladravid16
Copy link
Copy Markdown
Contributor

/retest-required

1 similar comment
@giladravid16
Copy link
Copy Markdown
Contributor

/retest-required

@gamli75
Copy link
Copy Markdown
Contributor

gamli75 commented May 17, 2026

/override ci/prow/e2e-ai-operator-disconnected-capi ci/prow/e2e-ai-operator-ztp

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 17, 2026

@gamli75: Overrode contexts on behalf of gamli75: ci/prow/e2e-ai-operator-disconnected-capi, ci/prow/e2e-ai-operator-ztp

Details

In response to this:

/override ci/prow/e2e-ai-operator-disconnected-capi ci/prow/e2e-ai-operator-ztp

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.

@gamli75
Copy link
Copy Markdown
Contributor

gamli75 commented May 17, 2026

/override ci/prow/e2e-ai-operator-ztp-capi

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 17, 2026

@gamli75: Overrode contexts on behalf of gamli75: ci/prow/e2e-ai-operator-ztp-capi

Details

In response to this:

/override ci/prow/e2e-ai-operator-ztp-capi

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.

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 17, 2026

@omer-vishlitzky: 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/prow/e2e-ai-operator-ztp-capi 5b1fd13 link unknown /test e2e-ai-operator-ztp-capi
ci/prow/e2e-ai-operator-disconnected-capi 5b1fd13 link true /test e2e-ai-operator-disconnected-capi
ci/prow/e2e-ai-operator-ztp 5b1fd13 link true /test e2e-ai-operator-ztp

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. 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