mongo: SelectPeer* should not use local addresses #8066

Merged
merged 1 commit into from Nov 14, 2017

Conversation

Projects
None yet
3 participants
Member

axw commented Nov 14, 2017

Description of change

The mongo.SelectPeer* functions should not
use local addresses, as they will never be
suitable for communicating across machines
to other MongoDB servers. Filter out machine-
local addresses.

QA steps

  1. juju bootstrap localhost
  2. lxc launch ubuntu:xenial x1
  3. lxc launch ubuntu:xenial x2
  4. juju switch controller
  5. juju add-machine ssh:x1.lxd
  6. juju add-machine ssh:x2.lxd
  7. juju enable-ha --to 1,2
    (machines 1 and 2 should eventually become voting replica set members)

Documentation changes

None.

Bug reference

Fixes https://bugs.launchpad.net/juju/+bug/1642618

mongo: SelectPeer* should not use local addresses
The mongo.SelectPeer* functions should not
use local addresses, as they will never be
suitable for communicating across machines
to other MongoDB servers. Filter out machine-
local addresses.

Fixes https://bugs.launchpad.net/juju/+bug/1642618
Member

axw commented Nov 14, 2017

$$merge$$

Contributor

jujubot commented Nov 14, 2017

Status: merge request accepted. Url: http://ci.jujucharms.com/job/github-merge-juju

@jujubot jujubot merged commit 4b75a1d into juju:develop Nov 14, 2017

1 check passed

continuous-integration/jenkins/pr-merge This commit looks good
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment