OCPBUGS-65847: vsphere: enable DHCP4/DHCP6 based on machine network I… - #10123
OCPBUGS-65847: vsphere: enable DHCP4/DHCP6 based on machine network I…#10123rbbratta wants to merge 1 commit into
Conversation
…P families This commit fixes the vSphere CAPI machine generation to correctly set DHCP4 and DHCP6 flags based on the InstallConfig's machine network configuration. Previously, DHCP4 was always enabled and DHCP6 was only enabled when IPv6 was detected, which caused issues for IPv6-only clusters. Changes: - Replace hasIPv6MachineNetwork() with detectMachineNetworkIPFamilies() that returns both hasIPv4 and hasIPv6 by checking MachineNetwork and deprecated MachineCIDR fields - Update GenerateMachines() to set DHCP4=hasIPv4 and DHCP6=hasIPv6 instead of hard-coding DHCP4=true - Add comprehensive tests covering IPv4-only, IPv6-only, and dual-stack scenarios This ensures: - IPv4-only: DHCP4=true, DHCP6=false - IPv6-only: DHCP4=false, DHCP6=true - Dual-stack: DHCP4=true, DHCP6=true This prevents WaitingForIPAllocation failures for control-plane VMs in all network configurations by ensuring the VSphereMachine network devices match the machineconfig expectations. Generated-by: GPT-5.1
|
@rbbratta: This pull request references Jira Issue OCPBUGS-65847, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/hold building for test on dualstack-primaryv6. |
|
@rbbratta: 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. |
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
|
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close not-planned |
|
@openshift-bot: PRs cannot be closed as Not Planned. DetailsIn response to this:
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. |
…P families
This commit fixes the vSphere CAPI machine generation to correctly set DHCP4 and DHCP6 flags based on the InstallConfig's machine network configuration. Previously, DHCP4 was always enabled and DHCP6 was only enabled when IPv6 was detected, which caused issues for IPv6-only clusters.
Changes:
This ensures:
This prevents WaitingForIPAllocation failures for control-plane VMs in all network configurations by ensuring the VSphereMachine network devices match the machineconfig expectations.
Generated-by: GPT-5.1