I have a problem, And I don’t know how I can fix it. I try to install GlusterFs on Host from www.scaleway.com. But I have connections problems between my containers.
I can:
- See my hosts on my rancher interface
- Ping hosts from hosts
- Ping between containers in the same hosts
But I can’t for example ping between 2 Rancher network agents in different Hosts.
I have the same problem using Docker 1.9 or 1.10. But With 1.10 I have a bug with the CPU/Memory usage graph. So I’m currently using Docker 1.9.
I was thinking it was a specific problem with GlusterFs stack. But for example testing Owncloud Stack, when the db is on different host than the webserver. The Webserver can’t see the database. So I think it’s something specific to the network agent, and possibly with the host configuration.
My If config result:
docker0 Link encap:Ethernet HWaddr 02:42:ab:62:56:9b
inet addr:172.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80::42:abff:fe62:569b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:116235 errors:0 dropped:0 overruns:0 frame:0
TX packets:105240 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8599738 (8.5 MB) TX bytes:86753953 (86.7 MB)
eth0 Link encap:Ethernet HWaddr de:19:44:06:f0:03
inet addr:10.2.2.135 Bcast:10.255.255.255 Mask:255.255.255.254
inet6 addr: fe80::dc19:44ff:fe06:f003/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:502778 errors:0 dropped:0 overruns:0 frame:0
TX packets:493109 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1820554074 (1.8 GB) TX bytes:126697320 (126.6 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:131122 errors:0 dropped:0 overruns:0 frame:0
TX packets:131122 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:1360754700 (1.3 GB) TX bytes:1360754700 (1.3 GB)
veth60f2f0a Link encap:Ethernet HWaddr 92:c3:da:7a:dd:ff
inet6 addr: fe80::90c3:daff:fe7a:ddff/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1814 errors:0 dropped:0 overruns:0 frame:0
TX packets:1720 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:139011 (139.0 KB) TX bytes:19941488 (19.9 MB)
vethf8d6c6d Link encap:Ethernet HWaddr 26:50:3d:d6:22:eb
inet6 addr: fe80::2450:3dff:fed6:22eb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:648 (648.0 B) TX bytes:648 (648.0 B)
My Ip table result:
iptables -L -n --line-numbers -t nat
Chain PREROUTING (policy ACCEPT)
num target prot opt source destination
1 CATTLE_PREROUTING all -- 0.0.0.0/0 0.0.0.0/0
2 DOCKER all -- 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type LOCAL
Chain INPUT (policy ACCEPT)
num target prot opt source destination
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
1 DOCKER all -- 0.0.0.0/0 !127.0.0.0/8 ADDRTYPE match dst-type LOCAL
Chain POSTROUTING (policy ACCEPT)
num target prot opt source destination
1 CATTLE_POSTROUTING all -- 0.0.0.0/0 0.0.0.0/0
2 MASQUERADE all -- 172.17.0.0/16 0.0.0.0/0
3 MASQUERADE udp -- 172.17.0.2 172.17.0.2 udp dpt:4500
4 MASQUERADE udp -- 172.17.0.2 172.17.0.2 udp dpt:500
Chain CATTLE_POSTROUTING (1 references)
num target prot opt source destination
1 ACCEPT all -- 10.42.0.0/16 169.254.169.250
2 MASQUERADE tcp -- 10.42.0.0/16 !10.42.0.0/16 masq ports: 1024-65535
3 MASQUERADE udp -- 10.42.0.0/16 !10.42.0.0/16 masq ports: 1024-65535
4 MASQUERADE all -- 10.42.0.0/16 !10.42.0.0/16
5 MASQUERADE tcp -- 172.17.0.0/16 0.0.0.0/0 masq ports: 1024-65535
6 MASQUERADE udp -- 172.17.0.0/16 0.0.0.0/0 masq ports: 1024-65535
Chain CATTLE_PREROUTING (1 references)
num target prot opt source destination
Chain DOCKER (2 references)
num target prot opt source destination
1 DNAT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:4500 to:172.17.0.2:4500
2 DNAT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:500 to:172.17.0.2:500