juju.worker.peergrouper worker.go:211 cannot set replicaset: Found two member configurations with same _id field, members.0._id == members.1._id == 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
New
|
Undecided
|
Unassigned |
Bug Description
* Juju 2.2.1, Xenial
* "juju enable-ha" has been run, but PRIMARY has no replicasets
* controllers #1 and #2 show as started and juju-db is up, however no machine-{1,2} users exist (so, unable to connect to slave mongos)
- by stopping jujud-machine-
* machine-0.log shows the following error:
2017-07-13 07:17:10 ERROR juju.worker.
juju:PRIMARY> rs.status()
{
"set" : "juju",
"date" : ISODate(
"myState" : 1,
"term" : NumberLong(1),
"members" : [
{
}
],
"ok" : 1
}
juju:PRIMARY> rs.conf()
{
"_id" : "juju",
"version" : 2,
"members" : [
{
}
],
"settings" : {
},
},
}
}
On a test environment, I checked that "juju enable-ha" creates mongo replicasets with ids 1, 2 and 3 (for controllers #0, #1 and #2, respectively).
Please let me know if you need further information.
Such test env uses an openstack endpoint (keystone auth, nova instances).
Issue related to bug 1704072