juju upgrade-model with HA controllers needs to confirm that Mongo replicaset is good before starting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Tim Penhey |
Bug Description
In a situation where we have 3 Juju controllers, and the resulting mongdb replicaset, we should verify that the rs.status() is healthy before starting the upgrade, and fail if not so that can be resolved.
This caused problems because:
- hosts 2 and 3 were out of date by (months)
- the upgrade started and restarted juju-db on all 3 machines.
- host 2, while unable to contact hosts 1 and 3, became the PRIMARY
- other hosts failed to replicate
- the outdated database contained on host 2 was then the one that Juju connected to, resulting in loss of the changes since the last good replica.
This particular case was also affected by https:/
https:/
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 2.7.1 |
tags: | added: upgrade-controller |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
https:/ /github. com/juju/ juju/pull/ 11027