This is still happening with 2.4.2 by the way :
2018-08-29 09:13:59 INFO juju-log leader-elected fired. This unit is the new leader: ubuntu-repository-cache/2 2018-08-29 09:13:59 DEBUG leader-elected ERROR cannot write leadership settings: cannot write settings: not the leader
This is still happening with 2.4.2 by the way :
2018-08-29 09:13:59 INFO juju-log leader-elected fired. This unit is the new leader: ubuntu- repository- cache/2
2018-08-29 09:13:59 DEBUG leader-elected ERROR cannot write leadership settings: cannot write settings: not the leader