Skip to content
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

WIP: Fix IPv6 issue in grub configuration on alicloud #142

Conversation

StefanWutz
Copy link
Contributor

This PR is a workaround to fix the IPv6 issues on alicloud as described in #132.

Problem:
IPv6 is disabled ipv6.disable=1 using the kernel boot parameters defined in the grub configuration /etc/default/grub. However on alicloud the kernel boot parameter ipv6.disable=1 disappeared in files /etc/default/grub and /boot/grub/grub.cfg after a vm was created. Obviously bosh-agent removed the parameter from configuration, but this is not the case as it only operate on file /boot/grub/grub.cfg. The logs are not showing any process which is manipulating the grub configuration on startup.

The file /etc/default/grubshould never be changed on a vm, so we should expect:

GRUB_CMDLINE_LINUX="vconsole.keymap=us net.ifnames=0 biosdevname=0 crashkernel=auto selinux=0 plymouth.enable=0 console=ttyS0,115200n8 earlyprintk=ttyS0 rootdelay=300 audit=1 ipv6.disable=1 cgroup_enable=memory swapaccount=1"

but we found:

GRUB_CMDLINE_LINUX="vconsole.keymap=us net.ifnames=0 biosdevname=0 crashkernel=auto selinux=0 plymouth.enable=0 console=ttyS0,115200n8 earlyprintk=ttyS0 rootdelay=300 audit=1  cgroup_enable=memory swapaccount=1  console=tty0"

The root cause is still unknown.

Workaround:
For alicloud we add a new configuration item GRUB_CMDLINE_LINUX_DEFAULT to the grub configuration specifying again the kernel boot parameter ipv6.disable=1. This change will survive the boot process and IPv6 on alicloud is disabled. Enable IPv6 using the bosh-agent works as expected (tested).

@StefanWutz StefanWutz changed the title Fix IPv6 issue in grub configuration on alicloud WIP: Fix IPv6 issue in grub configuration on alicloud Mar 1, 2021
@StefanWutz
Copy link
Contributor Author

DO NOT MERGE.

According to alicloud the Bionic stemcell image will be manipulated during image upload and the kernel boot parameter ipv6.disable will be removed. This change will not to Xenial images.

We are validating if this change can be removed or the correct behavior can be applied to the CPI.

@StefanWutz
Copy link
Contributor Author

The kernel boot parameters will be changed when uploading an Ubuntu Bionic image to alicloud. This includes the deletion of the parameter ipv6.disable=1. The modification is based on the Linux type 'Ubuntu'. Changing the Linux type to 'Other' will not lead to changed kernel boot parameters.
As discussed with alicloud team this will be fixed in the alicloud cpi, see cloudfoundry/bosh-alicloud-cpi-release#122.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants