[SERVER-8093] server can't find self in balance_repl.js Created: 07/Jan/13 Updated: 11/Jul/16 Resolved: 14/Jan/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication, Testing Infrastructure |
| Affects Version/s: | None |
| Fix Version/s: | 2.4.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ian Whalen (Inactive) | Assignee: | Randall Hunt |
| Resolution: | Done | Votes: | 0 |
| Labels: | buildbot | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Operating System: | ALL |
| Participants: |
| Description |
|
|
| Comments |
| Comment by Randall Hunt [ 09/Jan/13 ] | ||||||||||||||||||||||||||||||||
|
fixed the hosts file – it's generated when we spin up the machines (via chef) and doesn't get updated. I took this machine down to increase the size of data volume and it got a new internal IP. | ||||||||||||||||||||||||||||||||
| Comment by Randolph Tan [ 07/Jan/13 ] | ||||||||||||||||||||||||||||||||
|
Test is failing because the mongod cannot find itself from the config docs when performing replica set initialization. It uses getifaddrs then getnameinfo to get known addresses for self and getaddrinfo then getnameinfo to get the ip addresses for the host being compared. And during the test run this is what we get from comparing self to bs-rhel-57-64-2:
Here's the output for /sbin/ifconfig:
hostname:
ping bs-rhel-57-64-2
cat /etc/hosts
So it appears that someone patched the etc/hosts to include the this entry (and this entry might be valid in the past). If I remove this line, mongod will not be able to resolve bs-rhel-57-64-2. So I think we need to setup some dynamic name lookup service to resolve this issue. |