Charms should call "is-leader" before attempting to call "leader-set"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Invalid
|
Critical
|
Unassigned | ||
Kubernetes Control Plane Charm |
Fix Released
|
Critical
|
Kevin W Monroe |
Bug Description
Juju: 2.6.4+2.6-6c4f52c
This appears to be a regression of https:/
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 DEBUG kube-control-
2019-06-16 16:08:04 ERROR juju.worker.
2019-06-16 16:08:04 DEBUG juju.machinelock machinelock.go:180 machine lock released for uniter (run relation-joined (5; kubernetes-
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → Critical |
milestone: | none → 2.6.4 |
Changed in charm-kubernetes-master: | |
assignee: | nobody → Kevin W Monroe (kwmonroe) |
importance: | Undecided → Critical |
status: | New → In Progress |
summary: |
- ERROR cannot write leadership settings: cannot write settings: not the - leader + Charms should call "is-leader" before attempting to call "leader-set" |
Changed in juju: | |
status: | Triaged → Invalid |
This looks like it results from this patch: /github. com/juju/ juju/pull/ 10301
https:/
After the original patch to fix https:/ /bugs.launchpad .net/juju- core/+bug/ 1723184, calling leader-set would be a no-op if the unit was not the leader.
This was deemed to be incorrect behaviour.
Charms should call "is-leader" before attempting to call "leader-set", or use the "leader-elected" hook to change leader settings.