I have a very basic teiid docker container, built from jboss/teiid image, and I run it with network = host
from the host, I can use clients like MongoDb Compass and others to connect to that atlas server
attaching a shell to the teiid container, I can ping www.redhat.com, www.google.com, and others
so I can't understand why teiid says that it cannot reach that atlas server
I was thinking about that 27017 port that gets appended to the server
since I didn't specify that number into my connection definitin, it should be appended by teiid translator, maybe
but the connection address that atlas cloud console gives me has no port,
and it starts with "mongodb+srv://" instead of "mongodb://" (string that teiid seems to require to be able to load the resource)
example:
mongodb+srv://<username>:<password>@cluster0-XXXXX.mongodb.net/admin
In fact using such string in MongoDB Compass, the connection needs no port inserted (the ui shows a SRV switch activated)
Instead, if I toggle the SRV switch off, I get a textbox to be filled with the port number
and if I use the port option, with the connection url I'm given it does not work even in Compass
Could it be that the teiid connector should act similarly? I mean
-
if the server string starts with "mongodb://" then teiid will add the port 27017 if not provided
-
if the server string starts with "mongodb+srv://" then teiid will not add any port when connecting
tbh I don't know what the added "+srv" string means at all, never seen anything like that
Thanks, Marco