multiple addresses in a space confuses peergrouper
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Joseph Phillips |
Bug Description
Digging through issues at a client site going into HA, I think I've uncovered an issue with how the peergrouper determines what space to configure mongo.
The autodetection code is:
https:/
The issue there is that it iterates all addresses, and just increments the reference count for any space it finds.
However, if you had 1 machine with 2 addresses in the same space, and a second machine with none, it would end up thinking that the "LargestSpaceCo
We need a better check around what space to use.
Changed in juju: | |
milestone: | none → 2.4-beta1 |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
From what I could see of the concrete database records, there did not appear to actually be that problem. They all seemed to have 3 concrete addresses.
Maybe the issue is with unqualified spaces (""). Where '127.0.0.1' gets tied up with other local-only addresses.
At the very least, using 127.0.0.1 is *never* the correct address to use, because the other machines will never be able to contact you on that address. So even if we selected the "" space, we still should use an address that isn't localhost.