Unable to communicate between containers on different hosts
104 views
Skip to first unread message
Craig Reeves
unread,
Jun 14, 2015, 6:27:32 PM6/14/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ranc...@googlegroups.com
Hi all,
I have spun-up a sample platform on vsphere infrastructure which looks like this:
docker-manager01 - has the latest version of the Rancher server running. This vm is CentOS 6.6.
docker-node01 - this is a RancherOS node, with version 0.3.1 (latest) version of RancherOS running.
172.17.42.1
2x2.67 GHz
1.96 GiB
18.6 GiB
3.19.3-rancher
1.6.0, build 4749651
docker-node02 - same as node01.
172.17.42.1
4x2.67 GHz
3.87 GiB
7.4 GiB
3.19.3-rancher
1.6.0, build 4749651
These docker nodes and the manager all belong to a single, common physical network. I have created a service with the following components:
2x "official" nginx container - both are on node01
2x loadbalancer - one loadbalancer is on node01, the other is on node02.
If i visit the port exposed to the common physical network that belongs to the loadbalancer on node01, I can see the nginx test page. If I visit the loadbalancer on node02, however, I get a standard haproxy 'no servers are available to handle the request' page. This looks to me like some kind of networking issue between the hosts, but I am not clued up enough with Docker to figure it out. Something that does strike me as odd, though, is that both hosts (node01 and node02) have the same IP address - 172.17.42.1
Would you be able to point me in the right direction - I am sure there is some config property I have not seen.
My /var/lib/rancher/conf/cloud-config-rancher.yml file looks like this:
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ranc...@googlegroups.com
Hi,
I have just rebuilt my environment in the same way as below, but this time with the newest version of rancher - 0.24 (much slicker, by the way!). I am experiencing the same networking behaviour. I'm not using any special configuration at all for the nginx container (maybe that is where I am going wrong?) but the load balancer has the same behaviour.
Thanks
Craig
Denise Schannon
unread,
Jul 7, 2015, 1:27:30 PM7/7/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Craig Reeves, ranc...@googlegroups.com
I was trying to reproduce and have been unable to.
Are you able to ping between the 2 containers on different hosts? Click on the “Execute shell” in the drop down of one of the containers. Ping one of the container IPs on the other host.