-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Pod cannot ping each other in multi-host scenario - failed to add vxlanRoute (XXX -> X.Y.0.0): invalid argument #844
Comments
What I think is interesting is " |
Yes, that line is the smoking gun. What other nodes do you have? Can you output the flannel annotation you have on your nodes (something like Somehow, I think one of your nodes has a PublicIP of 172.16.0.0 which it shouldn't do. The 172.16/16 range should be reserved for the vxlan network. |
I have a similar issue, same versions of flannel, k8s. Using vxlan, flannel is up and running, no errors in the logs (not even the error above).
I've tried combinations of k8s as far back as 1.6 and flannel as far back as 0.8, all with the same results. I'm able to connect pod <-> pod and host <-> pod as long as the pods are on that host. All hosts can communicate with each other without issues. I've spent almost a month fiddling with iptables, routes, etc and cannot figure this out. I'm seeing traffic via tcpdump on the cni0 bridge, but my pods aren't getting it. IIRC, last night I was using iptstate and was seeing udp traffic on the bridge when I expected tcp. Maybe this is the issue? It's also possible I was seeing something else... Should I open another ticket, or piggy back on this one? |
I'm running into the same issue it seems.
@tomdee none of my nodes have that as the public ip annotation (they're all correct). |
I don't see a route for
Flannel logs
|
I had this error too when transitioning from 1.7.5 to 1.8.2. |
@camflan please open a different issue. I suspect you just need "iptables -P FORWARD ACCEPT" |
@jhorwit2 @senwangrockets I think the problem could be that you have the same IP range configured for your Docker bridge as you do for flannel. If you're using kubeadm, did you specify |
@tomdee that was my issue. Sorry I forgot to post after I realized that. |
@tomdee I initialised my cluster with same kubeadm command
I have 4 host cluster 2 of them works fine but other 2 fails to schedule container Always in state of "ContainerCreating" Errors which I see is
|
Having the same problem. 4 nodes, 2 masters and 2 workers. the .167 and .168 are the workers and .167 is the one that's having issues adding the route. Output of: kubectl get nodes -o yaml |grep flannel.alpha
|
Are the invalid gateway addresses treated as multicast address by linux? |
I am not sure if this will help, but you might want to delete all the network/bridge devices before initializing k8s again. I had similar issues but I destroyed and created new VMs which resolved my similar issue. However, the issues might not be the same. After reading flannel documentation, it was not obvious to me that flannel works one cidr only. But after the change things are much better, although with other issues. |
@senwangrockets @kumarganesh2814 ,I have the same problem. Have you solved it ? |
I got the same problem here is how I resolved. I have a 1 master 2 worker nodes setup, all of them are VMs. they have fixed ip and hostnames in my local are network. master and 1 worker node is ok. 1 worker node has this problem. when I see something like this: so I delete the node, manually delete the associated pods from master, and did TLDR: not sure whether it would work but: delete worker node from master, worker node |
I also faced this problem,this is because the network interface which flanneld use can't access each other,i use another network interface then sovled |
mine so weird on this flannel.alpha.coreos.com/public-ip: 10.0.3.15. this is my master, now my master cannot ping others flannel. what is actually happened here and how to edit the flannel.alpha on my master?
|
check the flannel.1 is conflicted with the docker0's ip, if conflicted, change the subnet's ip range |
sorry, to whom your answer go with? |
@rthamrin i followed this question: "failed to add vxlanRoute (10.244.2.0/24 -> 10.244.2.0): invalid argument" |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Pod from different host cannot ping each others.
Flannel logs as below:
Your Environment
The text was updated successfully, but these errors were encountered: