Unable to upgrade-charm pod_spec charm to sidecar charm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I am running into the same issue as this bug: https:/
When trying to upgrade from a podspec k8s charm to a sidecar charm, the old unit gets stuck in a lost state and cannot be removed.
Note that I am using CK revision 814 (which is 1.22), and upgrading the coredns charm from rev 10 to rev 18 (latest/stable on charmhub)
Here are some psuedo commands to replicate the issue:
juju add-model k8s-22
juju deploy cs:charmed-
juju scp kubernetes-
juju config kubernetes-master dns-provider=none
juju add-k8s my-k8s-cloud --controller my-controller --skip-storage
juju add-model my-model my-k8s-cloud
juju deploy cs:~containers/
juju offer coredns:
juju consume -m k8s-22 coredns-
juju relate -m k8s-22 coredns kubernetes-master
juju trust coredns --scope=cluster # trust is necessary in the sidecar charm
juju upgrade-charm coredns --switch coredns --channel=stable
units look like this after the upgrade:
Unit Workload Agent Address Ports Message
coredns/0* waiting idle 10.1.95.66 Waiting for leadership
coredns/2 unknown lost 10.1.95.65 53/UDP,
coredns/2 seems impossible to get rid of
description: | updated |
description: | updated |
Changed in juju: | |
status: | New → Confirmed |