Repository navigation
Conversation
With static networking and root on iSCSI, nodes lose their root disk on the second boot, after machine-config-daemon-firstboot has pivoted to the payload OS. On that boot the initramfs activates the iSCSI NIC with a profile that nm-initrd-generator builds from ip=<mac>:ibft. MCO's NetworkManager-clean-initrd-state, opted in for baremetal, then finds a different profile for that NIC in /etc (the user's static keyfile) and runs "ip addr flush" on it. That cuts the iSCSI session, and the root disk fails with EIO once recovery_tmo expires. Confirmed with a dry run of the script on a live node. The boot-image OS escapes this only because nothing pulls in network-online.target there, which the unit is WantedBy. Until MCO handles it (OCPBUGS-143026), add a drop-in that skips the unit when rd.iscsi.firmware or netroot is on the kernel command line, the same check coreos-teardown-initramfs uses to keep iSCSI networking up. AGENT_ISCSI_SKIP_NM_CLEAN_INITRD_STATE=false reproduces the bug. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@bfournie: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
/approve @bfournie please check if it's really needed |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andfasano The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Workaround for OCPBUGS-143026, needed by the ISCSI boot mode with static networking (#1992).
With root on iSCSI and static networking, nodes lose their root disk on every boot after firstboot. On those boots the initramfs activates the iSCSI NIC with a profile that nm-initrd-generator builds from
ip=<mac>:ibft. MCO'sNetworkManager-clean-initrd-state(opted in for baremetal) then finds the user's static keyfile for the same NIC in/etcand runsip addr flushon it, which cuts the iSCSI session. Oncerecovery_tmo(120s) expires, the root disk fails with I/O errors. In agent installs this hits the boot aftermachine-config-daemon-firstbootpivots to the payload OS, so the install fails.This adds a MachineConfig drop-in for the master and worker roles that skips the unit when
rd.iscsi.firmwareornetrootis on the kernel command line. That is the same checkcoreos-teardown-initramfsuses to keep iSCSI networking up, and the same change proposed for MCO. It applies only withAGENT_E2E_TEST_BOOT_MODE=ISCSI, andAGENT_ISCSI_SKIP_NM_CLEAN_INITRD_STATE=falsedisables it to reproduce the bug.Tested together with #1992: a compact (3-node) install with
AGENT_E2E_TEST_BOOT_MODE=ISCSIandAGENT_E2E_TEST_SCENARIO=COMPACT_IPV4completed, with all nodes Ready on their static IPs, and a node rebooted after installation came back Ready. On the nodes:This is a temporary workaround. If the MCO fix for OCPBUGS-143026 merges first, this PR can be closed.
🤖 Generated with Claude Code