Docker Community Forums

Share and learn in the Docker community.

Hybrid Swarm: cannot connect to a Linux Cassandra from a Windows container


(Srancurel) #1

Hello,
We are currently building a hybrid swarm but running into a few problems with the connection to Cassandra service. The swarm is composed of two nodes (one linux and one Windows 10), several linux services( Cassandra,…) and several Windows services.(Cqlsh…).

The problem we are facing is that when trying to connect to Cassandra from the Cqlsh container it fails with the error: Unable to connect to any servers’, {‘10.0.0.14’: OperationTimedOut(‘errors=None, last_host=None’,)
And we know that the Cassandra service name is resolved within the Cqlsh container (we can ping it).

But if we use the host IP address it is able to connect:
Connected to Test Cluster at 192.168.205.225:9042.
[cqlsh 5.0.1 | Cassandra 3.10 | CQL spec 3.4.4 | Native protocol v4]
Use HELP for help.
WARNING: pyreadline dependency missing. Install to enable tab completion.

What is very strange is that we duplicated the Cassandra container to try to connect to the first cassandra and it works. We can connect with the Service name, with IP address of the container, with the host IP address too, all of these are working from a Linux Cassandra.

Is anybody run accross this issue?

Thanks in advance.

Manager: Windows 10 version 1709 (OS build 16299.192)
Docker version:
Client:
Version: 18.03.0-ce-rc3
API version: 1.37
Go version: go1.9.4
Git commit: e730959
Built: Thu Mar 8 20:11:53 2018
OS/Arch: windows/amd64
Experimental: false
Orchestrator: swarm

Server:
Engine:
Version: 18.03.0-ce-rc3
API version: 1.37 (minimum version 1.24)
Go version: go1.9.4
Git commit: e730959
Built: Thu Mar 8 20:26:40 2018
OS/Arch: windows/amd64
Experimental: true

Worker: Linux Ubuntu 16.04
Docker version:
Client:
Version: 17.12.1-ce
API version: 1.35
Go version: go1.9.4
Git commit: 7390fc6
Built: Tue Feb 27 22:17:40 2018
OS/Arch: linux/amd64

Server:
Engine:
Version: 17.12.1-ce
API version: 1.35 (minimum version 1.12)
Go version: go1.9.4
Git commit: 7390fc6
Built: Tue Feb 27 22:16:13 2018
OS/Arch: linux/amd64
Experimental: true