I opened an issue on GitHub for this but maybe it’s only a configuration issue on my side:
Basically, i can’t make service links work when services are located on different hosts. For example:
- Zookeeper running on host A,
- Mesos-Master running on host B, with service link to Zookeeper service.
- VirtualBox machine create with docker-machine running boot2docker, agent added via custom host registration, 192.168.99.100 as IP being registered.
- VirtualBox machine create with docker-machine running boot2docker, agent added via custom host registration, 192.168.99.101 as IP being registered.
Both VMs are running on my local machine (192.168.0.xx). Rancher server is running on my local machine. It detects both agents and registers them fine. Containers are launched successfully, but somehow they are unable to communicate with each other when running on different hosts.
I tried to go though the documentation and troubleshooting guide with no luck:
Inside the VM, i can ping local containers with 10.42.xx.xx ips, but other VM containers with same network are unreachable.
I checked iptables on both hosts and everything seems fine:
Chain CATTLE_PREROUTING (1 references)
num target prot opt source destination
1 DNAT udp – 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type LOCAL udp dpt:4500 to:10.42.191.8:4500
2 DNAT udp – 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type LOCAL udp dpt:500 to:10.42.191.8:500
What else can i do to make cross-host networking work? Thanks for your help