-
Notifications
You must be signed in to change notification settings - Fork 908
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
fix(ec2): Do not enable dhcp6 on EC2 #5104
Conversation
When cloud-init finds any ipv6 information in the instance metadata, it automatically enables dhcp6 for the network interface. However, this brings up the instance with a broken IPv6 configuration because SLAAC should be used for almost all situations on EC2. Red Hat BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2092459 Fedora Pagure: https://pagure.io/cloud-sig/issue/382 Upstream: https://bugs.launchpad.net/cloud-init/+bug/1976526 Fixes: canonical#3980 Signed-off-by: Major Hayden <major@redhat.com>
9484593
to
fdb5e9f
Compare
Thanks for filing this PR @major. I just tested this on Ubuntu and noticed that IPv6 works correctly both before and after this change. On networkd directly and on networkd with netplan, both the current code and your PR work correctly. This PR does result in changes to the configuration for networkd, however since networkd accepts RA regardless of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes NetworkManager and doesn't seem to break other networking backends. Thanks for upstreaming this @major!
@holmanb Thanks for taking a look at that. 👏 |
Hi @major and @holmanb, cloud-init-22.2-4.fc37.noarch [connection] [user] [ethernet] [ipv4] [ipv6] cloud-init-23.1.1-1.fc38.noarch [connection] [user] [ethernet] [ipv4] [ipv6] I also tested cloud-init-23.2.1-1.fc39.noarch which contains major's commit, the nmconnection file does not contain ipv6 configuration, ipv6 could work due to NetworkManager default settings. Although this commit does not break anything, in my mind, as the issue has already been fixed, we don't need this change, do you agree with me? cloud-init-23.2.1-1.fc39.noarch [connection] [user] [ethernet] [ipv4] |
@xiachen-rh Ah, this might be a situation where it was fixed upstream but the fix was missing in Fedora, hence the patch I wrote. Maybe we don't need this patch from this PR after all? I'll see if I can do some more testing today without this PR applied and see if the issue is there. |
When cloud-init finds any ipv6 information in the instance metadata, it automatically enables dhcp6 for the network interface. However, this brings up the instance with a broken IPv6 configuration because SLAAC should be used for almost all situations on EC2. Red Hat BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2092459 Fedora Pagure: https://pagure.io/cloud-sig/issue/382 Upstream: https://bugs.launchpad.net/cloud-init/+bug/1976526 Fixes GH-3980 Signed-off-by: Major Hayden <major@redhat.com>
When cloud-init finds any ipv6 information in the instance metadata, it automatically enables dhcp6 for the network interface. However, this brings up the instance with a broken IPv6 configuration because SLAAC should be used for almost all situations on EC2. Red Hat BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2092459 Fedora Pagure: https://pagure.io/cloud-sig/issue/382 Upstream: https://bugs.launchpad.net/cloud-init/+bug/1976526 Fixes GH-3980 Signed-off-by: Major Hayden <major@redhat.com>
When cloud-init finds any ipv6 information in the instance metadata, it automatically enables dhcp6 for the network interface. However, this brings up the instance with a broken IPv6 configuration because SLAAC should be used for almost all situations on EC2. Red Hat BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2092459 Fedora Pagure: https://pagure.io/cloud-sig/issue/382 Upstream: https://bugs.launchpad.net/cloud-init/+bug/1976526 Fixes GH-3980 Signed-off-by: Major Hayden <major@redhat.com>
This reverts commit f0fb841. It appears that this bug was fixed already via another patch sometime between the time I found the issue and submitted the PR canonical#5104. This patch isn't needed any longer and I want to avoid causing additional problems. 😉 Signed-off-by: Major Hayden <major@redhat.com>
This reverts commit f0fb841. It appears that this bug was fixed already via another patch sometime between the time I found the issue and submitted the PR canonical#5104. This patch isn't needed any longer and I want to avoid causing additional problems. 😉 Signed-off-by: Major Hayden <major@redhat.com>
Proposed Commit Message
Additional Context
Test Steps
Checklist
Merge type