[DRIVERS-316] Driver is unable to resolve hostnames to IP addresses Created: 15/Jul/16 Updated: 22/Jan/18 Resolved: 22/Jan/18 |
|
| Status: | Closed |
| Project: | Drivers |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Mallika Iyer | Assignee: | Bernie Hackett |
| Resolution: | Won't Fix | Votes: | 1 |
| Labels: | driver | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Mongodb version : https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-amazon-3.2.7.tgz , this is running on Pivotal Cloud Foundry |
||
| Issue Links: |
|
||||||||
| Description |
|
MongoDB ruby driver cannot connect to the replica set. Logs from the Mongo adapter: note where "getaddrinfo" fails to resolve the hostname to the IP address. 016-07-14T15:10:42.35-0700 [APP/0] OUT D, 2016-07-14T22:10:30.331490 #28 DEBUG – : MONGODB | Adding 10.65.178.135:28000 to the cluster. As soon as the driver adds a host, it tries to resolve it's name. This just isn't possible in a container, we can't add host entries. Is it possible to instruct the driver to use IP addresses only? |
| Comments |
| Comment by Bernie Hackett [ 22/Jan/18 ] |
|
Closing won't fix. The workaround in this situation is to map hostnames to IPs in /etc/hosts. |
| Comment by Bernie Hackett [ 19/Jul/16 ] |
|
I've moved this ticket to the DRIVERS project since all MongoDB drivers work the same way. This behavior is defined in the server discover and monitoring spec: |
| Comment by Mallika Iyer [ 18/Jul/16 ] |
|
Unfortunately that won't resolve the issue, I would like to leave it open On Mon, Jul 18, 2016 at 4:46 AM, Emily Stolfo (JIRA) <jira@mongodb.org> – |