leader maintains leadership when in error state

Bug #1774960 reported by Stuart Bishop
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned

Bug Description

If the lead unit goes into an error state, it still maintains its leadership lease.

This will paralyze some charms. Other units will run their hooks as needed, but no decisions can be made by the leader unless the error is resolved or the jujud on the leader shut down.

Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.4.1
status: New → Triaged
importance: Undecided → High
Revision history for this message
Christian Muirhead (2-xtian) wrote :

Do you mean that the uniter currently keeps renewing the lease, and it should let it lapse so that a different unit can pick it up once it expires?
Or that the lease should expire immediately if the leader unit goes into error?

Revision history for this message
Christian Muirhead (2-xtian) wrote :

Reading the second paragraph more carefully it sounds like you mean the former, is that right?

Revision history for this message
Stuart Bishop (stub) wrote :

The uniter keeps renewing the lease, and the unit remains leader despite being in an error state.

For this case, I don't think it matters if the lease is lost immediately after going into an error state, or if it expires at the end of the current lease period. It is perfectly acceptable for there to be no-leader at all until the lease expires and another unit picks it up.

Bug #1532085 is a similar issue (a departing unit remains leader), and its needs might drive how this bug is approached. In that bug's case, leadership needs to be lost before before the peer relation-departed and other teardown hooks are kicked off.

Changed in juju:
milestone: 2.4.1 → 2.4.2
Changed in juju:
milestone: 2.4.2 → 2.4.3
Changed in juju:
milestone: 2.4.3 → none
Changed in juju:
milestone: none → 2.4.4
Changed in juju:
milestone: 2.4.4 → none
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: High → Low
tags: added: expirebugs-bot
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.