"cannot create leadership lease client: corrupt lease document" on upgrade to 2.3-beta2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Critical
|
Andrew Wilkins |
Bug Description
I've just upgraded from an earlier version of the develop branch to the most recent, and I see this error message spewed out a bunch of times:
ERROR juju.worker exited "leadership": cannot create leadership lease client: corrupt lease document "c6e63be8-
The error message eventually goes away.
What is happening is that we start the lease manager when opening a State object; that lease manager worker immediately fails with the above error. We then run the upgrade step that converts the old lease documents, and when the lease manager worker restarts again it's happy.
We should find a way to avoid the error messages. Ideally that would be extracting the lease manager out of the State object, but I don't know if that's practical yet.
Changed in juju: | |
milestone: | 2.3-beta2 → none |
Changed in juju: | |
assignee: | nobody → Andrew Wilkins (axwalk) |
milestone: | none → 2.3.0 |
status: | Triaged → In Progress |
importance: | High → Critical |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
https:/ /github. com/juju/ juju/pull/ 8011