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

Cilium fails to start with IPv4 disabled #15082

Closed
ken-letter opened this issue Feb 23, 2021 · 6 comments
Closed

Cilium fails to start with IPv4 disabled #15082

ken-letter opened this issue Feb 23, 2021 · 6 comments
Labels
kind/bug This is a bug in the Cilium logic. kind/community-report This was reported by a user in the Cilium community, eg via Slack. needs/triage This issue requires triaging to establish severity and next steps. stale The stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale.

Comments

@ken-letter
Copy link

ken-letter commented Feb 23, 2021

Bug report

General Information

  • Cilium version 1.9.3
  • Kernel version 5.10.12-200.fc33.x86_64
  • Orchestration system version in use kubectl version
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.4", GitCommit:"e87da0bd6e03ec3fea7933c4b5263d151aafd07c", GitTreeState:"clean", BuildDate:"2021-02-18T16:12:00Z", GoVersion:"go1.15.8", Compiler:"gc", Platform:"linux/amd64"}

How to reproduce the issue

  1. Setup kubernetes with kubeadm, using only IPv6 subnets
  2. install cilium with helm as follows: helm install cilium cilium/cilium --version 1.9.4 --namespace kube-system --set ipv4.enabled=false --set ipv6.enabled=true
  3. observe cilium pods fail to start successfully:
$ kubectl get pods --all-namespaces
NAMESPACE     NAME                                                                     READY   STATUS              RESTARTS   AGE
kube-system   cilium-operator-5cdf66574-4hq7n                                          1/1     Running             0          55s
kube-system   cilium-operator-5cdf66574-j4sl2                                          0/1     Pending             0          55s
kube-system   cilium-xwg4g                                                             0/1     Error               2          55s
...

$ kubectl logs --namespace kube-system cilium-xwg4g
...
level=info msg="  --enable-ipv4='false'" subsys=daemon
level=info msg="  --ipv4-node='auto'" subsys=daemon
...
level=fatal msg="postinit failed" error="external IPv4 node address could not be derived, please configure via --ipv4-node" subsys=daemon

@ken-letter ken-letter added the kind/bug This is a bug in the Cilium logic. label Feb 23, 2021
@pchaigno pchaigno added needs/triage This issue requires triaging to establish severity and next steps. kind/community-report This was reported by a user in the Cilium community, eg via Slack. labels Mar 1, 2021
@nebril
Copy link
Member

nebril commented Mar 2, 2021

By looking at the code: https://github.com/cilium/cilium/blob/v1.9.3/pkg/node/address.go#L305 it seems like we do not support IPv6 only when tunneling is enabled (tunneling is enabled by default). Can you run with tunneling disabled (--set tunnel=disabled)?

@pchaigno
Copy link
Member

pchaigno commented Mar 2, 2021

@tgraf changed this condition in 0c22956, maybe he has more info on why this is unsupported.

@ken-letter
Copy link
Author

Disabling does allow cilium to proceed launching, but this leaves the networking in a fairly useless state.

@stale
Copy link

stale bot commented Jun 4, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale The stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale. label Jun 4, 2021
@stale
Copy link

stale bot commented Jun 26, 2021

This issue has not seen any activity since it was marked stale. Closing.

@stale stale bot closed this as completed Jun 26, 2021
@notpeelz
Copy link

Can this issue be reopened? Why is the ipv4 stack required for --routing-mode tunnel?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug This is a bug in the Cilium logic. kind/community-report This was reported by a user in the Cilium community, eg via Slack. needs/triage This issue requires triaging to establish severity and next steps. stale The stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale.
Projects
None yet
Development

No branches or pull requests

4 participants