Replicaset initiation failure reports wrong error

Bug #1340749 reported by Michael Foord
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Won't Fix
Medium
Unassigned

Bug Description

Replicaset initiation can "fail" with an error that indicates that initiation is underway and we just need to wait (i.e. not really an error). So when replicaset initiation appears to fail we attempt to give mongo some time to complete initiation by waiting for replicaset status to return a valid status with a non-empty member set.

If initiation *hard fails* then waiting for config will never work - leading us to report an EMPTYCONFIG failure that masks the *real* underlying error. So we need to improve the error reporting (report the real error) and also ideally only attempt to get config if it can possibly work.

This was discovered in the process of investigating bug 1340663.

The specific error that can be returned indicating initiation in progress is "local.oplog.rs is not empty on the initiating member. cannot initiate".

Michael Foord (mfoord)
Changed in juju-core:
milestone: none → 1.21-alpha1
Ian Booth (wallyworld)
Changed in juju-core:
importance: Undecided → High
status: New → Triaged
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.21-alpha1 → 1.21-alpha2
Curtis Hovey (sinzui)
tags: added: mongodb
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.21-alpha2 → 1.21-alpha3
Curtis Hovey (sinzui)
Changed in juju-core:
importance: High → Medium
milestone: 1.21-alpha3 → none
Curtis Hovey (sinzui)
tags: added: bootstrap
Changed in juju-core:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.