Kolla mongodb error: can't find self in the replset config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Fix Released
|
High
|
Jeffrey Zhang | ||
Ocata |
Fix Released
|
High
|
Jeffrey Zhang |
Bug Description
In a multinode deployment using kolla-ansible master, deployment fails with a mongodb replication-related error: "can't find self in the replset config".
Logs:
...
TASK [mongodb : Copying over mongodb.conf] *******
changed: [192.168.1.1] => (item=mongodb.conf) => {"changed": true, "checksum": "980752ded7cd7e
TASK [mongodb : Starting mongodb bootstrap container] *******
changed: [192.168.1.1] => {"changed": true, "result": false}
TASK [mongodb : Starting mongodb container] *******
changed: [192.168.1.1] => {"changed": true, "result": false}
TASK [mongodb : Waiting for the mongodb startup] *******
ok: [192.168.1.1] => {"changed": false, "elapsed": 4, "path": null, "port": 27017, "search_regex": null, "state": "started"}
TASK [mongodb : Checking current replication status] *******
ok: [192.168.1.1 -> 192.168.1.1] => {"changed": false, "cmd": ["docker", "exec", "-t", "mongodb", "mongo", "192.168.0.221", "--quiet", "--eval", "rs.status().ok"], "delta": "0:00:00.281315", "end": "2016-09-21 08:36:22.924528", "rc": 0, "start": "2016-09-21 08:36:22.643213", "stderr": "", "stdout": "0", "stdout_lines": ["0"], "warnings": []}
TASK [mongodb : Copying the mongodb replication set bootstrap script] **********
changed: [192.168.1.1 -> localhost] => {"changed": true, "checksum": "c4df9fe1c7f76a
TASK [mongodb : Bootstraping the mongodb replication set] *******
fatal: [192.168.1.1 -> 192.168.1.1]: FAILED! => {"changed": true, "cmd": ["docker", "exec", "-t", "mongodb", "mongo", "192.168.0.221", "--quiet", "--eval", "printjson(
Please let me know if there's additional information I can provide that would be helpful. Thanks!
Changed in kolla: | |
status: | New → Triaged |
Changed in kolla: | |
importance: | Undecided → High |
Changed in kolla: | |
milestone: | none → ocata-3 |
Changed in kolla: | |
assignee: | nobody → zhang kun (refrain) |
Changed in kolla: | |
status: | Triaged → In Progress |
Changed in kolla: | |
milestone: | ocata-3 → ocata-rc1 |
Changed in kolla: | |
milestone: | ocata-rc1 → pike-1 |
Changed in kolla-ansible: | |
milestone: | none → pike-1 |
assignee: | zhang kun (refrain) → Jeffrey Zhang (jeffrey4l) |
Note: I'm not experienced enough with mongodb to interpret it, but the mongodb.conf file used by the (successfully started) mongodb container does end with:
replication:
replSetName: rs0