Upgrading K8s charm gives error message

Bug #1923051 reported by Kenneth Koski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Yang Kelvin Liu

Bug Description

I have a charm that is successfully deployed. I go and try to upgrade it with these commands:

charmcraft build
juju upgrade-charm pipelines-api --path ./pipelines-api.charm --resource oci-image=(yq eval '.resources.oci-image.upstream-source' metadata.yaml)

The upgrade fails with the status bouncing between these two states/error messages:

waiting / waiting for container
error / currently only k8s-raw-set and k8s-spec-set are supported

The above error message is unlikely to be due to charm code directly. The charm I'm testing this with is one that I'm working on at the moment that just outputs some debug info, and doesn't call self.model.pod.set_spec at all.

It appears that the charm was successfully upgraded, as the logs show updated code running.

John A Meinel (jameinel)
Changed in juju:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.9-rc10
Changed in juju:
assignee: nobody → Yang Kelvin Liu (kelvin.liu)
status: Triaged → In Progress
Revision history for this message
Yang Kelvin Liu (kelvin.liu) wrote :

https://github.com/juju/juju/pull/12862 will be landed to 2.8 to fix this

Changed in juju:
milestone: 2.9-rc10 → 2.8.12
Changed in juju:
milestone: 2.8.12 → 2.8.11
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.