Skip to content

Embed IP_OPTIONS kargs in provisioning ISO#180

Open
jacob-anders wants to merge 2 commits into
openshift:release-5.0from
jacob-anders:fix-provisioning-iso-kargs
Open

Embed IP_OPTIONS kargs in provisioning ISO#180
jacob-anders wants to merge 2 commits into
openshift:release-5.0from
jacob-anders:fix-provisioning-iso-kargs

Conversation

@jacob-anders

Copy link
Copy Markdown

In OCP 4.22, the installer reuses the bootstrap VM's live ISO as the provisioning ISO served to target bare metal nodes. The bootstrap ISO has console=ttyS0 embedded in its kargs area, which causes lockups on hardware that requires specific serial port configuration (baud rate, parity, etc). Additionally, ip=dhcp — previously embedded by the now-removed copy-metal/extract-machine-os.sh step — is missing.

Pass the IP_OPTIONS environment variable (e.g. "ip=dhcp") as kernel arguments to NewRHCOSStreamReader when serving ISO images. The isoeditor replaces the entire kargs placeholder area in the ISO's GRUB config, so console=ttyS0 is overwritten with ip=dhcp, restoring parity with the 4.21 provisioning ISO kernel command line.

In OCP 4.22, the installer reuses the bootstrap VM's live ISO as the
provisioning ISO served to target bare metal nodes. The bootstrap ISO
has console=ttyS0 embedded in its kargs area, which causes lockups on
hardware that requires specific serial port configuration (baud rate,
parity, etc). Additionally, ip=dhcp — previously embedded by the
now-removed copy-metal/extract-machine-os.sh step — is missing.

Pass the IP_OPTIONS environment variable (e.g. "ip=dhcp") as kernel
arguments to NewRHCOSStreamReader when serving ISO images. The
isoeditor replaces the entire kargs placeholder area in the ISO's
GRUB config, so console=ttyS0 is overwritten with ip=dhcp, restoring
parity with the 4.21 provisioning ISO kernel command line.

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

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown

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: 4d537057-2a44-44b7-8349-1d0b1375c7bc

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.

@openshift-ci
openshift-ci Bot requested review from elfosardo and honza July 16, 2026 12:25
@openshift-ci

openshift-ci Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jacob-anders
Once this PR has been reviewed and has the lgtm label, please assign zaneb 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

When the source ISO already has kargs embedded (e.g. console=ttyS0 set
by the installer's createLiveVolume), the COREOS_KARG_EMBED_AREA regex
no longer matches, causing NewRHCOSStreamReader to fail. This prevented
ICC from serving the provisioning ISO at all, breaking node provisioning.

Retry without kargs modification so provisioning continues to work even
when the embed area cannot be rewritten.

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

openshift-ci Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

@jacob-anders: 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-metal-ipi-ovn-ipv6 6aa2b60 link true /test e2e-metal-ipi-ovn-ipv6
ci/prow/e2e-metal-ipi-ovn-ipv4 6aa2b60 link true /test e2e-metal-ipi-ovn-ipv4
ci/prow/e2e-metal-ipi-virtualmedia 6aa2b60 link true /test e2e-metal-ipi-virtualmedia

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant