net: fix ipv6_dhcpv6_stateful configuration for rhel#4329
Closed
ani-sinha wants to merge 1 commit into
Closed
Conversation
When network type is ipv6_dhcpv6-stateful, cloud-init seems to enable dhcp for both ipv4 and ipv6. Network manager prefers dhcp over ipv4 and hence dhcp6 is not used to obtain the IP address. This is incorrect. For ipv6_dhcpv6-stateful networks, we should set: ipv4.method = disabled // disables all ipv4 dhcp ipv6.method = dhcp ipv6.may-fail = no // dhcp6 must succeed. For ifcfg files (sysconfig renderer), the corresponding changes should be: BOOTPROTO = none // instead of dhcp so that dhcp4 is disabled. IPV6_FAILURE_FATAL = yes // so that dhcp6 should succeed. This patch fixes this. This patch has been tested by Red Hat QE and it seems to fix the above issue. RHBZ: 2227767 fixes: f550c87 ("Adding BOOTPROTO = dhcp to render sysconfig dhcp6 stateful on RHEL (canonical#685)") Signed-off-by: Ani Sinha <anisinha@redhat.com>
Contributor
Author
|
Seems we have not considered a scenario where both ipv6-stateful and ipv4 dhcp is enabled. Will need to fix it. Closing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When network type is ipv6_dhcpv6-stateful, cloud-init seems to enable dhcp for both ipv4 and ipv6. Network manager prefers dhcp over ipv4 and hence dhcp6 is not used to obtain the IP address. This is incorrect. For ipv6_dhcpv6-stateful networks, we should set:
For ifcfg files (sysconfig renderer), the corresponding changes should be:
This patch fixes this. This patch has been tested by Red Hat QE and it seems to fix the above issue.
RHBZ: 2227767
fixes: f550c87 ("Adding BOOTPROTO = dhcp to render sysconfig dhcp6 stateful on RHEL (#685)")