-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable IPv6 on OVS internal port if needed in bridging mode
The uplink interface may have an IPv6 address, while the interface created by OVS for the internal port may not support IPv6. For example, such a situation has been observed in a Kind cluster, with IPv6 enabled on the uplink but disbled by default on new interfaces: ``` root@kind-worker:/# sysctl net.ipv6.conf.all.disable_ipv6 net.ipv6.conf.all.disable_ipv6 = 1 root@kind-worker:/# sysctl net.ipv6.conf.default.disable_ipv6 net.ipv6.conf.default.disable_ipv6 = 1 root@kind-worker:/# sysctl net.ipv6.conf.eth0.disable_ipv6 net.ipv6.conf.eth0.disable_ipv6 = 0 ``` When we detect that uplink addresses include an IPv6 address, we will now ensure that IPv6 is enabled on the bridge port (using sysctl), before attempting to move the addresses over. If it fails, we will proceed with the rest of the initialization, but moving the IP addresses to the bridge is very likely to be unsuccessful in that case. We also make bridge cleanup more robust, by saving all uplink IP addresses in the uplink config, and using the saved values to restore the uplink interface. This ensures that cleanup can succeed, even if bridge configuration failed half-way, as was the case in #5368. Fixes #5368 Signed-off-by: Antonin Bas <abas@vmware.com>
- Loading branch information
1 parent
f7a93bb
commit 07ddabd
Showing
6 changed files
with
94 additions
and
55 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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