unit stuck in terminating on charm upgrade, no juju leader
Bug #2041714 reported by
Tom Haddon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Joseph Phillips |
Bug Description
I just ran a charm upgrade on a k8s model on juju 3.1.6, having done a similar operation on two other juju models without problems.
However, the second unit to be upgraded got stuck in "Terminating" status in k8s, and "agent lost" as far as Juju was concerned: https:/
Here's the debug-log output https:/
I was able to recover things by manually running `kubectl delete pod $podname`.
tags: | added: canonical-is |
To post a comment you must log in.
This appears to be a race between the unit agent and its lease claimer proxy:
- Units are shutting down for the upgrade restart, and the current leader actively revokes its lease.
- The other unit is promoted to leader, but over the course of the upgrade the lease expires.
- The original leader is promoted as it is coming up, but when it checks it is not the leader.