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
join existing flannel network #435
Comments
If you followed those instructions, then your running the latest master code right? Your I'm a little concerned that there could be multiple distinct etcd servers running here. It's odd that you're not able to connect to etcd from the second host. |
@tomdee Since I used In fact there are two etcd-processes. I followed the instructions of the guide and started on both nodes an etcd process. They found each other and raft succeeded.
What confuses me is the Nevertheless the node1 that starts flannel first has the following
with flannel output:
UPDATE: I see flannel-config But still I don't get it why I cannot join with node2.. @tomdee what dump exactly do you want? a real dump of all keys/values within etcd or the logs? |
any idea? |
UPDATE: In the meantime I am reading the docker cookbook which contains in the networking chapter (chapter 3) a sub-chapter (3.13) contibuted by Eugene Yakubovich who is (afaik) mainly responsible for flannel. He proposed the usage of the SETUP:
on master:
which produces following output:
...So far so good. Let's go to the second node.. on worker node:
which results again in the known output:
Any idea what's wrong here? Could the proxy settings be part of the problem? I don't think so. If that was the case docker wouldn't be able to pull images from the hub.... |
Also tried it with a 10.0.0.0/24 Subnet...with the exact same results |
You're setting the network to a small range (/26) - people typically use a /16 for the network. Since you're not setting
I suspect there's an off-by-one bug in the subnet allocation logic when the Network is only twice the size of the SubnetLen. It only allows a single host to be allocated. Although this looks like a bug, I'm not sure how quickly it will be fixed given that this is a slightly odd scenario. Could you try using a larger network and/or a small SubnetLen? |
NOOOOOOOO......it worked...6 weeks of headache are more or less over. In the meantime I/we managed to create a cluster with docker overlay network and dockerswarm...it helped a lot of understanding more of the processes within such a cluster and the setup...but of course our solution is not so sophisticated as a k8s solution. For me this issue could be closed. Do you want to leave it open until the bug is solved? |
This code is relevant
|
Hello together,
I am working on 2 ubuntu-14.04 aws-ec2 instances.
I have setup an etcd-cluster as described here (even though it's is old): https://xelatex.github.io/2015/10/10/Flannel-for-Docker-Overlay-Network/
The cluster works, the raft succeeded and when I enter a key on one of the two nodes I can also retrieve it on the other one. Therefore I set the flannel-config:
etcdctl set /coreos.com/network/config '{"Network": "10.43.116.192/27", "Backend": { "Type": "vxlan"}} '
As aforementioned I can set it on one node and get it on the other one.
Here comes the issue:
I am able to start flannel as described in that post on my first node. But when I start it on the other one I receive the following error message:
And when I add the
--etcd-endpoints=http://10.43.116.137:4001
flag I receive the following ouput:And with port 2379 I get the same error as without the flag.
Where am I wrong? Is there a connection to the fact that I only have linux kernel 3.13 instead of 3.16, which then messes with vxlan? If so, why can I successfully set everything up as described in the guide....on a single node
Annotations:
aws-vpc
backend. But I am just a minion myself and therefore don't have the required policies for my aws-role (e.g. ec2:CreateRoute)The text was updated successfully, but these errors were encountered: