leader-set fails even if is_leader returned True
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Undecided
|
Unassigned |
Bug Description
Hello,
This is probably a duplicate of LP#1723184 but opening a new one.
We had an issue with a juju 2.8.7 controller and model related to that.
The relevant pastebins are:
* https:/
The code can be found at https:/
We can see that the code check for the leader with
```
if not hookenv.
return
```
However, we can see in the logs line 73 that this condition passed, resulting in
`2020-12-27 00:04:25 INFO juju-log leader-elected fired. This unit is the new leader: ubuntu-
to fail right after on the leader-set.
* The controller units' logs around that time can be found at https:/
Cheers,
Related branches
- Barry Price: Approve
- Canonical IS Reviewers: Pending requested
-
Diff: 22 lines (+12/-0)1 file modifiedreactive/ubuntu-repository-cache.py (+12/-0)
Changed in juju: | |
status: | New → Triaged |
I don't believe this is a duplicate of 1723184.
It resembles https:/ /bugs.launchpad .net/juju/ +bug/1903810 though.
I will remove the 2.8 milestone added to 1723184.