-
-
Notifications
You must be signed in to change notification settings - Fork 866
Implement support for IPv6 networking in tasks #8801
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
Conversation
Triggering the unit tests again. Was some weird "data race" error. |
CNI networking test is failing:
Looks like this is the failing test:
|
Signed-off-by: Ramiro Balado <baladoramiro+github@gmail.com>
Signed-off-by: Ramiro Balado <baladoramiro+github@gmail.com>
Signed-off-by: Ramiro Balado <baladoramiro+github@gmail.com>
Signed-off-by: Ramiro Balado <baladoramiro+github@gmail.com>
Signed-off-by: Ramiro Balado <baladoramiro+github@gmail.com>
Signed-off-by: Ramiro Balado <baladoramiro+github@gmail.com>
Signed-off-by: Ramiro Balado <baladoramiro+github@gmail.com>
Thanks for fixing the tests! Will review soon |
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 is looking good to me. I tested this by running a task that would run ip addr
so I could see the networking setup inside the container.
With IPv6 enabled I got this, which shows an eth2
interface running IPv6:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host proto kernel_lo
valid_lft forever preferred_lft forever
2: eth2@if7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether b6:07:74:53:07:23 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet6 fd9c:31a6:c759::4/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::b407:74ff:fe53:723/64 scope link proto kernel_ll
valid_lft forever preferred_lft forever
3: eth0@if8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether 26:24:9f:17:af:35 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 10.80.0.4/16 brd 10.80.255.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::2424:9fff:fe17:af35/64 scope link proto kernel_ll
valid_lft forever preferred_lft forever
And without IPv6 enabled I saw what we are used to seeing, only one veth for IPv4:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host proto kernel_lo
valid_lft forever preferred_lft forever
2: eth0@if19: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether 76:ae:2d:1c:67:6a brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 10.80.0.18/16 brd 10.80.255.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::74ae:2dff:fe1c:676a/64 scope link proto kernel_ll
valid_lft forever preferred_lft forever
Added a release note to OP |
Signed-off-by: Taylor Silva <dev@taydev.net>
Added a commit just to fix some style related stuff. This PR seems fine as-is to me. It appears to work as described and does not break existing setups that only use IPv4. Once CI is done running I'll merge. Sorry it took so long for me to get around to this PR btw @Qjammer. I've been busy with work and finally found some weekend time to look at this. |
I'll make PR's to add these env vars to the bosh and helm chart |
From concourse/concourse#8801 Signed-off-by: Taylor Silva <dev@taydev.net>
from concourse/concourse#8801 Signed-off-by: Taylor Silva <dev@taydev.net>
Changes proposed by this PR
closes #5919
--containerd-v6-enable
) to enable ipv6 in tasks--containerd-v6-pool
) to configure subnet from which containers get their address--containerd-v6-disable-masquerade
) to disable masquerading of ipv6 connections using the worker addressRelease Note
CONCOURSE_CONTAINERD_V6_ENABLE
/--containerd-v6-enable
config option on theconcourse worker
command to enable IPv6 support in containerd containers. There are two IPv6 config's you can change.--containerd-v6-pool
to specify the IPv6 subnet to use. Default subnet isfd9c:31a6:c759::/64
.--containerd-v6-disable-masquerade
to disable IPMasq, which is on by default if you use IPv6.