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

Can't create ipv4 clusters if ipv6 is disabled at kernel level #1544

Closed
marcosnils opened this issue May 1, 2020 · 7 comments · Fixed by #1545
Closed

Can't create ipv4 clusters if ipv6 is disabled at kernel level #1544

marcosnils opened this issue May 1, 2020 · 7 comments · Fixed by #1545
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now.

Comments

@marcosnils
Copy link
Contributor

What happened:
Due to #1526, docker network create will constantly fail if ipv6.disable=1 is set in boot time at kernel level.

What you expected to happen:

Kind cluster to be created

How to reproduce it (as minimally and precisely as possible):

Set ipv6.disable=1 in grub, and try to create a cluster

Anything else we need to know?:

Nope, this issue has been identified already

Environment:
All

@marcosnils marcosnils added the kind/bug Categorizes issue or PR as related to a bug. label May 1, 2020
@BenTheElder
Copy link
Member

/assign
/priority critical-urgent

workaround for now is:

docker network rm kind
docker network create -d=bridge kind

we'll fix this and cut 0.8.1

@k8s-ci-robot k8s-ci-robot added the priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. label May 1, 2020
@BenTheElder
Copy link
Member

/lifecycle active

@k8s-ci-robot k8s-ci-robot added the lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor. label May 1, 2020
@BenTheElder
Copy link
Member

OK, set to repro and check exactly what behavior we can expect I think:

$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.4.0-28-generic root=UUID=<snip> ro quiet splash vt.handoff=7 ipv6.disable=1

@BenTheElder
Copy link
Member

$ kind create cluster
Creating cluster "kind" ...
ERROR: failed to create cluster: failed to ensure docker network: command "docker network create -d=bridge --ipv6 --subnet fc00:f853:ccd:e793::/64 kind" failed with error: exit status 1
Command Output: Error response from daemon: Cannot read IPv6 setup for bridge br-bc6b11ad1b57: open /proc/sys/net/ipv6/conf/br-bc6b11ad1b57/disable_ipv6: no such file or directory

I think we can detect this error and abort out of trying to do an IPv6 enabled network based on that.

@marcosnils is this what you see (presumably with a different bridge name)

@marcosnils
Copy link
Contributor Author

@marcosnils is this what you see (presumably with a different bridge name)

Exactly!

@BenTheElder
Copy link
Member

in theory if you install (go install . or make build && cp bin/kind /somewhere/kind) this is fixed in HEAD (to confirm you'll want to delete the clusters and network first and see what happens creating a cluster)

@BenTheElder BenTheElder mentioned this issue May 2, 2020
@BenTheElder
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants