-
Notifications
You must be signed in to change notification settings - Fork 1.5k
OCPBUGS-65847: vsphere: enable DHCP4/DHCP6 based on machine network I… #10123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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. |
…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