Wait for MongoDB connections before creating replset
authorJiri Stransky <jistr@redhat.com>
Fri, 16 Sep 2016 14:41:58 +0000 (16:41 +0200)
committerEmilien Macchi <emilien@redhat.com>
Fri, 16 Sep 2016 20:55:46 +0000 (16:55 -0400)
commiteeb4d5f3b1c192e69e92c312652217e606ca8ecb
treea4bc5665fd950b5594097f06a3406ebe5a428dad
parent48f965b5edd35f0dae32acf88afa78eef26f6438
Wait for MongoDB connections before creating replset

Sometimes the mongodb_replset resource fails with:

Could not evaluate: Can't find master host for replicaset tripleo.

This issue is intermittent so the fix cannot be perfectly verified, but
the assumption is that if we wait for MongoDB to be reachable on all
nodes, it will assure that the members will appear to the puppet module
as alive when creating or verifying the replset. If the validation
fails, it should help us uncover which of the members was causing
trouble.

Change-Id: I0bcd0d063a7a766483426fdd5ea81cbe1dfaa348
Closes-Bug: #1624420
manifests/profile/base/database/mongodb.pp