leadership flapping on units of same application across models

Bug #1832424 reported by Christian Muirhead on 2019-06-12
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju
High
Christian Muirhead
2.5
Undecided
Unassigned
2.6
Undecided
Unassigned

Bug Description

If you have multiple units of an application deployed in multiple models in a controller, `juju status` shows the leadership of those applications changing frequently, even though the lease log and the unit status history doesn't show leadership changes.

Changed in juju:
milestone: none → 2.5.8
milestone: 2.5.8 → none
Christian Muirhead (2-xtian) wrote :

This turned out to be caused by a missing filter in the lease manager, so if an application was in multiple models the the holder would be overwritten for each one and the final leader reported would be whichever was seen last. Since this was coming from a map where the order is nondeterministic the leader would change seemingly at random.

Calvin Hartwell (calvinh) wrote :

Thanks for the quick code fix, Christian

tags: added: cpe-onsite
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers